@AfterClass public static void classTearDown() throws SQLException { TestUtil.setCurrentTestClass(null); TestUtil.currentTest = null; // cleanup all tables if (GemFireStore.getBootedInstance() != null) { Properties props = new Properties(); if (TestUtil.bootUserName != null) { props.setProperty("user", TestUtil.bootUserName); props.setProperty("password", TestUtil.bootUserPassword); } Connection conn = DriverManager.getConnection(TestUtil.getProtocol(), props); CleanDatabaseTestSetup.cleanDatabase(conn, false); } }
@After public void tearDown() { TestUtil.setCurrentTestClass(null); TestUtil.currentTest = null; }
@Before public void setUp() { TestUtil.setCurrentTestClass(getClass()); TestUtil.currentTest = name.getMethodName(); }