Remove incomplete test
This commit is contained in:
parent
bd700665e8
commit
9ca1055d54
@ -83,17 +83,4 @@ public class DefaultTbApiUsageStateServiceTest {
|
|||||||
Mockito.verify(service, never()).getOrFetchState(tenantId, tenantId);
|
Mockito.verify(service, never()).getOrFetchState(tenantId, tenantId);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
|
||||||
public void givenTenantIdWithoutTenantStateInMap_whenGetState_thenGetOrFetchState() {
|
|
||||||
TopicPartitionInfo tpi = Mockito.mock(TopicPartitionInfo.class);
|
|
||||||
Mockito.when(tpi.isMyPartition()).thenReturn(true);
|
|
||||||
willReturn(tpi).given(partitionService).resolve(ServiceType.TB_CORE, tenantId, tenantId);
|
|
||||||
service.myUsageStates.clear();
|
|
||||||
willReturn(tenantUsageStateMock).given(service).getOrFetchState(tenantId, tenantId);
|
|
||||||
ApiUsageState tenantUsageState = service.getApiUsageState(tenantId);
|
|
||||||
assertThat(tenantUsageState, is(tenantUsageStateMock.getApiUsageState()));
|
|
||||||
assertThat(true, is(service.getPartitionedEntities(tpi).contains(tenantId)));
|
|
||||||
Mockito.verify(service, times(1)).getOrFetchState(tenantId, tenantId);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user