use of com.ctrip.framework.apollo.openapi.entity.ConsumerToken in project apollo by ctripcorp.
the class ConsumerServiceTest method testCreateConsumerToken.
@Test
public void testCreateConsumerToken() throws Exception {
ConsumerToken someConsumerToken = mock(ConsumerToken.class);
ConsumerToken savedConsumerToken = mock(ConsumerToken.class);
when(consumerTokenRepository.save(someConsumerToken)).thenReturn(savedConsumerToken);
assertEquals(savedConsumerToken, consumerService.createConsumerToken(someConsumerToken));
}
Aggregations