001package org.projectlombok.test; 002 003import junit.framework.Test; 004import junit.framework.TestCase; 005import junit.framework.TestSuite; 006 007/** 008 * Unit test for simple App. 009 */ 010public class AppTest extends TestCase 011{ 012 /** 013 * Create the test case 014 * 015 * @param testName name of the test case 016 */ 017 public AppTest( String testName ) { 018 super( testName ); 019 } 020 021 /** 022 * @return the suite of tests being tested 023 */ 024 public static Test suite() { 025 return new TestSuite( AppTest.class ); 026 } 027 028 /** 029 * Rigourous Test :-) 030 */ 031 public void testApp() { 032 final DataExample dex1 = new DataExample("One"); 033 dex1.setScore(1); 034 final DataExample dex2 = new DataExample("Two"); 035 dex2.setScore(2); 036 037 assertTrue( !dex1.equals(dex2) ); 038 } 039}