From 060b4735dc02b5827bcea5ce1226b3baa4538ca3 Mon Sep 17 00:00:00 2001 From: Peter Reilly Date: Tue, 30 Dec 2003 11:37:57 +0000 Subject: [PATCH] Fix unit tests. - addtypetest used an unused invalid classpathref - PathTest used an invalid reference in testing attributes git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275847 13f79535-47bb-0310-9956-ffa450edef68 --- src/etc/testcases/types/addtype.xml | 16 ++++++++-------- .../org/apache/tools/ant/types/PathTest.java | 2 ++ 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/src/etc/testcases/types/addtype.xml b/src/etc/testcases/types/addtype.xml index 9f9eff811..fb9340d37 100644 --- a/src/etc/testcases/types/addtype.xml +++ b/src/etc/testcases/types/addtype.xml @@ -46,28 +46,28 @@ - - - - - - - - diff --git a/src/testcases/org/apache/tools/ant/types/PathTest.java b/src/testcases/org/apache/tools/ant/types/PathTest.java index 6d1c8a607..651536b61 100644 --- a/src/testcases/org/apache/tools/ant/types/PathTest.java +++ b/src/testcases/org/apache/tools/ant/types/PathTest.java @@ -439,6 +439,8 @@ public class PathTest extends TestCase { be.getMessage()); } + Path another = new Path(project, "/a:/a"); + project.addReference("dummyref", another); p = new Path(project); p.setRefid(new Reference("dummyref")); try {