1 28 29 package com.idaremedia.antx.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 class BuildRuleTest extends HTC 47 { 48 49 public static final String TEST_CATEGORY="CLASS"; 50 51 52 55 public BuildRuleTest(String methodName) 56 { 57 super("BuildRule::",methodName); 58 } 59 60 61 64 public static TestSuite suite() 65 { 66 return new TestSuite(BuildRuleTest.class); 67 } 68 69 70 73 public static TestSuite baseline() 74 { 75 return suite(); 76 } 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("rule.xml"); 95 } 96 97 101 public void checkBaseline() 102 { 103 } 105 106 public void testBaseline() 107 { 108 checkBaseline(); 109 } 110 111 public void testBrokenMixtureOfRuleItems() 112 { 113 verifyCantLoadFile("broken_rule0.xml","Mixture of build ruleitems"); 114 } 115 116 public void testFailingFixtureCheck_AntX04() 117 { 118 verifyCantLoadFile("broken_rule1.xml","False fixturecheck should abort"); 119 } 120 121 public void testGlobalDefinitions() 122 { 123 runTargetNoOutput("testGloballyDefined"); 124 } 125 126 public void testPreferUpdatesIndividualProps() 127 { 128 runTargetDumpFullLog("testPreferUpdatesIndividualProps"); 129 } 130 131 public void testPreferRulesTallyAll() 132 { 133 runTarget("testPreferRulesTallyAll"); 134 } 135 136 public void testRequireReferrals() 137 { 138 runTargetNoOutput("testNestedRequireReferrals"); 139 } 140 141 public void testPreferReferrals() 142 { 143 runTarget("testNestedPreferReferrals"); 144 } 145 146 public void testCircularReferrals() 147 { 148 runExpecting("testCircularReferrals","CircularReferral"); } 150 } 151 152 153 154 | Popular Tags |