Class VeryBasicAbstractCacheTest<K,V>
java.lang.Object
org.apache.ignite.migrationtools.tests.e2e.impl.VeryBasicAbstractCacheTest<K,V>
- All Implemented Interfaces:
ExampleBasedCacheTest<K,V>
- Direct Known Subclasses:
IntArrayCachesTest.ListTest,IntArrayCachesTest.PrimitiveTest,MyBinaryKeyValueCacheTest.MyBinaryOrganizationCache,MyBinaryKeyValueCacheTest.MyBinaryPersonPojoCache,MyBinaryKeyValueCacheTest.MyBinaryTestCache,MyOrganizationsCacheTest,MySimpleMapCacheTest,PersonCacheTest
public abstract class VeryBasicAbstractCacheTest<K,V>
extends Object
implements ExampleBasedCacheTest<K,V>
VeryBasicAbstractCacheTest.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidassertResultSet(ResultSet rs, V expectedObj) protected voidassertValueFromIgnite2(V actualVal, V expected) protected voidassertValueFromIgnite3(V actualVal, V expected) static <K,V> org.apache.ignite.configuration.CacheConfiguration<K, V> createCacheConfiguration(String name, Class<K> keyType, Class<V> valType) Creates the cache configuration for this test.@Nullable StringCase-sensitve, unquoted version of the schema, or null if not defined.This method exposes references to JDBC Tests.voidtestIgnite2(org.apache.ignite.IgniteCache<K, V> cache, int numGeneratedExamples) voidtestIgnite3(Table ignite3Table, int numGeneratedExamples) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.ignite.migrationtools.tests.e2e.framework.core.ExampleBasedCacheTest
getTableName, supplyExample
-
Constructor Details
-
VeryBasicAbstractCacheTest
-
VeryBasicAbstractCacheTest
Constructor.
-
-
Method Details
-
createCacheConfiguration
public static <K,V> org.apache.ignite.configuration.CacheConfiguration<K,V> createCacheConfiguration(String name, Class<K> keyType, Class<V> valType) Creates the cache configuration for this test. -
getSchemaName
Description copied from interface:ExampleBasedCacheTestCase-sensitve, unquoted version of the schema, or null if not defined.- Specified by:
getSchemaNamein interfaceExampleBasedCacheTest<K,V> - Returns:
- schema.
-
cacheConfiguration
- Specified by:
cacheConfigurationin interfaceExampleBasedCacheTest<K,V>
-
testIgnite2
- Specified by:
testIgnite2in interfaceExampleBasedCacheTest<K,V>
-
testIgnite3
- Specified by:
testIgnite3in interfaceExampleBasedCacheTest<K,V>
-
jdbcTests
Description copied from interface:ExampleBasedCacheTestThis method exposes references to JDBC Tests. TODO: This still does not feel a good way of exporting the results. Probably, it would be better to have an annotation directly on the method, like @TestTemplate. The main issue is that we don't want to load the whole class because it depends on both ignite 2 and ignite 3 classes.- Specified by:
jdbcTestsin interfaceExampleBasedCacheTest<K,V>
-
assertValueFromIgnite2
-
assertValueFromIgnite3
-
assertResultSet
- Throws:
SQLException
-
keyMapper
-
valMapper
-