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

📄 demotestsutil.java

📁 一个基于PlaceLab的室内和室外的智能导航系统
💻 JAVA
字号:
package org.placelab.demo.mapview;import java.io.File;import org.placelab.core.PlacelabProperties;import org.placelab.test.TestResult;import org.placelab.test.Testable;public class DemoTestsUtil {	public static String getTestDataSubDir(Testable testable,											TestResult result, 											String subDir) {		String testDataDir = PlacelabProperties.get("placelab.testdir");		File test = new File(testDataDir);		if(testDataDir.length() == 0 || !test.exists()) {			result.print("DemoTests: I didn't find my test data from " +					"looking in Placelab.Properties, checking in your working" +					" directory ...");			testDataDir = "testdata";		}		testDataDir = testDataDir + File.separator + subDir + 			File.separator;		test = new File(testDataDir);		if(!test.isDirectory()) {			result.fail(testable, "cannot find my test data directory which I " +					"expected to be at " + testDataDir + ".  " + 					"You can set where I look for it by setting " +					"\"placelab.testdir\" in your placelab.ini file.  The " +					"test files themselves should be in the testdata " +					"directory in cvs.");			return null;		}		return testDataDir;	}}

⌨️ 快捷键说明

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