0

I was trying to run a very simple Junit test and i was geeting initialization error.

error page on eclipse

1 Answer 1

1

The test method must be a public void method without any argument

@Test
public void sumOfABlankStringIsZero() {
    assertEquals(0, Calculator.sum(" "));
}
Sign up to request clarification or add additional context in comments.

1 Comment

You're welcome. It would be nice if you accept the answer: stackoverflow.com/help/accepted-answer

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.