Ukázka testu v JUnit

import junit.framework.TestCase; public class UkazkaTest extends TestCase { public static void main(String[] args) { junit.textui.TestRunner.run(UkazkaTest.class); } protected void setUp() throws Exception { super.setUp(); } protected void tearDown() throws Exception { super.tearDown(); } public void testPokus1() { assertTrue(false); } public void testPokus2() { assertFalse(true); } }
 
www.softeu.cz
8/30