Neha Narayan
Neha Narayan

Reputation: 11

Getting Initialization error when running Junit test

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

error page on eclipse

Upvotes: 0

Views: 5235

Answers (1)

Stefan Birkner
Stefan Birkner

Reputation: 24520

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

@Test
public void sumOfABlankStringIsZero() {
    assertEquals(0, Calculator.sum(" "));
}

Upvotes: 1

Related Questions