alltests.java

来自「关于 RFID 读写器的相关内容」· Java 代码 · 共 41 行

JAVA
41
字号
package org.fosstrak.reader.rprm.core;

import junit.framework.Test;
import junit.framework.TestSuite;

/**
 * All tests for package <code>org.fosstrak.reader</code> and its subpackages.
 */
public class AllTests {
	
	/**
	 * Creates the test.
	 * @return The test
	 */
	public static Test suite() {
		
		String className = AllTests.class.getName();
		String packageName = className.substring(0, className.lastIndexOf('.'));
		
		TestSuite suite = new TestSuite("All Tests for package <" + packageName + "> and its subpackages");
		
		suite.addTest(ReaderTestSuite.suite());
		suite.addTest(org.fosstrak.reader.rprm.core.mgmt.AllTests.suite());
		
		//
		// Add more tests here
		//
		
		return suite;
	}
	
	/**
	 * Runs the test suite using the gui runner.
	 * @param args No arguments
	 */
	public static void main(String[] args) {
		junit.swingui.TestRunner.run(AllTests.class);
	}
	
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?