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 Details

    • VeryBasicAbstractCacheTest

      public VeryBasicAbstractCacheTest(Class<K> keyClass, Class<V> valueClass)
    • VeryBasicAbstractCacheTest

      public VeryBasicAbstractCacheTest(Class<K> keyClass, Class<V> valueClass, String keyColumnName)
      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

      @Nullable public @Nullable String getSchemaName()
      Description copied from interface: ExampleBasedCacheTest
      Case-sensitve, unquoted version of the schema, or null if not defined.
      Specified by:
      getSchemaName in interface ExampleBasedCacheTest<K,V>
      Returns:
      schema.
    • cacheConfiguration

      public org.apache.ignite.configuration.CacheConfiguration<K,V> cacheConfiguration()
      Specified by:
      cacheConfiguration in interface ExampleBasedCacheTest<K,V>
    • testIgnite2

      public void testIgnite2(org.apache.ignite.IgniteCache<K,V> cache, int numGeneratedExamples)
      Specified by:
      testIgnite2 in interface ExampleBasedCacheTest<K,V>
    • testIgnite3

      public void testIgnite3(Table ignite3Table, int numGeneratedExamples)
      Specified by:
      testIgnite3 in interface ExampleBasedCacheTest<K,V>
    • jdbcTests

      public Map<String,SqlTest> jdbcTests()
      Description copied from interface: ExampleBasedCacheTest
      This 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:
      jdbcTests in interface ExampleBasedCacheTest<K,V>
    • assertValueFromIgnite2

      protected void assertValueFromIgnite2(V actualVal, V expected)
    • assertValueFromIgnite3

      protected void assertValueFromIgnite3(V actualVal, V expected)
    • assertResultSet

      protected void assertResultSet(ResultSet rs, V expectedObj) throws SQLException
      Throws:
      SQLException
    • keyMapper

      protected Mapper<K> keyMapper()
    • valMapper

      protected Mapper<V> valMapper()