package streamcruncher.test.nonfunc.h2;
import java.util.List;
import org.testng.annotations.Test;
import streamcruncher.api.OutputSession;
import streamcruncher.test.Suite;
import streamcruncher.test.TestGroupNames;
import streamcruncher.test.func.BatchResult;
import streamcruncher.test.func.h2.H2TimeWF1ChainedPartitionTest;
/*
* Author: Ashwin Jayaprakash Date: Oct 29, 2006 Time: 11:54:29 AM
*/
public class H2StartupShutdown1Test extends H2TimeWF1ChainedPartitionTest {
@Test(dependsOnGroups = { TestGroupNames.SC_INIT_REQUIRED }, groups = { TestGroupNames.SC_TEST_H2 })
protected void performTest() throws Exception {
List<BatchResult> results = test();
// -----------
Suite suite = new Suite();
suite.end();
System.err.println("Stopped...");
Thread.sleep(5000);
System.err.println("Restarting...");
suite.start();
// -----------
OutputSession outputSession = cruncher.createOutputSession("test_res_rql");
outputSession.start();
outputSession.close();
// Test again.
results = test();
}
}