@Test public void testThrowDataSourceException() throws Exception { Name typeName = Types.typeName(GSMLNS, "DoesNotExist"); boolean handledException = false; try { AppSchemaDataAccessRegistry.getMappingByElement(typeName); } catch (DataSourceException e) { LOGGER.info(e.toString()); handledException = true; assertTrue(e.getMessage().startsWith("Feature type " + typeName + " not found")); } assertTrue("Expected a DataSourceException to have been thrown and handled", handledException); }
public static FeatureTypeMapping getMappingByElement(Name featureTypeName) throws IOException { return getInstance().mappingByElement(featureTypeName); }
AppSchemaDataAccessRegistry extends DataAccessRegistry { public static FeatureTypeMapping getMappingByElement(Name featureTypeName) throws IOException { return getInstance().mappingByElement(featureTypeName); } }
AppSchemaDataAccessRegistry extends DataAccessRegistry { public static FeatureTypeMapping getMappingByElement(Name featureTypeName) throws IOException { return getInstance().mappingByElement(featureTypeName); }  }
AppSchemaDataAccessRegistry extends DataAccessRegistry { public static FeatureTypeMapping getMappingByElement(Name featureTypeName) throws IOException { return getInstance().mappingByElement(featureTypeName); }  static boolean hasName(Name featureTypeName); static FeatureTypeMapping getMappingByName(Name featureTypeName); static FeatureTypeMapping getMappingByElement(Name featureTypeName); @SuppressWarnings("unchecked") static FeatureSource<FeatureType, Feature> getSimpleFeatureSource(Name featureTypeName); static boolean hasTargetElement(Name featureTypeName); static InterpolationProperties getAppSchemaProperties(); static void clearAppSchemaProperties(); }
AppSchemaDataAccessRegistry extends DataAccessRegistry { public static FeatureTypeMapping getMappingByElement(Name featureTypeName) throws IOException { return getInstance().mappingByElement(featureTypeName); }  static boolean hasName(Name featureTypeName); static FeatureTypeMapping getMappingByName(Name featureTypeName); static FeatureTypeMapping getMappingByElement(Name featureTypeName); @SuppressWarnings("unchecked") static FeatureSource<FeatureType, Feature> getSimpleFeatureSource(Name featureTypeName); static boolean hasTargetElement(Name featureTypeName); static InterpolationProperties getAppSchemaProperties(); static void clearAppSchemaProperties();  }