1 28 29 package com.idaremedia.antx.feedback.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 PrintTaskTest extends HTC 47 { 48 49 public static final String TEST_CATEGORY="CLASS"; 50 51 52 55 public PrintTaskTest(String methodName) 56 { 57 super("PrintTask::",methodName); 58 } 59 60 61 64 public static TestSuite suite() 65 { 66 return new TestSuite(PrintTaskTest.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("print.xml"); 95 } 96 97 101 public void checkBaseline() 102 { 103 } 105 106 public void testBaseline() 107 { 108 checkBaseline(); 109 } 110 111 public void testEmptyOK() 112 { 113 runTarget("testEmptyOK"); 114 } 115 116 public void testPrintStringLiterals() 117 { 118 String log = runTarget("testPrintPlainStringLiteral"); 119 assertTrue(log.indexOf("Throatwobblermangrove")>-1,"Found 'wobbler' bits"); 120 } 121 122 public void testInheritedPrintAPI() 123 { 124 String log = runTarget("testPrintInheritedAPIs"); 125 assertTrue(log.indexOf("spam")>-1,"Found 'spam' marker"); 126 assertTrue(log.indexOf("ant.file=")>-1,"Found 'ant.file' bits"); 127 } 128 129 public void testPrintFromMappings() 130 { 131 runTarget("testPrintFromMappings"); 132 } 133 134 public void testPrintFromRegistry() 135 { 136 runTarget("testPrintFromRegistry"); 137 } 138 139 public void testInstallPrinterRegistry() 140 { 141 runTargetDumpFullLog("testInstallPrinterRegistry"); 142 } 143 144 145 public void testLoadPrinterFromResource_AntX04() 146 { 147 runTarget("testLoadPrinterFromResource_AntX04"); 148 } 149 150 151 public void testLoadPrinterFromFileSet_AntX04() 152 { 153 runTarget("testLoadPrinterFromFileSet_AntX04"); 154 } 155 156 157 public void testCustomPrinterTypes_AntX04() 158 { 159 runTarget("testCustomPrinterTypes_AntX04"); 160 } 161 } 162 163 164 165 | Popular Tags |