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

📄 testresult.java

📁 Python Development Environment (Python IDE plugin for Eclipse). Features editor, code completion, re
💻 JAVA
字号:
/*
 * Created on Nov 10, 2004
 *
 */
package org.python.pydev.pyunit;

/**
 * @author ggheorg
 *
 */
public class TestResult {
	public final static int OK = 0;
	public final static int FAILED = 1;
	public String klass;
	public String method;
	public int status;
	public long startTime;
	public long endTime;
	
	public TestResult(String klass, String method, int status, long startTime) {
		this.klass = klass;
		this.method = method;
		this.status = status;
		this.startTime = startTime;
	}
	
	public void testFailed() {
		status = FAILED;
	}
	
	public boolean isFailure() {
		return status == FAILED;
	}

	public void testFinished() {
		endTime = System.currentTimeMillis();
	}
	
	public long testDuration() {
		return endTime - startTime;
	}
}

⌨️ 快捷键说明

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