예제 #1
0
 @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);
   }
 }
예제 #2
0
 @After
 public void tearDown() {
   TestUtil.setCurrentTestClass(null);
   TestUtil.currentTest = null;
 }
예제 #3
0
 @Before
 public void setUp() {
   TestUtil.setCurrentTestClass(getClass());
   TestUtil.currentTest = name.getMethodName();
 }