Show MysqlTest.java syntax highlighted
package org.smartfrog.services.database.test.system.core.mysql;
import org.smartfrog.test.DeployingTestBase;
import org.smartfrog.services.assertions.TestBlock;
/** Mysql tests */
public class MysqlTest extends DeployingTestBase {
private static final String BASE = "/org/smartfrog/services/database/test/system/core/mysql/";
public MysqlTest(String name) {
super(name);
}
public void testCheckNoMysql() throws Throwable {
deployAndTerminate("CheckNoMysqlTest");
}
public void testConnectionOpenTest() throws Throwable {
deployAndTerminate("ConnectionOpenTest");
}
public void testIsMysqlLive() throws Throwable {
deployAndTerminate("IsMysqlLiveTest");
}
public void testMysqlStart() throws Throwable {
deployAndTerminate("MysqlStartTest");
}
public void testShutdown() throws Throwable {
deployAndTerminate("ShutdownTest");
}
public void testTableManipulation() throws Throwable {
deployAndTerminate("TableManipulationTest");
}
public void testIssueWarnings() throws Throwable {
deployAndTerminate("IssueWarningsTest");
}
/**
* Test that this raises an exception that we can marshall
*
* @throws Throwable
*/
public void testMissingDatabase() throws Throwable {
TestBlock block = deploy("MissingDatabaseTest");
expectAbnormalTermination(block);
}
/*
*@skip: only works if you deploy mysql in grant-tables mode
*/
public void NotestUserManipulation() throws Throwable {
deployAndTerminate("UserManipulationTest");
}
private void deployAndTerminate(String template) throws Throwable {
TestBlock block = deploy(template);
expectSuccessfulTermination(block);
}
private TestBlock deploy(String template) throws Throwable {
application = deployExpectingSuccess(
BASE + template + ".sf",
template);
TestBlock block = (TestBlock) application;
return block;
}
}
See more files for this project here
SmartFrog (Smart Framework for Object Groups) is a framework for configuring and automatically activating distributed applications. \r\nThe SmartFrog framework is released under LGPL license.\r\nMore info at: www.smartfrog.org
Project homepage:
http://sourceforge.net/projects/smartfrog
Programming language(s): Java,XML
License: other
CheckNoMysqlTest.sf
ConnectionOpenTest.sf
IsMysqlLiveTest.sf
IssueWarningsTest.sf
MissingDatabaseTest.sf
MysqlStartTest.sf
MysqlTest.java
ShutdownTest.sf
TableManipulationTest.sf
UserManipulationTest.sf
components.sf
junit-tests.sf
mysql-sfunit.sf