// Path: example/java/my-app/src/main/java/com/mycompany/app/App.java
// public class App
// {
//     public static void main( String[] args )
//     {
//         System.out.println( "Hello World!" );
//     }
// 
//     public static int addTwoOnlyIfEven( int value )
//     {
//         int remainder = value % 2;
//         if (remainder == 0)
//         {
//             return value + 2;
//         }
//         return value;
//     }
// }


import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;
import com.mycompany.app.App;
package com.mycompany.app;



/**
 * Unit test for simple App.
 */
public class AppTest
    extends TestCase
{
    /**
     * 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 );
    }

    /**
     * Rigourous Test :-)
     */
    public void testApp()
    {
        assertTrue( true );
    }

    public void testAddTwoHappyFlow()
    {
// Path: example/java/my-app/src/main/java/com/mycompany/app/App.java
// public class App
// {
//     public static void main( String[] args )
//     {
//         System.out.println( "Hello World!" );
//     }
// 
//     public static int addTwoOnlyIfEven( int value )
//     {
//         int remainder = value % 2;
//         if (remainder == 0)
//         {
//             return value + 2;
//         }
//         return value;
//     }
// }


// Path: example/java/my-app/src/test/java/com/mycompany/app/AppTest.java
import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;
import com.mycompany.app.App;

package com.mycompany.app;



/**
 * Unit test for simple App.
 */
public class AppTest
    extends TestCase
{
    /**
     * 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 );
    }

    /**
     * Rigourous Test :-)
     */
    public void testApp()
    {
        assertTrue( true );
    }

    public void testAddTwoHappyFlow()
    {
        int value = App.addTwoOnlyIfEven( 2 );