1 28 29 package com.idaremedia.antx.flowcontrol.tests; 30 31 import junit.framework.TestSuite; 32 33 import com.idaremedia.antx.ut.HTC; 34 import com.idaremedia.antx.ut.HTCUtils; 35 36 45 46 public final class InlineStepTest extends HTC 47 { 48 49 public static final String TEST_CATEGORY="CLASS"; 50 51 52 55 public InlineStepTest(String methodName) 56 { 57 super("InlineStep::",methodName); 58 } 59 60 61 64 public static TestSuite suite() 65 { 66 return new TestSuite(InlineStepTest.class); 67 } 68 69 70 73 public static TestSuite baseline() 74 { 75 return suite(); } 77 78 79 82 public static void main(String [] argv) 83 { 84 HTCUtils.quickCheck(suite()); 85 } 86 87 88 92 protected void setUp() throws Exception 93 { 94 configureProjectFromResource("step.xml"); 95 } 96 97 98 102 public void checkBaseline() 103 { 104 } 106 107 public void testBaseline() 108 { 109 checkBaseline(); 110 } 111 112 public void testStepsDontExecute() 113 { 114 expectLog("testNoExecute",""); 115 } 116 117 public void testPassNoTasks() 118 { 119 expectLog("testNoTasksOK",""); 120 } 121 122 public void testStepsDontConfigureNestedElementByDefault() 123 { 124 expectLog("testNestedNotConfigured",""); 125 String fullLog = getFullLog(); 126 assertNotEqual(fullLog.indexOf("BrokenAssertPassed"),-1,"Echo After Broken Assert"); 127 } 128 public void testNameRequired() 129 { 130 expectBuildException("testNameRequired",""); } 132 } 133 134 135 | Popular Tags |