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 46 47 public class VerifyFixtureTest extends HTC 48 { 49 50 public static final String TEST_CATEGORY="CLASS"; 51 52 53 56 public VerifyFixtureTest(String methodName) 57 { 58 super("VerifyFixture::",methodName); 59 } 60 61 62 65 public static TestSuite suite() 66 { 67 return new TestSuite(VerifyFixtureTest.class); 68 } 69 70 71 74 public static TestSuite baseline() 75 { 76 return suite(); 77 } 78 79 80 83 public static void main(String [] argv) 84 { 85 HTCUtils.quickCheck(suite()); 86 } 87 88 89 93 protected void setUp() throws Exception 94 { 95 configureProjectFromResource("check.xml"); 96 } 97 98 102 public void checkBaseline() 103 { 104 } 106 107 public void testBaseline() 108 { 109 checkBaseline(); 110 } 111 112 113 public void testFalseIsNotWhitespace_AntX03() 114 { 115 runExpecting("testFalseIsNotWhitespace_AntX03", "NOT-NotWS; p.ws is whitespace"); 116 } 117 118 119 public void testFalseIsSet_AntX03() 120 { 121 runExpecting("testFalseIsSet_AntX03", "NOT-isset; p.not.defined undefined"); 122 } 123 124 125 public void testFalseIsNotSet_AntX03() 126 { 127 runExpecting("testFalseIsNotSet_AntX03", "NOT-isnotset; p.true exists"); 128 } 129 130 131 public void testFalseIsNumeric_AntX03() 132 { 133 runExpecting("testFalseIsNumeric_AntX03", "NOT-isnumeric; p.false not number"); 134 } 135 136 137 public void testFalseIsNumericUndefinedProperty_AntX03() 138 { 139 runExpecting("testFalseIsNumeric2_AntX03", "NOT-isnumeric; p.not.defined undefined"); 140 } 141 142 143 public void testFalseAnySet_AntX03() 144 { 145 runExpecting("testFalseAnySet_AntX03", "NOT-anyset; p.not.defined undefined"); 146 } 147 148 149 public void testFalseAntVersionIs_AntX04() 150 { 151 runExpecting("testFalseAntVersionIs_AntX04", "NOT-ant 1.1"); 152 } 153 154 155 public void testFalseAntVersionLike_AntX04() 156 { 157 runExpecting("testFalseAntVersionLike_AntX04", "NOT-ant like 'HumptyDumpty'"); 158 } 159 160 161 public void testFalseIsNotRef_AntX05() 162 { 163 runExpecting("testFalseIsNotRef_AntX05","NOT-isnotref: ant.PropertyHelper"); 164 } 165 } 166 167 168 169 | Popular Tags |