📄 packagestrutsservicebeanstest.java
字号:
/*
* OPIAM Suite
*
* Distributable under LGPL license.
* See terms of license at gnu.org.
*/
package opiam.admin.faare.unittests.struts.service.beans;
import opiam.admin.faare.unittests.TestResult;
import opiam.admin.faare.unittests.TestUtils;
import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;
import org.apache.log4j.Logger;
/**
* Executes all the class tests of the struts beans package.
*/
public class PackageStrutsServiceBeansTest extends TestCase
{
/** Instance of logger. */
private static Logger _logger = Logger.getLogger(PackageStrutsServiceBeansTest.class);
/** Instance of the trace class. */
private static TestUtils _test = new TestUtils(_logger);
/**
* Creates a new PackageStrutsServiceBeansTest object.
*
* @param param Parameter.
*/
public PackageStrutsServiceBeansTest(String param)
{
super(param);
}
/**
* Method of the tests suite.
*
* @return Tests result.
*/
public static Test suite()
{
TestSuite suite = new TestSuite();
suite.addTest(new PackageStrutsServiceBeansTest("testBegin"));
suite.addTest(JBMenuElementTest.suite());
suite.addTest(JBMenuTest.suite());
suite.addTest(JBMenusTest.suite());
suite.addTest(JBOperatorTest.suite());
suite.addTest(JBOperatorsTest.suite());
suite.addTest(JBProfileMenuTest.suite());
suite.addTest(JBRequestTest.suite());
suite.addTest(JBRequestsTest.suite());
suite.addTest(JBRessourceRequestTest.suite());
suite.addTest(new PackageStrutsServiceBeansTest("testEnd"));
return suite;
}
/**
* Main method of the test class.
*
* @param args Sets of the parameters.
*/
public static void main(String[] args)
{
junit.textui.TestRunner.run(suite());
}
/**
* Method to indicate the beginning of the class test.
*
*/
public static void testBegin()
{
// To initialize the tests statement
TestResult.getInstance().setInitiator("PackageStrutsServiceBeansTest");
assertTrue(true);
}
/**
* Method to indicate the end of the class test.
*
*/
public static void testEnd()
{
assertTrue(true);
_test.displayTestStatement("PackageStrutsServiceBeansTest");
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -