[exo-jcr-commits] exo-jcr SVN: r2964 - in jcr/trunk/exo.jcr.component.core/src/test/java/org/exoplatform/services/jcr/impl/core: value and 1 other directory.

do-not-reply at jboss.org do-not-reply at jboss.org
Fri Aug 20 09:13:28 EDT 2010


Author: dkatayev
Date: 2010-08-20 09:13:27 -0400 (Fri, 20 Aug 2010)
New Revision: 2964

Added:
   jcr/trunk/exo.jcr.component.core/src/test/java/org/exoplatform/services/jcr/impl/core/value/
   jcr/trunk/exo.jcr.component.core/src/test/java/org/exoplatform/services/jcr/impl/core/value/TestPermissionValue.java
Removed:
   jcr/trunk/exo.jcr.component.core/src/test/java/org/exoplatform/services/jcr/impl/core/value/TestPermissionValue.java
Log:
EXOJCR-908 Added tests for PermissionValue.parse(String) and PermissionValue.asString(String, String) methods.

Copied: jcr/trunk/exo.jcr.component.core/src/test/java/org/exoplatform/services/jcr/impl/core/value (from rev 2962, jcr/branches/1.12.x/exo.jcr.component.core/src/test/java/org/exoplatform/services/jcr/impl/core/value)

Deleted: jcr/trunk/exo.jcr.component.core/src/test/java/org/exoplatform/services/jcr/impl/core/value/TestPermissionValue.java
===================================================================
--- jcr/branches/1.12.x/exo.jcr.component.core/src/test/java/org/exoplatform/services/jcr/impl/core/value/TestPermissionValue.java	2010-08-20 13:02:43 UTC (rev 2962)
+++ jcr/trunk/exo.jcr.component.core/src/test/java/org/exoplatform/services/jcr/impl/core/value/TestPermissionValue.java	2010-08-20 13:13:27 UTC (rev 2964)
@@ -1,40 +0,0 @@
-/*
- * Copyright (C) 2003-2007 eXo Platform SAS.
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Affero General Public License
- * as published by the Free Software Foundation; either version 3
- * of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, see<http://www.gnu.org/licenses/>.
- */
-
-package org.exoplatform.services.jcr.impl.core.value;
-
-import junit.framework.TestCase;
-
-public class TestPermissionValue extends TestCase
-{
-   
-   public void testParse() {
-
-      String[] parsedValues = PermissionValue.parse("root read");
-      assertEquals(2, parsedValues.length);
-      assertEquals("root", parsedValues[0]);
-      assertEquals("read", parsedValues[1]);
-
-    }
-
-    public void testAsString() {
-
-      assertEquals("root read", PermissionValue.asString("root", "read"));
-
-    }
-
-}

Copied: jcr/trunk/exo.jcr.component.core/src/test/java/org/exoplatform/services/jcr/impl/core/value/TestPermissionValue.java (from rev 2962, jcr/branches/1.12.x/exo.jcr.component.core/src/test/java/org/exoplatform/services/jcr/impl/core/value/TestPermissionValue.java)
===================================================================
--- jcr/trunk/exo.jcr.component.core/src/test/java/org/exoplatform/services/jcr/impl/core/value/TestPermissionValue.java	                        (rev 0)
+++ jcr/trunk/exo.jcr.component.core/src/test/java/org/exoplatform/services/jcr/impl/core/value/TestPermissionValue.java	2010-08-20 13:13:27 UTC (rev 2964)
@@ -0,0 +1,40 @@
+/*
+ * Copyright (C) 2003-2007 eXo Platform SAS.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Affero General Public License
+ * as published by the Free Software Foundation; either version 3
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, see<http://www.gnu.org/licenses/>.
+ */
+
+package org.exoplatform.services.jcr.impl.core.value;
+
+import junit.framework.TestCase;
+
+public class TestPermissionValue extends TestCase
+{
+   
+   public void testParse() {
+
+      String[] parsedValues = PermissionValue.parse("root read");
+      assertEquals(2, parsedValues.length);
+      assertEquals("root", parsedValues[0]);
+      assertEquals("read", parsedValues[1]);
+
+    }
+
+    public void testAsString() {
+
+      assertEquals("root read", PermissionValue.asString("root", "read"));
+
+    }
+
+}



More information about the exo-jcr-commits mailing list