jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ang...@apache.org
Subject svn commit: r1547041 - in /jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak: plugins/memory/MemoryPropertyBuilderTest.java util/PropertyBuilderTest.java
Date Mon, 02 Dec 2013 14:50:39 GMT
Author: angela
Date: Mon Dec  2 14:50:38 2013
New Revision: 1547041

URL: http://svn.apache.org/r1547041
Log:
OAK-372 : Integrate PropertyBuilder with NodeBuilder (move test-cases)

Added:
    jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/util/PropertyBuilderTest.java
  (contents, props changed)
      - copied, changed from r1547034, jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/plugins/memory/MemoryPropertyBuilderTest.java
Removed:
    jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/plugins/memory/MemoryPropertyBuilderTest.java

Copied: jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/util/PropertyBuilderTest.java
(from r1547034, jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/plugins/memory/MemoryPropertyBuilderTest.java)
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/util/PropertyBuilderTest.java?p2=jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/util/PropertyBuilderTest.java&p1=jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/plugins/memory/MemoryPropertyBuilderTest.java&r1=1547034&r2=1547041&rev=1547041&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/plugins/memory/MemoryPropertyBuilderTest.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/util/PropertyBuilderTest.java
Mon Dec  2 14:50:38 2013
@@ -14,28 +14,34 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package org.apache.jackrabbit.oak.plugins.memory;
+package org.apache.jackrabbit.oak.util;
 
 import java.util.Arrays;
 
 import org.apache.jackrabbit.oak.api.PropertyState;
 import org.apache.jackrabbit.oak.api.Type;
-import org.apache.jackrabbit.oak.util.PropertyBuilder;
+import org.apache.jackrabbit.oak.plugins.memory.GenericPropertyState;
+import org.apache.jackrabbit.oak.plugins.memory.LongPropertyState;
+import org.apache.jackrabbit.oak.plugins.memory.MultiGenericPropertyState;
+import org.apache.jackrabbit.oak.plugins.memory.MultiLongPropertyState;
+import org.apache.jackrabbit.oak.plugins.memory.MultiStringPropertyState;
+import org.apache.jackrabbit.oak.plugins.memory.StringPropertyState;
+import org.junit.Assert;
 import org.junit.Test;
 
 import static org.junit.Assert.assertEquals;
 
-public class MemoryPropertyBuilderTest {
+public class PropertyBuilderTest {
 
     @Test
     public void testStringProperty() {
         PropertyBuilder builder = PropertyBuilder.scalar(Type.STRING);
         builder.setName("foo").setValue("bar");
-        assertEquals(StringPropertyState.stringProperty("foo", "bar"),
+        Assert.assertEquals(StringPropertyState.stringProperty("foo", "bar"),
                 builder.getPropertyState());
 
         builder.setArray();
-        assertEquals(MultiStringPropertyState.stringProperty("foo", Arrays.asList("bar")),
+        Assert.assertEquals(MultiStringPropertyState.stringProperty("foo", Arrays.asList("bar")),
                 builder.getPropertyState());
     }
 
@@ -43,11 +49,11 @@ public class MemoryPropertyBuilderTest {
     public void testLongProperty() {
         PropertyBuilder builder = PropertyBuilder.scalar(Type.LONG);
         builder.setName("foo").setValue(42L);
-        assertEquals(LongPropertyState.createLongProperty("foo", 42L),
+        Assert.assertEquals(LongPropertyState.createLongProperty("foo", 42L),
                 builder.getPropertyState());
 
         builder.setArray();
-        assertEquals(MultiLongPropertyState.createLongProperty("foo", Arrays.asList(42L)),
+        Assert.assertEquals(MultiLongPropertyState.createLongProperty("foo", Arrays.asList(42L)),
                 builder.getPropertyState());
     }
 
@@ -80,7 +86,7 @@ public class MemoryPropertyBuilderTest {
         builder.setName("foo")
                 .addValue(date1)
                 .addValue(date2);
-        assertEquals(MultiGenericPropertyState.dateProperty("foo", Arrays.asList(date1, date2)),
+        Assert.assertEquals(MultiGenericPropertyState.dateProperty("foo", Arrays.asList(date1,
date2)),
                 builder.getPropertyState());
 
         builder.setScalar();
@@ -91,7 +97,7 @@ public class MemoryPropertyBuilderTest {
         }
 
         builder.removeValue(date1);
-        assertEquals(GenericPropertyState.dateProperty("foo", date2),
+        Assert.assertEquals(GenericPropertyState.dateProperty("foo", date2),
                 builder.getPropertyState());
     }
 

Propchange: jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/util/PropertyBuilderTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/util/PropertyBuilderTest.java
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision Rev URL



Mime
View raw message