package streamcruncher.test.nonfunc.mysql; 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.mysql.MySQLTimeWF1ChainedPartitionTest; /* * Author: Ashwin Jayaprakash Date: Oct 29, 2006 Time: 11:54:29 AM */ public class MySQLStartupShutdown1Test extends MySQLTimeWF1ChainedPartitionTest { @Test(dependsOnGroups = { TestGroupNames.SC_INIT_REQUIRED }, groups = { TestGroupNames.SC_TEST_MYSQL }) 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(); } }