ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akuznet...@apache.org
Subject [15/24] ignite git commit: Fixed failure in BinaryObjectBuilderSelfTest.testSetBinaryObject.
Date Mon, 14 Dec 2015 08:38:28 GMT
Fixed failure in BinaryObjectBuilderSelfTest.testSetBinaryObject.


Project: http://git-wip-us.apache.org/repos/asf/ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/3db14482
Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/3db14482
Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/3db14482

Branch: refs/heads/ignite-843-rc2
Commit: 3db14482091d01e96e1ae40a15cb903c3adcddbd
Parents: ed27fbd
Author: vozerov-gridgain <vozerov@gridgain.com>
Authored: Mon Dec 14 10:19:24 2015 +0300
Committer: vozerov-gridgain <vozerov@gridgain.com>
Committed: Mon Dec 14 10:19:24 2015 +0300

----------------------------------------------------------------------
 .../internal/binary/BinaryObjectBuilderSelfTest.java      | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/3db14482/modules/core/src/test/java/org/apache/ignite/internal/binary/BinaryObjectBuilderSelfTest.java
----------------------------------------------------------------------
diff --git a/modules/core/src/test/java/org/apache/ignite/internal/binary/BinaryObjectBuilderSelfTest.java
b/modules/core/src/test/java/org/apache/ignite/internal/binary/BinaryObjectBuilderSelfTest.java
index 2424fe8..3b6d0b0 100644
--- a/modules/core/src/test/java/org/apache/ignite/internal/binary/BinaryObjectBuilderSelfTest.java
+++ b/modules/core/src/test/java/org/apache/ignite/internal/binary/BinaryObjectBuilderSelfTest.java
@@ -909,11 +909,19 @@ public class BinaryObjectBuilderSelfTest extends GridCommonAbstractTest
{
      *
      */
     public void testSetBinaryObject() {
+        // Prepare marshaller context.
+        CacheObjectBinaryProcessorImpl proc = ((CacheObjectBinaryProcessorImpl)(grid(0)).context().cacheObjects());
+
+        proc.marshal(new GridBinaryTestClasses.TestObjectContainer());
+        proc.marshal(new GridBinaryTestClasses.TestObjectAllTypes());
+
+        // Actual test.
         BinaryObject binaryObj = builder(GridBinaryTestClasses.TestObjectContainer.class.getName())
             .setField("foo", toBinary(new GridBinaryTestClasses.TestObjectAllTypes()))
             .build();
 
-        assertTrue(binaryObj.<GridBinaryTestClasses.TestObjectContainer>deserialize().foo
instanceof GridBinaryTestClasses.TestObjectAllTypes);
+        assertTrue(binaryObj.<GridBinaryTestClasses.TestObjectContainer>deserialize().foo
instanceof
+            GridBinaryTestClasses.TestObjectAllTypes);
     }
 
     /**


Mime
View raw message