AppSchemaDataAccessConfigurator { public static boolean isJoining() { String s=AppSchemaDataAccessRegistry.getAppSchemaProperties().getProperty(PROPERTY_JOINING); return s==null || s.equalsIgnoreCase("true"); } private  AppSchemaDataAccessConfigurator(AppSchemaDataAccessDTO config); static boolean isJoining(); static boolean isJoiningSet(); static Set<FeatureTypeMapping> buildMappings(AppSchemaDataAccessDTO config); static String PROPERTY_JOINING; }
@Test public void testJoiningDefault() { AppSchemaDataAccessRegistry.clearAppSchemaProperties(); boolean joining = AppSchemaDataAccessConfigurator.isJoining(); assertTrue(joining); }
@Test public void testJoiningFalse() { AppSchemaDataAccessRegistry.getAppSchemaProperties().setProperty( AppSchemaDataAccessConfigurator.PROPERTY_JOINING, "false"); boolean joining = AppSchemaDataAccessConfigurator.isJoining(); assertFalse(joining); AppSchemaDataAccessRegistry.clearAppSchemaProperties(); }
@Test public void testJoiningTrue() { AppSchemaDataAccessRegistry.getAppSchemaProperties().setProperty( AppSchemaDataAccessConfigurator.PROPERTY_JOINING, "true"); boolean joining = AppSchemaDataAccessConfigurator.isJoining(); assertTrue(joining); AppSchemaDataAccessRegistry.clearAppSchemaProperties(); }