Author: dgolovin
Date: 2007-10-22 21:40:16 -0400 (Mon, 22 Oct 2007)
New Revision: 4439
Modified:
trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/project/facet/SeamRuntimeListConverterTest.java
Log:
http://jira.jboss.org/jira/browse/JBIDE-1141
not copy utils check for copying file to itself.
some cleanup and refactoring has been done for I18N.
Modified:
trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/project/facet/SeamRuntimeListConverterTest.java
===================================================================
---
trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/project/facet/SeamRuntimeListConverterTest.java 2007-10-23
01:33:50 UTC (rev 4438)
+++
trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/project/facet/SeamRuntimeListConverterTest.java 2007-10-23
01:40:16 UTC (rev 4439)
@@ -17,7 +17,7 @@
import junit.framework.TestCase;
import org.jboss.tools.seam.core.project.facet.SeamRuntime;
-import org.jboss.tools.seam.core.project.facet.SeamRuntimeListConverter1;
+import org.jboss.tools.seam.core.project.facet.SeamRuntimeListConverter;
import org.jboss.tools.seam.core.project.facet.SeamVersion;
/**
@@ -27,7 +27,7 @@
public class SeamRuntimeListConverterTest extends TestCase {
/**
- * Test method for {@link
org.jboss.tools.seam.core.project.facet.SeamRuntimeListConverter1#getMap(java.lang.String)}.
+ * Test method for {@link
org.jboss.tools.seam.core.project.facet.SeamRuntimeListConverter#getMap(java.lang.String)}.
*/
public void testSerializeSeamRuntimeListToString() {
Map<String,SeamRuntime> runtimes = new HashMap<String,SeamRuntime>();
@@ -41,7 +41,7 @@
rt2.setHomeDir("homeDir");
rt2.setVersion(SeamVersion.parseFromString("1.2"));
runtimes.put(rt2.getName(),rt2);
- SeamRuntimeListConverter1 converter = new SeamRuntimeListConverter1();
+ SeamRuntimeListConverter converter = new SeamRuntimeListConverter();
String config = converter.getString(runtimes);
assertNotNull("Saved runtime list cannot be null", config);
assertTrue("Saved list of runtimes cannot be empty.",
!"".equals(config.trim()));
@@ -55,10 +55,10 @@
}
/**
- * Test method for {@link
org.jboss.tools.seam.core.project.facet.SeamRuntimeListConverter1#getString(java.util.List)}.
+ * Test method for {@link
org.jboss.tools.seam.core.project.facet.SeamRuntimeListConverter#getString(java.util.List)}.
*/
public void testLoadingSeamRuntimeListFromString() {
- SeamRuntimeListConverter1 converter = new SeamRuntimeListConverter1();
+ SeamRuntimeListConverter converter = new SeamRuntimeListConverter();
Map<String,SeamRuntime> runtimes =
converter.getMap("name|rt1|homeDir|homeDirPath1|version|1.2|default|true,"
+
"name|rt2|homeDir|homeDirPath2|version|1.2|default|false");