1 package org.sapia.taskman; 2 3 import junit.framework.*; 4 5 8 public class TaskOutputTest extends TestCase { 9 12 public TaskOutputTest(String name) { 13 super(name); 14 } 15 16 public void testSync() throws Exception { 17 TestTaskManager tm = new TestTaskManager(); 18 19 NestingTestTask tt = new NestingTestTask(false, 8); 20 tm.execSyncTask("nesting", tt); 21 super.assertTrue("Nesting and/or nested task not executed", tt.executed()); 22 super.assertEquals(1, tt.execCount); 23 super.assertTrue("Task output not closed", tm.taskOutput().closed()); 24 super.assertEquals("Task output not cascaded to tasks", 9, tm.taskOutput().count()); 25 } 26 } 27 | Popular Tags |