| 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 CopyMsgTaskTest extends HTC 47 { 48 49 public static final String TEST_CATEGORY="CLASS"; 50 51 52 55 public CopyMsgTaskTest(String methodName) 56 { 57 super("CopyMsgTask::",methodName); 58 } 59 60 61 64 public static TestSuite suite() 65 { 66 return new TestSuite(CopyMsgTaskTest.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("copymsg.xml"); 95 } 96 97 98 102 public void checkBaseline() 103 { 104 } 106 107 public void testBaseline() 108 { 109 checkBaseline(); 110 } 111 112 public void testFailNoCopyTarget() 113 { 114 runExpecting("testFailNoCopyTarget","No Copy-To Target Specified"); 115 } 116 117 public void testFailNothingToCopy() 118 { 119 runExpecting("testFailNothingToCopy","No MsgId|Message Specified"); 120 } 121 122 public void testFailTooManyCopyTarget() 123 { 124 runExpecting("testFailTooManyCopyTargets","Too Many Copy-To Targets"); 125 } 126 127 public void testCopyRegularProperty() 128 { 129 runTarget("testCopyRegularProperty"); 130 } 131 132 public void testCopyPropertyToUserProperty() 133 { 134 runTarget("testCopyPropertyToUserProperty"); 135 } 136 137 public void testCopyRegularVariable() 138 { 139 runTarget("testCopyRegularVariable"); 140 } 141 142 public void testCopyVariableProjectScopeIsReference() 143 { 144 runTarget("testCopyVariableProjectScopeIsReference"); 145 } 146 147 public void testCopyRegularReference() 148 { 149 runTarget("testCopyRegularReference"); 150 } 151 152 public void testCopyIfUnless() 153 { 154 runTarget("testCopyIfUnless"); 155 } 156 } 157 158 159 160 161 | Popular Tags |