Fixed test.
This commit is contained in:
parent
762ff8553f
commit
b96c5d481b
1 changed files with 5 additions and 4 deletions
|
@ -1,11 +1,12 @@
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
|
|
||||||
import static org.junit.jupiter.api.Assertions.assertNotNull;
|
import static org.junit.jupiter.api.Assertions.assertAll;
|
||||||
|
|
||||||
class AppTest {
|
class AppTest {
|
||||||
@Test
|
@Test
|
||||||
void testAppHasAGreeting() {
|
void testAppHasMain() {
|
||||||
final App classUnderTest = new App();
|
final App classUnderTest = new App();
|
||||||
assertNotNull("app should have a greeting", classUnderTest.getGreeting());
|
assertAll("app should have a main method.",
|
||||||
|
() -> classUnderTest.getClass().getMethod("main", String[].class));
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Add table
Add a link
Reference in a new issue