⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 harness.java

📁 一个基于PlaceLab的室内和室外的智能导航系统
💻 JAVA
字号:
package org.placelab.test;import java.util.Enumeration;import java.util.Vector;/** * This class hold test and iterates through them executing their tests. See {@link org.placelab.test.Regression} for an example of how to  * run a test. * */public abstract class Harness {	protected static Vector allTestables = new Vector();		public static void runTheTests(TestResult result) {		Enumeration iter=allTestables.elements();		while (iter.hasMoreElements()) {			Testable testObj = (Testable) iter.nextElement();			try {				testObj.runTests(result);			} catch (Throwable t) {				result.errorCaught(testObj,t);			}		}		result.summary();	}		public static void clearTests() {		allTestables.removeAllElements();	}		public abstract void setupAllTests(String[] argv);		public static void addTest(Testable testable) {		allTestables.addElement(testable);	}}

⌨️ 快捷键说明

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