/** * {@inheritDoc} */ @Override @MethodLog public void unregister(long platformIdent) throws BusinessException { nextGenInstrumentationManager.unregister(platformIdent); }
@Test public void unregister() throws Exception { long platformId = 10L; manager.unregister(platformId); verify(registrationService).unregisterPlatformIdent(platformId); } }
@Test public void successful() throws Exception { agentService.unregister(10L); verify(instrumentationManager).unregister(10L); verifyNoMoreInteractions(instrumentationManager); verifyZeroInteractions(messageProvider); } }