testinfo.java.svn-base
来自「cqME :java framework for TCK test.」· SVN-BASE 代码 · 共 112 行
SVN-BASE
112 行
/* * $Id$ * * Copyright 1996-2007 Sun Microsystems, Inc. All Rights Reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License version * 2 only, as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License version 2 for more details (a copy is * included at /legal/license.txt). * * You should have received a copy of the GNU General Public License * version 2 along with this work; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA * 02110-1301 USA * * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa * Clara, CA 95054 or visit www.sun.com if you need additional * information or have any questions. * */package com.sun.tck.j2me.execution.queue;import com.sun.javatest.TestDescription;import com.sun.javatest.TestEnvironment;import java.io.PrintWriter;import com.sun.javatest.Status;public interface TestInfo { public static final Status NOT_COMPLETED = new Status(Status.NOT_RUN, "Not completed yet."); public enum State { NOT_STARTED, EXECUTING, IDLE, COMPLETED }; /** * Returns TestUrl of the tests associated with the request. */ public String getTestURL(); /** * This method should be invoked, when the execution of the test is completed * in the command. */ public void paused(); /** * This method should be invoked if the execution of the request is started * in the command. */ public void resumed(); /** * This method is invoked, when the execution of the test is completed. */ public void completed(); /** * Returns the current state if the test execution. */ public State getState(); /** * Sets the status of the execution of the command. */ public void setStatus(String commandName, Status status); /** * Sets the final status of the execution of the test. */ public void setFinalStatus(Status status); /** * Returns the final status of the test. If the final status was not set, * then NOT_COMPLETED should be returned. */ public Status getFinalStatus(); /** * returns output log for reporting of the results to the specified section or * null if this operation is not supported. */ public PrintWriter getLog(String commandName, String logName); /** * Returns TestDescription, associated with the given test. * The method can return null if the test description is not accessible, * for example of the test invoked from a command. */ public TestDescription getTestDescription(); /** * Returns TestEnvironment, associated with the given test. * The method can return null if the test environment is not accessible, * for example of the test invoked from a command. */ public TestEnvironment getTestEnvironment(); /** * reports property to the result file. */ public void reportProperty(String name, String value);}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?