summaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorMark Donszelmann <Mark.Donszelmann@gmail.com>2009-11-27 14:33:32 +0100
committerMark Donszelmann <Mark.Donszelmann@gmail.com>2009-11-27 14:33:32 +0100
commit97c4b6bd774960fe9301829cf2d1ac23882e8958 (patch)
tree90932a84a98f9243c70fb9f1d32aefc0cf93a200 /src/test
parent836ecd4574bcd7f0db9b32ee2f64db8bb466a057 (diff)
downloadcpptasks-parallel-97c4b6bd774960fe9301829cf2d1ac23882e8958.tar.gz
cpptasks-parallel-97c4b6bd774960fe9301829cf2d1ac23882e8958.tar.bz2
cpptasks-parallel-97c4b6bd774960fe9301829cf2d1ac23882e8958.tar.xz
cpptasks-parallel-97c4b6bd774960fe9301829cf2d1ac23882e8958.zip
Fixed test for NAR-109
Diffstat (limited to 'src/test')
-rw-r--r--src/test/java/net/sf/antcontrib/cpptasks/TestCCTask.java12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/test/java/net/sf/antcontrib/cpptasks/TestCCTask.java b/src/test/java/net/sf/antcontrib/cpptasks/TestCCTask.java
index 82faae2..e26ebb3 100644
--- a/src/test/java/net/sf/antcontrib/cpptasks/TestCCTask.java
+++ b/src/test/java/net/sf/antcontrib/cpptasks/TestCCTask.java
@@ -19,8 +19,10 @@ package net.sf.antcontrib.cpptasks;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
-import java.util.Hashtable;
+import java.util.HashMap;
+import java.util.Map;
import java.util.Vector;
+
import junit.framework.TestCase;
import net.sf.antcontrib.cpptasks.compiler.CommandLineCompilerConfiguration;
import net.sf.antcontrib.cpptasks.compiler.CompilerConfiguration;
@@ -53,9 +55,9 @@ public final class TestCCTask
TargetInfo target1 = new TargetInfo(config1, new File[] {new File(
"src/foo.bar")}
, null, new File("foo.obj"), true);
- Hashtable targets = new Hashtable();
+ Map targets = new HashMap();
targets.put(target1.getOutput(), target1);
- Hashtable targetsByConfig = CCTask
+ Map targetsByConfig = CCTask
.getTargetsToBuildByConfiguration(targets);
Vector targetsForConfig1 = (Vector) targetsByConfig.get(config1);
assertNotNull(targetsForConfig1);
@@ -80,12 +82,12 @@ public final class TestCCTask
TargetInfo target1 = new TargetInfo(config1, new File[] {new File(
"src/foo.bar")}
, null, new File("foo.obj"), false);
- Hashtable targets = new Hashtable();
+ Map targets = new HashMap();
targets.put(target1.getOutput(), target1);
//
// no targets need to be built, return a zero-length hashtable
//
- Hashtable targetsByConfig = CCTask
+ Map targetsByConfig = CCTask
.getTargetsToBuildByConfiguration(targets);
assertEquals(0, targetsByConfig.size());
}