I was trying to run a very simple Junit test and i was geeting initialization error.
1 Answer
The test method must be a public void method without any argument
@Test
public void sumOfABlankStringIsZero() {
assertEquals(0, Calculator.sum(" "));
}
1 Comment
Stefan Birkner
You're welcome. It would be nice if you accept the answer: stackoverflow.com/help/accepted-answer