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

📄 harness.java

📁 这是一款基于PlaceLab软件开发的导航系统中间件的客户端程序.
💻 JAVA
字号:
package org.placelab.test;import org.placelab.collections.Iterator;import org.placelab.collections.LinkedList;/** * 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 LinkedList allTestables = new LinkedList();		public static void runTheTests(TestResult result) {		Iterator iter=allTestables.iterator();		while (iter.hasNext()) {			Testable testObj = (Testable) iter.next();			try {				testObj.runTests(result);			} catch (Throwable t) {				result.errorCaught(testObj,t);			}		}		result.summary();	}		public static void clearTests() {		allTestables.clear();	}		public abstract void setupAllTests(String[] argv);		public static void addTest(Testable testable) {		allTestables.add(testable);	}}

⌨️ 快捷键说明

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