Author: snjeza
Date: 2011-03-27 09:29:08 -0400 (Sun, 27 Mar 2011)
New Revision: 30056
Modified:
trunk/runtime/tests/org.jboss.tools.runtime.test/src/org/jboss/tools/runtime/test/RuntimeDetectionTest.java
Log:
JBIDE-7583 Add tests for org.jboss.tools.runtime plugin
Modified:
trunk/runtime/tests/org.jboss.tools.runtime.test/src/org/jboss/tools/runtime/test/RuntimeDetectionTest.java
===================================================================
---
trunk/runtime/tests/org.jboss.tools.runtime.test/src/org/jboss/tools/runtime/test/RuntimeDetectionTest.java 2011-03-26
23:09:33 UTC (rev 30055)
+++
trunk/runtime/tests/org.jboss.tools.runtime.test/src/org/jboss/tools/runtime/test/RuntimeDetectionTest.java 2011-03-27
13:29:08 UTC (rev 30056)
@@ -114,6 +114,18 @@
"runtimePaths.size()\nExpected: 5\nWas: " + runtimePaths.size(),
runtimePaths.size() == 5);
}
+
+ @Test
+ public void testRuntimePathsExists() {
+ List<RuntimePath> runtimePaths = RuntimeUIActivator.getDefault()
+ .getRuntimePaths();
+ for (RuntimePath runtimePath:runtimePaths) {
+ String path = runtimePath.getPath();
+ File file = new File(path);
+ assertTrue("The '" + file.getAbsolutePath()
+ + "' path isn't valid.", file.isDirectory());
+ }
+ }
@Test
public void testLocations() {
Show replies by date