Newer
Older
sample-junit1 / src / test / java / com / sample / AppTest.java
package com.sample;

import org.junit.Test;
import junit.framework.TestCase;
import static junit.framework.Assert.*;

/**
 * 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 );
    }

    /**
     * Rigourous Test :-)
     */
    @Test
    public void testApp()
    {
	assertEquals("correct","Hello", "Hello"); // OK
	//assertEquals("correct","Hello", "hello"); // NG
    }
}