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