ConnectionSchemaV1 extends BaseSchema implements ConvertableSchema<ConnectionSchema> { public String getDestinationName() { return destinationName; } ConnectionSchemaV1(Map map); @Override ConnectionSchema convert(); String getSourceName(); String getDestinationName(); String getName(); @Override int getVersion(); static final String SOURCE_RELATIONSHIP_NAME_KEY; static final String DESTINATION_NAME_KEY; static final String SOURCE_NAME_KEY; }
@Test public void testDestinationName() { assertEquals(testDestinationName, createSchema(0).getDestinationName()); }
@Test public void testNoDestinationName() { Map<String, Object> map = createMap(); map.remove(ConnectionSchemaV1.DESTINATION_NAME_KEY); assertNull(createSchema(map, 1).getDestinationName()); }