diff --git a/src/main/java/com/mycompany/app/App.java b/src/main/java/com/mycompany/app/App.java index aeb9a91f00..cd43366234 100644 --- a/src/main/java/com/mycompany/app/App.java +++ b/src/main/java/com/mycompany/app/App.java @@ -6,7 +6,7 @@ public class App { - private final String message = "Hello Happiest Minds!"; + private final String message = "Evaluation Day!"; public App() {} diff --git a/src/test/java/com/mycompany/app/AppTest.java b/src/test/java/com/mycompany/app/AppTest.java deleted file mode 100644 index 0c822283ed..0000000000 --- a/src/test/java/com/mycompany/app/AppTest.java +++ /dev/null @@ -1,48 +0,0 @@ -package com.mycompany.app; - -import java.io.ByteArrayOutputStream; -import java.io.PrintStream; -import org.junit.Before; -import org.junit.Test; -import org.junit.After; -import static org.junit.Assert.*; - -/** - * Unit test for simple App. - */ -public class AppTest -{ - - private final ByteArrayOutputStream outContent = new ByteArrayOutputStream(); - - @Before - public void setUpStreams() { - System.setOut(new PrintStream(outContent)); - } - - @Test - public void testAppConstructor() { - try { - new App(); - } catch (Exception e) { - fail("Construction failed."); - } - } - - @Test - public void testAppMain() - { - App.main(null); - try { - assertEquals("Hello Happiest Minds!" + System.getProperty("line.separator"), outContent.toString()); - } catch (AssertionError e) { - fail("\"message\" is not \"Hello Happiest Minds!\""); - } - } - - @After - public void cleanUpStreams() { - System.setOut(null); - } - -}