protected void tearDown() { try { if (bean != null) { try { bean.invoke(SimpleMysqldDynamicMBean.STOP_METHOD, null, null); } catch (Exception e) { e.printStackTrace(); } threads.pause(50); } if (agent != null) { agent.shutdown(); } } finally { super.tearDown(); } }
protected void tearDown() { try { if (bean != null) { try { bean.invoke(SimpleMysqldDynamicMBean.STOP_METHOD, null, null); } catch (Exception e) { e.printStackTrace(); } threads.pause(50); } if (agent != null) { agent.shutdown(); } new Files().deleteTree(dataDir); } finally { System.setProperty(Files.USE_TEST_DIR, orig); super.tearDown(); } }