namingtestsuite.java
来自「JAVA开源LDAP浏览器jxplorer的源码!」· Java 代码 · 共 55 行
JAVA
55 行
/**
* This suite runs all the tests for
* the different Naming classes.
* Author: Chris Betts
* Date: 15/05/2002 / 16:35:24
*/
package com.ca.commons.naming;
import junit.framework.*;
public class NamingTestSuite extends TestCase {
public NamingTestSuite(String name)
{
super(name);
}
/**
* Assembles and returns a test suite
* containing all known tests.
*
* New tests should be added here!
*
* @return A non-null test suite.
*/
public static Test suite()
{
TestSuite suite = new TestSuite();
// The tests...
suite.addTest(DNTest.suite());
suite.addTest(RDNTest.suite()); // why not just 'suite.addTest(RDNTest.class);' ??
suite.addTest(DXAttributesTest.suite());
suite.addTest(DXAttributeTest.suite());
suite.addTest(NameUtilityTest.suite());
return suite;
}
/**
* Runs the test suite.
*/
public static void main(String args[])
{
junit.textui.TestRunner.run(suite());
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?