📄 packagestrutsservicetest.java
字号:
/*
* OPIAM Suite
*
* Distributable under LGPL license.
* See terms of license at gnu.org.
*/
package opiam.admin.faare.unittests.struts.service;
import opiam.admin.faare.unittests.TestResult;
import opiam.admin.faare.unittests.TestUtils;
import opiam.admin.faare.unittests.struts.service.beans.PackageStrutsServiceBeansTest;
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 service package.
*/
public class PackageStrutsServiceTest extends TestCase
{
/** Instance of logger. */
private static Logger _logger = Logger.getLogger(PackageStrutsServiceTest.class);
/** Instance of the trace class. */
private static TestUtils _test = new TestUtils(_logger);
/**
* Creates a new PackageStrutsServiceTest object.
*
* @param param Parameter.
*/
public PackageStrutsServiceTest(String param)
{
super(param);
}
/**
* Method of the tests suite.
*
* @return Tests result.
*/
public static Test suite()
{
TestSuite suite = new TestSuite();
suite.addTest(new PackageStrutsServiceTest("testBegin"));
suite.addTest(StrutsServiceTest.suite());
suite.addTest(PackageStrutsServiceBeansTest.suite());
suite.addTest(new PackageStrutsServiceTest("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("PackageStrutsServiceTest");
assertTrue(true);
}
/**
* Method to indicate the end of the class test.
*
*/
public static void testEnd()
{
assertTrue(true);
_test.displayTestStatement("PackageStrutsServiceTest");
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -