tdd « unit test « Java Testing Q&A

Home
Java Testing Q&A
1.Development
2.FindBugs
3.HTMLUnit
4.hudson
5.junit
6.performance
7.plugin
8.profile
9.selenium
10.Tools
11.unit test
Java Testing Q&A » unit test » tdd 

1. Checking the results of a Factory in a unit test    stackoverflow.com

I have developed some classes with similar behavior, they all implement the same interface. I implemented a factory that creates the appropriate object and returns the interface. I am ...

2. Unit testing with multiple collaborators    stackoverflow.com

Today I ran into a very difficult TDD problem. I need to interact with a server through HTTP POSTs. I found the the Apache Commons HttpClient, which does what I need. However, ...

3. Spawning a separate process from within a unit test    stackoverflow.com

I have some unit tests (yes, perhaps more integration-ey tests !) that I would like to spin up another jvm, and then run the test code from that "other" JVM (and ...

4. Level of detail of your unit tests    stackoverflow.com

I wanted to start a discussion about the details that you cover in your unit tests. Do you test major functionalities, that consist of several methods doing one task at once with ...

5. How often should we write unit tests?    stackoverflow.com

I am recently introduced to the test-driven approach to development by my mentor at work, and he encourages me to write an unit-test whenenver "it makes sense." I understand some benefits ...

6. Handling unit tests with a condition on the current time    stackoverflow.com

I'm taking a stab at setting up unit tests for some utility classes in a project I'm working on, and one of the classes (contains licensing info) has a method that ...

7. Determining what to unit test and what not to    stackoverflow.com

I am still getting to understand Test Driven Development. I have the following requirements for a user registration module of an application.

  1. The system must capture the user's firstname, lastname, email ...

8. Test Driven Development, Unit Testing    stackoverflow.com

let me first explain what I'm aiming for with this question: What kind of dev I am? I'm the guy who thinks about the problem, writes the code and then tests it ...

9. What are some of the tools for generating unit tests in Java?    stackoverflow.com

I have looked at Agitar and Fast Code. Any other recommendations?

10. how to do DAO(db) layer unit test?    stackoverflow.com

since the dao layer methods will be dependent on data in the database, in complex systems some operations will depend on lots of tables, in this way unit test are not repeatable ...

11. unit test best practice for method with mocks in Mockito    stackoverflow.com

Lets say we have method to test in class A that calls method from class B. To test it we created mock for B and then verify if it was called. ...

12. How to unit test a method that runs into an infinite loop for some input?    stackoverflow.com

This question just occurred to my mind and I want to ask this here. The case is intentional, I just write a loop which runs infinitely. How do I go about unit ...

13. Is it ok to verify using another public method while unit testing a public method    stackoverflow.com

I am trying to come up with a test case for a Queue class that I have not yet implemented. While trying to write the code for testEnqueue method I could ...

14. Unit testing with jdeveloper 10g    stackoverflow.com

I want to use JUnit or similiar TDD frameworks and plugins at my work environment. But where I work, migrating to jdeveloper 11g or eclipse is not considerable in a near ...

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.