snmptestsuite.java

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

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

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

/**
 * Tests for package <code>org.fosstrak.reader.mgmt.agent.snmp</code>.
 */
public class SnmpTestSuite {
	
	/**
	 * Creates the test.
	 * @return The test
	 */
	public static Test suite() {
		
		String className = SnmpTestSuite.class.getName();
		String packageName = className.substring(0, className.lastIndexOf('.'));
		
		TestSuite suite = new TestSuite("Tests for package <" + packageName + ">");
		
		suite.addTestSuite(EpcgScalarTest.class);
		suite.addTestSuite(SnmpAgentTest.class);
		
		//
		// 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(SnmpTestSuite.class);
	}
	
}

⌨️ 快捷键说明

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