@Test public void createExisting() { Optional<TesseraApp> result = TesseraAppFactory.create(CommunicationType.REST, AppType.P2P); assertThat(result).isPresent(); assertThat(result.get()).isExactlyInstanceOf(MockTesseraApp.class); }
public static Optional<TesseraApp> create(CommunicationType communicationType, AppType appType) { LOGGER.info("Create from {} {}", communicationType, appType); return INSTANCE.createApp(communicationType, appType); }
TesseraAppFactory { public static Optional<TesseraApp> create(CommunicationType communicationType, AppType appType) { LOGGER.info("Create from {} {}", communicationType, appType); return INSTANCE.createApp(communicationType, appType); } }
TesseraAppFactory { public static Optional<TesseraApp> create(CommunicationType communicationType, AppType appType) { LOGGER.info("Create from {} {}", communicationType, appType); return INSTANCE.createApp(communicationType, appType); } private  TesseraAppFactory(); }
TesseraAppFactory { public static Optional<TesseraApp> create(CommunicationType communicationType, AppType appType) { LOGGER.info("Create from {} {}", communicationType, appType); return INSTANCE.createApp(communicationType, appType); } private  TesseraAppFactory(); static Optional<TesseraApp> create(CommunicationType communicationType, AppType appType); }
TesseraAppFactory { public static Optional<TesseraApp> create(CommunicationType communicationType, AppType appType) { LOGGER.info("Create from {} {}", communicationType, appType); return INSTANCE.createApp(communicationType, appType); } private  TesseraAppFactory(); static Optional<TesseraApp> create(CommunicationType communicationType, AppType appType);  }