1 17 18 package org.apache.tools.ant; 19 20 import org.apache.tools.ant.BuildFileTest; 21 22 24 public class LoaderRefTest extends BuildFileTest { 25 26 public LoaderRefTest(String name) { 27 super(name); 28 } 29 30 public void setUp() { 31 configureProject("src/etc/testcases/core/loaderref/loaderref.xml"); 32 } 33 34 public void tearDown() { 35 executeTarget("clean"); 36 } 37 38 public void testBadRef() { 40 expectBuildExceptionContaining("testbadref", "Should fail due to ref " 41 + "not being a class loader", "does not reference a class loader"); 42 } 43 } 44 45 | Popular Tags |