use of org.apache.ignite.internal.binary.test.GridBinaryTestClass1 in project ignite by apache.
the class BinaryBasicNameMapperSelfTest method testSimpleName.
/**
* @throws Exception If failed.
*/
@Test
public void testSimpleName() throws Exception {
BinaryBasicNameMapper mapper = new BinaryBasicNameMapper(true);
assertEquals("GridBinaryTestClass1", mapper.typeName(GridBinaryTestClass1.class.getName()));
assertEquals("InnerClass", mapper.typeName(GridBinaryTestClass1.class.getName() + "$InnerClass"));
}
use of org.apache.ignite.internal.binary.test.GridBinaryTestClass1 in project ignite by apache.
the class BinaryBasicIdMapperSelfTest method testDefaultCase.
/**
* @throws Exception If failed.
*/
@Test
public void testDefaultCase() throws Exception {
BinaryBasicIdMapper mapper = new BinaryBasicIdMapper(false);
assertEquals(GridBinaryTestClass1.class.getName().hashCode(), mapper.typeId(GridBinaryTestClass1.class.getName()));
assertEquals((GridBinaryTestClass1.class.getName() + "$InnerClass").hashCode(), mapper.typeId(GridBinaryTestClass1.class.getName() + "$InnerClass"));
}
use of org.apache.ignite.internal.binary.test.GridBinaryTestClass1 in project ignite by apache.
the class BinaryBasicIdMapperSelfTest method testLowerCase.
/**
* @throws Exception If failed.
*/
@Test
public void testLowerCase() throws Exception {
BinaryBasicIdMapper mapper = new BinaryBasicIdMapper(true);
assertEquals(GridBinaryTestClass1.class.getName().toLowerCase().hashCode(), mapper.typeId(GridBinaryTestClass1.class.getName()));
assertEquals((GridBinaryTestClass1.class.getName() + "$InnerClass").toLowerCase().hashCode(), mapper.typeId(GridBinaryTestClass1.class.getName() + "$InnerClass"));
}
use of org.apache.ignite.internal.binary.test.GridBinaryTestClass1 in project ignite by apache.
the class BinaryBasicNameMapperSelfTest method testFullName.
/**
* @throws Exception If failed.
*/
@Test
public void testFullName() throws Exception {
BinaryBasicNameMapper mapper = new BinaryBasicNameMapper(false);
assertEquals(GridBinaryTestClass1.class.getName(), mapper.typeName(GridBinaryTestClass1.class.getName()));
assertEquals(GridBinaryTestClass1.class.getName() + "$InnerClass", mapper.typeName(GridBinaryTestClass1.class.getName() + "$InnerClass"));
}
Aggregations