ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject [22/50] [abbrv] incubator-ignite git commit: #ignite-gg-9924: Fix test for marshalling.
Date Fri, 20 Mar 2015 15:48:17 GMT
#ignite-gg-9924: Fix test for marshalling.


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

Branch: refs/heads/ignite-525
Commit: d673092ee60bd009cf88c6c9874b68dedf14e239
Parents: 07ac8b1
Author: ivasilinets <ivasilinets@gridgain.com>
Authored: Fri Mar 20 11:30:27 2015 +0300
Committer: ivasilinets <ivasilinets@gridgain.com>
Committed: Fri Mar 20 11:30:27 2015 +0300

----------------------------------------------------------------------
 ...izedMarshallerSerialPersistentFieldsSelfTest.java | 15 +++++++++------
 1 file changed, 9 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/d673092e/modules/core/src/test/java/org/apache/ignite/marshaller/optimized/OptimizedMarshallerSerialPersistentFieldsSelfTest.java
----------------------------------------------------------------------
diff --git a/modules/core/src/test/java/org/apache/ignite/marshaller/optimized/OptimizedMarshallerSerialPersistentFieldsSelfTest.java
b/modules/core/src/test/java/org/apache/ignite/marshaller/optimized/OptimizedMarshallerSerialPersistentFieldsSelfTest.java
index 3dbbd4c..ce23567 100644
--- a/modules/core/src/test/java/org/apache/ignite/marshaller/optimized/OptimizedMarshallerSerialPersistentFieldsSelfTest.java
+++ b/modules/core/src/test/java/org/apache/ignite/marshaller/optimized/OptimizedMarshallerSerialPersistentFieldsSelfTest.java
@@ -16,23 +16,26 @@
  */
 package org.apache.ignite.marshaller.optimized;
 
-import org.apache.ignite.testframework.junits.common.*;
+import org.apache.ignite.marshaller.*;
 
 import java.io.*;
 
 /**
  * Test that Optimized Marshaller works with classes with serialPersistentFields.
  */
-public class OptimizedMarshallerSerialPersistentFieldsSelfTest extends GridCommonAbstractTest
{
+public class OptimizedMarshallerSerialPersistentFieldsSelfTest  extends GridMarshallerAbstractTest
{
+    /** {@inheritDoc} */
+    @Override protected Marshaller marshaller() {
+        return new OptimizedMarshaller(false);
+    }
+
     /**
      * @throws Exception If failed.
      */
     public void testOptimizedMarshaller() throws Exception {
-        OptimizedMarshaller m = new OptimizedMarshaller();
-
-        m.unmarshal(m.marshal(new TestClass()), TestClass.class.getClassLoader());
+        unmarshal(marshal(new TestClass()));
 
-        TestClass2 val = m.unmarshal(m.marshal(new TestClass2()), TestClass2.class.getClassLoader());
+        TestClass2 val = unmarshal(marshal(new TestClass2()));
 
         assertNull(val.field3);
     }


Mime
View raw message