diff options
| author | mo <mo.khan@gmail.com> | 2019-04-24 22:16:52 -0600 |
|---|---|---|
| committer | mo <mo.khan@gmail.com> | 2019-04-24 22:16:52 -0600 |
| commit | f59c8c04e81a467143d2fcef4ced7ed07e0b17d0 (patch) | |
| tree | 8a8a63cc4365bc70c70c3c0d393f9f9ebb6dd9b1 | |
| parent | 6056e6d06ad22f3c70881f7732c71efed6846327 (diff) | |
add a couple of assertions
| -rw-r--r-- | my-app/src/main/java/ca/mokhan/app/App.java | 8 | ||||
| -rw-r--r-- | my-app/src/test/java/ca/mokhan/app/AppTest.java | 50 |
2 files changed, 29 insertions, 29 deletions
diff --git a/my-app/src/main/java/ca/mokhan/app/App.java b/my-app/src/main/java/ca/mokhan/app/App.java index 84111ef..0e6c0c6 100644 --- a/my-app/src/main/java/ca/mokhan/app/App.java +++ b/my-app/src/main/java/ca/mokhan/app/App.java @@ -6,8 +6,8 @@ package ca.mokhan.app; */ public class App { - public static void main( String[] args ) - { - System.out.println( "Hello World!" ); - } + public static void main( String[] args ) + { + System.out.println( "Hello World!" ); + } } diff --git a/my-app/src/test/java/ca/mokhan/app/AppTest.java b/my-app/src/test/java/ca/mokhan/app/AppTest.java index e113857..6242c56 100644 --- a/my-app/src/test/java/ca/mokhan/app/AppTest.java +++ b/my-app/src/test/java/ca/mokhan/app/AppTest.java @@ -7,32 +7,32 @@ import junit.framework.TestSuite; /** * Unit test for simple App. */ -public class AppTest - extends TestCase +public class AppTest extends TestCase { - /** - * Create the test case - * - * @param testName name of the test case - */ - public AppTest( String testName ) - { - super( testName ); - } + /** + * Create the test case + * + * @param testName name of the test case + */ + public AppTest( String testName ) + { + super( testName ); + } - /** - * @return the suite of tests being tested - */ - public static Test suite() - { - return new TestSuite( AppTest.class ); - } + /** + * @return the suite of tests being tested + */ + public static Test suite() + { + return new TestSuite( AppTest.class ); + } - /** - * Rigourous Test :-) - */ - public void testApp() - { - assertTrue( true ); - } + /** + * Rigourous Test :-) + */ + public void testApp() + { + assertTrue(true); + assertFalse(false); + } } |
