Reputation: 11
I was trying to run a very simple Junit test and i was geeting initialization error.
Upvotes: 0
Views: 5235
Reputation: 24520
The test method must be a public void method without any argument
@Test
public void sumOfABlankStringIsZero() {
assertEquals(0, Calculator.sum(" "));
}
Upvotes: 1