/** * Called by our {@link DependencyTrackerImpl} when one or more dependencies are no longer satisfied. */ public void componentStopped(BundleContext context) throws Exception { try { if (m_agentControlRegistration != null) { m_agentControlRegistration.unregister(); } } finally { m_agentControlRegistration = null; try { m_agentContext.stop(); } finally { m_agentContext = null; } } }
@AfterClass public void tearDownAgain() throws Exception { m_agentContextImpl.stop(); verifyTestMocks(); }
@AfterMethod public void tearDownOnceAgain() throws Exception { m_dummyInputStream.close(); m_agentContext.stop(); verifyTestMocks(); clearTestMocks(); }
@AfterClass public void tearDownAgain() throws Exception { m_agentContextImpl.stop(); verifyTestMocks(); clearTestMocks(); }
@AfterClass public void tearDown() throws Exception { m_agentContext.stop(); verifyTestMocks(); clearTestMocks(); }
@AfterClass public void tearDownOnceAgain() throws Exception { m_agentContextImpl.stop(); m_webServer.stop(); verifyTestMocks(); }
@AfterClass(alwaysRun = true) public void tearDownOnceAgain() throws Exception { m_agentContext.stop(); verifyTestMocks(); clearTestMocks(); }
@AfterMethod(alwaysRun = true) public void tearDownAgain(Method method) throws Exception { m_agentContextImpl.stop(); verifyTestMocks(); clearTestMocks(); }
@AfterClass public void tearDownOnceAgain() throws Exception { m_webserver.stop(); m_agentContext.stop(); verifyTestMocks(); clearTestMocks(); }
@AfterClass public void tearDownOnceAgain() throws Exception { m_agentContext.stop(); m_webServer.stop(); verifyTestMocks(); clearTestMocks(); }
@AfterClass public void tearDownOnceAgain() throws Exception { m_webServer.stop(); m_agentContextImpl.stop(); verifyTestMocks(); clearTestMocks(); }
@AfterTest public void tearDownAgain() throws Exception { m_webServer.stop(); m_agentContext.stop(); verifyTestMocks(); clearTestMocks(); }