@Test public void getSingletons() { Set<Object> results = thirdParty.getSingletons(); assertThat(results).hasSize(3); }
@Override public Set<Object> getSingletons() { final RawTransactionResource rawTransactionResource = new RawTransactionResource(transactionManager); final PartyInfoResource partyInfoResource = new PartyInfoResource(discovery); final KeyResource keyResource = new KeyResource(); return Stream.of(rawTransactionResource, partyInfoResource, keyResource).collect(Collectors.toSet()); }
ThirdPartyRestApp extends TesseraRestApplication { @Override public Set<Object> getSingletons() { final RawTransactionResource rawTransactionResource = new RawTransactionResource(transactionManager); final PartyInfoResource partyInfoResource = new PartyInfoResource(discovery); final KeyResource keyResource = new KeyResource(); return Stream.of(rawTransactionResource, partyInfoResource, keyResource).collect(Collectors.toSet()); } }
ThirdPartyRestApp extends TesseraRestApplication { @Override public Set<Object> getSingletons() { final RawTransactionResource rawTransactionResource = new RawTransactionResource(transactionManager); final PartyInfoResource partyInfoResource = new PartyInfoResource(discovery); final KeyResource keyResource = new KeyResource(); return Stream.of(rawTransactionResource, partyInfoResource, keyResource).collect(Collectors.toSet()); } ThirdPartyRestApp(); }
ThirdPartyRestApp extends TesseraRestApplication { @Override public Set<Object> getSingletons() { final RawTransactionResource rawTransactionResource = new RawTransactionResource(transactionManager); final PartyInfoResource partyInfoResource = new PartyInfoResource(discovery); final KeyResource keyResource = new KeyResource(); return Stream.of(rawTransactionResource, partyInfoResource, keyResource).collect(Collectors.toSet()); } ThirdPartyRestApp(); @Override Set<Object> getSingletons(); @Override AppType getAppType(); }
ThirdPartyRestApp extends TesseraRestApplication { @Override public Set<Object> getSingletons() { final RawTransactionResource rawTransactionResource = new RawTransactionResource(transactionManager); final PartyInfoResource partyInfoResource = new PartyInfoResource(discovery); final KeyResource keyResource = new KeyResource(); return Stream.of(rawTransactionResource, partyInfoResource, keyResource).collect(Collectors.toSet()); } ThirdPartyRestApp(); @Override Set<Object> getSingletons(); @Override AppType getAppType();  }