You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by ag...@apache.org on 2018/11/09 10:01:07 UTC
ignite git commit: IGNITE-10151 Fix of commented test. - Fixes #5316.
Repository: ignite
Updated Branches:
refs/heads/master a1786bea9 -> cf81e5a7f
IGNITE-10151 Fix of commented test. - Fixes #5316.
Signed-off-by: Alexey Goncharuk <al...@gmail.com>
Project: http://git-wip-us.apache.org/repos/asf/ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/cf81e5a7
Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/cf81e5a7
Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/cf81e5a7
Branch: refs/heads/master
Commit: cf81e5a7fe439ebe8ec19ac9dbacc48197079ae9
Parents: a1786be
Author: ibessonov <be...@gmail.com>
Authored: Fri Nov 9 13:00:32 2018 +0300
Committer: Alexey Goncharuk <al...@gmail.com>
Committed: Fri Nov 9 13:00:32 2018 +0300
----------------------------------------------------------------------
.../internal/binary/BinaryMarshallerSelfTest.java | 16 ++--------------
1 file changed, 2 insertions(+), 14 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ignite/blob/cf81e5a7/modules/core/src/test/java/org/apache/ignite/internal/binary/BinaryMarshallerSelfTest.java
----------------------------------------------------------------------
diff --git a/modules/core/src/test/java/org/apache/ignite/internal/binary/BinaryMarshallerSelfTest.java b/modules/core/src/test/java/org/apache/ignite/internal/binary/BinaryMarshallerSelfTest.java
index e4ed1ff..8635f69 100644
--- a/modules/core/src/test/java/org/apache/ignite/internal/binary/BinaryMarshallerSelfTest.java
+++ b/modules/core/src/test/java/org/apache/ignite/internal/binary/BinaryMarshallerSelfTest.java
@@ -25,7 +25,6 @@ import java.io.ObjectOutput;
import java.io.Serializable;
import java.lang.reflect.Field;
import java.lang.reflect.InvocationHandler;
-import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.lang.reflect.Proxy;
import java.math.BigDecimal;
@@ -1509,24 +1508,13 @@ public class BinaryMarshallerSelfTest extends GridCommonAbstractTest {
/**
* @throws Exception If failed.
*/
- public void _testDefaultMapping() throws Exception {
+ public void testDefaultMapping() throws Exception {
BinaryTypeConfiguration customMappingType =
new BinaryTypeConfiguration(TestBinary.class.getName());
customMappingType.setIdMapper(new BinaryIdMapper() {
@Override public int typeId(String clsName) {
- String typeName;
-
- try {
- Method mtd = BinaryContext.class.getDeclaredMethod("typeName", String.class);
-
- mtd.setAccessible(true);
-
- typeName = (String)mtd.invoke(null, clsName);
- }
- catch (NoSuchMethodException | InvocationTargetException | IllegalAccessException e) {
- throw new RuntimeException(e);
- }
+ String typeName = BinaryContext.SIMPLE_NAME_LOWER_CASE_MAPPER.typeName(clsName);
return typeName.toLowerCase().hashCode();
}