[jboss-cvs] JBossAS SVN: r77315 - projects/vfs/trunk/src/test/java/org/jboss/test/virtual/test.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Thu Aug 21 09:24:08 EDT 2008
Author: alesj
Date: 2008-08-21 09:24:08 -0400 (Thu, 21 Aug 2008)
New Revision: 77315
Modified:
projects/vfs/trunk/src/test/java/org/jboss/test/virtual/test/MemoryTestCase.java
Log:
Additional in-memory url test.
Modified: projects/vfs/trunk/src/test/java/org/jboss/test/virtual/test/MemoryTestCase.java
===================================================================
--- projects/vfs/trunk/src/test/java/org/jboss/test/virtual/test/MemoryTestCase.java 2008-08-21 13:19:14 UTC (rev 77314)
+++ projects/vfs/trunk/src/test/java/org/jboss/test/virtual/test/MemoryTestCase.java 2008-08-21 13:24:08 UTC (rev 77315)
@@ -59,7 +59,7 @@
return suite(MemoryTestCase.class);
}
- public void testRootCreation() throws Exception
+ public void testRootCreationBad() throws Exception
{
URL dynamicClassRoot = new URL("vfsmemory", new GUID().toString(), "");
MemoryFileFactory.createRoot(dynamicClassRoot);
@@ -77,6 +77,16 @@
}
}
+ public void testRootCreationGood() throws Exception
+ {
+ URL dynamicClassRoot = new URL("vfsmemory", GUID.asString(), "");
+ VirtualFile root = MemoryFileFactory.createRoot(dynamicClassRoot).getRoot();
+ assertEquals(root, VFS.getRoot(dynamicClassRoot));
+ VirtualFile file = MemoryFileFactory.putFile(new URL(dynamicClassRoot + "/classes/somename"), new byte[0]);
+ assertNotNull(file);
+ System.out.println(file.toURL());
+ }
+
public void testSerializable() throws Exception
{
URI uri = new URI("vfsmemory://aopdomain");
More information about the jboss-cvs-commits
mailing list