use of io.nem.symbol.sdk.api.NetworkRepository in project nem2-sdk-java by nemtech.
the class CurrencyServiceTest method setup.
@BeforeEach
void setup() {
RepositoryFactory factory = mock(RepositoryFactory.class);
namespaceRepository = mock(NamespaceRepository.class);
when(factory.createNamespaceRepository()).thenReturn(namespaceRepository);
mosaicRepository = mock(MosaicRepository.class);
when(factory.createMosaicRepository()).thenReturn(mosaicRepository);
networkRepository = mock(NetworkRepository.class);
when(factory.createNetworkRepository()).thenReturn(networkRepository);
service = new CurrencyServiceImpl(factory);
}
Aggregations