Questions tagged [junit]
48 questions
3
votes
2 answers
Is the use of JUnit feasible for a short duration project of around 3 months?
I work on projects which are usually of a duration, not more than 3 months.
Recently there has been a discussion about the use of JUnit in the projects.
There are activities being planned related to that and, there could possibly be some kind of…

Ankit
- 949
- 4
- 11
- 15
2
votes
3 answers
How to write junit test case for the program
I have a method which has external dependencies within the method. Please help me in writing a junit test case for the below program.
@Override
public void methodToTest(String user){
//fetch the values from the properties file. Config…

Pradeep
- 313
1
vote
1 answer
Multiple methods in single test case
I am new to Junit. I have a class with four methods. I am creating a test class with test cases. Can I have a test case that uses more than one methods of testing class or there should one test case per one method. What is good practice ?

want2learn
- 131