@Test public void canRegisterTwoDestinations() { JCoEnvironment.registerDestination(DESTINATION_1, JCO_PROPERTIES_DUMMY); JCoEnvironment.registerDestination(DESTINATION_2, JCO_PROPERTIES_DUMMY); assertThat(DESTINATION_1).is(registeredWithJCo); assertThat(DESTINATION_2).is(registeredWithJCo); }
public static void registerDestination(final String destinationName, final Properties jcoProperties) { LOG.info("Registering destination " + destinationName); if (!destinationDataProvider.hasDestinations()) { registerDestinationDataProvider(); } destinationDataProvider.addDestination(destinationName, jcoProperties); }
JCoEnvironment { public static void registerDestination(final String destinationName, final Properties jcoProperties) { LOG.info("Registering destination " + destinationName); if (!destinationDataProvider.hasDestinations()) { registerDestinationDataProvider(); } destinationDataProvider.addDestination(destinationName, jcoProperties); } }
JCoEnvironment { public static void registerDestination(final String destinationName, final Properties jcoProperties) { LOG.info("Registering destination " + destinationName); if (!destinationDataProvider.hasDestinations()) { registerDestinationDataProvider(); } destinationDataProvider.addDestination(destinationName, jcoProperties); } private  JCoEnvironment(); }
JCoEnvironment { public static void registerDestination(final String destinationName, final Properties jcoProperties) { LOG.info("Registering destination " + destinationName); if (!destinationDataProvider.hasDestinations()) { registerDestinationDataProvider(); } destinationDataProvider.addDestination(destinationName, jcoProperties); } private  JCoEnvironment(); static void registerDestination(final String destinationName, final Properties jcoProperties); static void unregisterDestination(final String destinationName); static JCoDestination getDestination(final String destinationName); }
JCoEnvironment { public static void registerDestination(final String destinationName, final Properties jcoProperties) { LOG.info("Registering destination " + destinationName); if (!destinationDataProvider.hasDestinations()) { registerDestinationDataProvider(); } destinationDataProvider.addDestination(destinationName, jcoProperties); } private  JCoEnvironment(); static void registerDestination(final String destinationName, final Properties jcoProperties); static void unregisterDestination(final String destinationName); static JCoDestination getDestination(final String destinationName);  }