Search in sources :

Example 1 with NetworkRepository

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);
}
Also used : NamespaceRepository(io.nem.symbol.sdk.api.NamespaceRepository) MosaicRepository(io.nem.symbol.sdk.api.MosaicRepository) NetworkRepository(io.nem.symbol.sdk.api.NetworkRepository) RepositoryFactory(io.nem.symbol.sdk.api.RepositoryFactory) BeforeEach(org.junit.jupiter.api.BeforeEach)

Aggregations

MosaicRepository (io.nem.symbol.sdk.api.MosaicRepository)1 NamespaceRepository (io.nem.symbol.sdk.api.NamespaceRepository)1 NetworkRepository (io.nem.symbol.sdk.api.NetworkRepository)1 RepositoryFactory (io.nem.symbol.sdk.api.RepositoryFactory)1 BeforeEach (org.junit.jupiter.api.BeforeEach)1