Class MapsTest

java.lang.Object
org.fastnate.generator.test.AbstractEntitySqlGeneratorTest
org.fastnate.generator.test.collections.MapsTest

public class MapsTest extends AbstractEntitySqlGeneratorTest
Test maps in entities.
Author:
Tobias Liefke
  • Constructor Details

    • MapsTest

      public MapsTest()
  • Method Details

    • getName

      private static String getName(Object value)
    • testMap

      private static <K, V> void testMap(String firstKey, String firstValue, String secondKey, String secondValue, Map<K,V> resultMap, Map<K,V> testMap)
    • testBasicMaps

      @Test public void testBasicMaps() throws IOException
      Tests to write maps with content of basic type.
      Throws:
      IOException - if the generator throws one
    • testEntityMaps

      @Test public void testEntityMaps() throws IOException
      Tests to write maps with entities.
      Throws:
      IOException - if the generator throws one