Search in sources :

Example 1 with AtomicLongIncrementalTime2013NonceFactory

use of org.knowm.xchange.utils.nonce.AtomicLongIncrementalTime2013NonceFactory in project XChange by knowm.

the class BleutradeExchangeIntegration method shouldCreateNonceFactory.

@Test
public void shouldCreateNonceFactory() {
    // when
    SynchronizedValueFactory factory = exchange.getNonceFactory();
    // then
    assertThat(factory).isNotNull();
    assertThat(factory instanceof AtomicLongIncrementalTime2013NonceFactory).isTrue();
}
Also used : AtomicLongIncrementalTime2013NonceFactory(org.knowm.xchange.utils.nonce.AtomicLongIncrementalTime2013NonceFactory) SynchronizedValueFactory(si.mazi.rescu.SynchronizedValueFactory) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)1 AtomicLongIncrementalTime2013NonceFactory (org.knowm.xchange.utils.nonce.AtomicLongIncrementalTime2013NonceFactory)1 SynchronizedValueFactory (si.mazi.rescu.SynchronizedValueFactory)1