When I try to run a test written as follows:
@Test
private void testGet() {
assertTrue(true);
}
I receive the following exception - java.lang.Exception: Method testGet() should be public
Why can a private method not execute as a unit test?
When I try to run a test written as follows:
@Test
private void testGet() {
assertTrue(true);
}
I receive the following exception - java.lang.Exception: Method testGet() should be public
Why can a private method not execute as a unit test?