runnertype.java
来自「MoMEUnit是一个单元测试的J2ME的应用程序xUnit架构实例。这是来自J」· Java 代码 · 共 67 行
JAVA
67 行
package org.momeunit.ant.taskdefs;import org.momeunit.ant.core.EnumType;/** * Type of runner used to run tests. Either <code>"ant"</code> or * <code>"midlet"</code>. * * @author Sergio Morozov * @version 1.1.2 */public class RunnerType extends EnumType{ private static final String[] VALUES = { "ant", "midlet" }; private static final String[] CLASSES = { "momeunit.runner.AntTestRunner", "momeunit.runner.MIDletTestRunner" }; private static final boolean[] SUPPORTS_FORMATTERS = { true, false }; /** * Instantiates RunnerType initialized with given value. * * @param value * RunnerType to be initialized with. * @since 1.1.2 */ public RunnerType(String value) { super(value); } /* * (non-Javadoc) * * @see org.drmoro.ant.EnumType#getValues() */ protected String[] getValues() { return VALUES; } /** * Returns classname of runner designated by this type. * * @return the classname of runner designated by this type. * @since 1.1 */ public String getRunnerClassName() { return CLASSES[getIndex()]; } /** * Whether runner of this type supports test events. * * @return <code>true</code> if runner of this type supports test events, * <code>false</code> otherwise. * @since 1.1 */ public boolean supportsFormatters() { return SUPPORTS_FORMATTERS[getIndex()]; }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?