1 17 18 package org.apache.tools.ant; 19 20 import org.apache.tools.ant.BuildFileTest; 21 22 24 public class ImmutableTest extends BuildFileTest { 25 26 public ImmutableTest(String name) { 27 super(name); 28 } 29 30 public void setUp() { 31 configureProject("src/etc/testcases/core/immutable.xml"); 32 } 33 34 public void test1() { 36 executeTarget("test1"); 37 assertEquals("override", project.getProperty("test")); 38 } 39 40 public void test2() { 42 executeTarget("test2"); 43 assertNotNull(project.getProperty("DSTAMP")); 44 assertNotNull(project.getProperty("start.DSTAMP")); 45 } 46 47 public void test3() { 49 executeTarget("test3"); 50 assertEquals("original", project.getProperty("DSTAMP")); 51 } 52 53 public void test4() { 55 executeTarget("test4"); 56 assertEquals("original", project.getProperty("test")); 57 } 58 public void test5() { 60 executeTarget("test5"); 61 assertEquals("original", project.getProperty("test")); 62 } 63 64 public void test6() { 66 executeTarget("test6"); 67 assertEquals("original", project.getProperty("test1")); 68 assertEquals("original", project.getProperty("test2")); 69 } 70 71 public void test7() { 73 executeTarget("test7"); 74 assertEquals("original", project.getProperty("test")); 75 } 76 } 77 78 | Popular Tags |