use of io.servicecomb.serviceregistry.api.response.MicroserviceInstanceChangedEvent in project java-chassis by ServiceComb.
the class TestCacheRegistryListener method testonMicroserviceInstanceChangedDELETE.
@Test
public void testonMicroserviceInstanceChangedDELETE() {
MicroserviceInstanceChangedEvent changedEvent = new MicroserviceInstanceChangedEvent();
changedEvent.setAction(WatchAction.DELETE);
MicroserviceKey key = Mockito.mock(MicroserviceKey.class);
changedEvent.setKey(key);
MicroserviceInstance mInstance = Mockito.mock(MicroserviceInstance.class);
changedEvent.setInstance(mInstance);
instance.onMicroserviceInstanceChanged(changedEvent);
}
Aggregations