Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/ResourceTest.java15
1 files changed, 15 insertions, 0 deletions
diff --git a/plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/ResourceTest.java b/plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/ResourceTest.java
index 93eae05e4f..4a654b1b4c 100644
--- a/plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/ResourceTest.java
+++ b/plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/ResourceTest.java
@@ -20,6 +20,7 @@ import org.eclipse.emf.cdo.common.lob.CDOBlob;
import org.eclipse.emf.cdo.common.lob.CDOClob;
import org.eclipse.emf.cdo.common.revision.CDORevision;
import org.eclipse.emf.cdo.common.revision.CDORevisionData;
+import org.eclipse.emf.cdo.common.revision.CDORevisionUtil;
import org.eclipse.emf.cdo.common.util.CDODuplicateResourceException;
import org.eclipse.emf.cdo.eresource.CDOBinaryResource;
import org.eclipse.emf.cdo.eresource.CDOResource;
@@ -881,6 +882,20 @@ public class ResourceTest extends AbstractCDOTest
}
}
+ public void testPathWithSpaces() throws Exception
+ {
+ CDOSession session = openSession();
+ CDOTransaction transaction = session.openTransaction();
+ CDOResource resource = transaction.createResource(getResourcePath("/a path with spaces"));
+ assertEquals(getResourcePath("/a path with spaces"), resource.getPath());
+ assertEquals(createResourceURI(session, getResourcePath("/a path with spaces")), resource.getURI());
+
+ transaction.commit();
+ assertEquals(getResourcePath("/a path with spaces"), resource.getPath());
+ assertEquals(getResourcePath("/a path with spaces"), CDORevisionUtil.getResourceNodePath(resource.cdoRevision(), transaction));
+ assertEquals(createResourceURI(session, getResourcePath("/a path with spaces")), resource.getURI());
+ }
+
public void testPrefetchContents() throws Exception
{
{

Back to the top