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 final class UISMConfigureTaskTest extends HTC 47 { 48 49 public static final String TEST_CATEGORY="CLASS"; 50 51 52 55 public UISMConfigureTaskTest(String methodName) 56 { 57 super("UISMConfigureTask::",methodName); 58 } 59 60 61 64 public static TestSuite suite() 65 { 66 return new TestSuite(UISMConfigureTaskTest.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("uismconf.xml"); 95 } 96 97 101 public void checkBaseline() 102 { 103 } 105 106 public void testBaseline() 107 { 108 checkBaseline(); 109 } 110 111 public void testPassEmptyElement() 112 { 113 runTarget("testEmptyElementOK"); 114 } 115 116 public void testLookupInheritance() 117 { 118 String log = runTarget("testLookupInheritance"); 119 verifyOccurances(log,"Holaworld",2); 120 } 121 122 public void testCombineWithInstalledRoot() 123 { 124 String log = runTarget("testCombineWithInstalledRoot"); 125 verifyOccurances(log,"Holaworld",0); 126 verifyOccurances(log,"Adiosworld",1); 127 verifyOccurances(log,"Helloworld",1); 128 verifyOccurances(log,"Byeworld",1); 129 verifyOccurances(log,"diosworld",2); } 131 132 public void testEchoBundle() 133 { 134 String log = runTarget("testEchoBundle"); 135 verifyOccurances(log,"ATC.MSGS.BUNDLE",1); 136 } 137 } 138 139 140 | Popular Tags |