Author: koen.aers(a)jboss.com
Date: 2011-06-29 16:10:29 -0400 (Wed, 29 Jun 2011)
New Revision: 32459
Added:
trunk/forge/plugins/org.jboss.tools.forge.core/src/org/jboss/tools/forge/core/process/ForgeExternalRuntime.java
trunk/forge/tests/org.jboss.tools.forge.core.test/src/org/jboss/tools/forge/core/process/ForgeExternalRuntimeTest.java
Log:
implementation of ForgeExternalRuntime
Added:
trunk/forge/plugins/org.jboss.tools.forge.core/src/org/jboss/tools/forge/core/process/ForgeExternalRuntime.java
===================================================================
---
trunk/forge/plugins/org.jboss.tools.forge.core/src/org/jboss/tools/forge/core/process/ForgeExternalRuntime.java
(rev 0)
+++
trunk/forge/plugins/org.jboss.tools.forge.core/src/org/jboss/tools/forge/core/process/ForgeExternalRuntime.java 2011-06-29
20:10:29 UTC (rev 32459)
@@ -0,0 +1,22 @@
+package org.jboss.tools.forge.core.process;
+
+public class ForgeExternalRuntime implements ForgeRuntime {
+
+ private String name, location;
+
+ public ForgeExternalRuntime(String name, String location) {
+ this.name = name;
+ this.location = location;
+ }
+
+ @Override
+ public String getName() {
+ return name;
+ }
+
+ @Override
+ public String getLocation() {
+ return location;
+ }
+
+}
Added:
trunk/forge/tests/org.jboss.tools.forge.core.test/src/org/jboss/tools/forge/core/process/ForgeExternalRuntimeTest.java
===================================================================
---
trunk/forge/tests/org.jboss.tools.forge.core.test/src/org/jboss/tools/forge/core/process/ForgeExternalRuntimeTest.java
(rev 0)
+++
trunk/forge/tests/org.jboss.tools.forge.core.test/src/org/jboss/tools/forge/core/process/ForgeExternalRuntimeTest.java 2011-06-29
20:10:29 UTC (rev 32459)
@@ -0,0 +1,16 @@
+package org.jboss.tools.forge.core.process;
+
+import static org.junit.Assert.*;
+
+import org.junit.Test;
+
+public class ForgeExternalRuntimeTest {
+
+ @Test
+ public void test() {
+ ForgeExternalRuntime runtime = new ForgeExternalRuntime("foo",
"bar");
+ assertEquals("foo", runtime.getName());
+ assertEquals("bar", runtime.getLocation());
+ }
+
+}
Show replies by date