testtype.java

来自「MoMEUnit是一个单元测试的J2ME的应用程序xUnit架构实例。这是来自J」· Java 代码 · 共 54 行

JAVA
54
字号
package org.momeunit.ant.taskdefs;import org.momeunit.ant.core.EnumType;/** * Type of files designated by {@link TestElement} implementation. Either * <code>&quot;src&quot;</code> or <code>&quot;class&quot;</code> *  * @author Sergio Morozov * @version 1.1.2 */public class TestType extends EnumType{  private static final String[] VALUES = { "src", "class" };  private static final boolean[] IS_CLASSES = { false, true };  /**   * Instantiates TestType initialized with given value.   *    * @param value   *          TestType to be initialized with.   * @since 1.1.2   */  public TestType(String value)  {    super(value);  }  /*   * (non-Javadoc)   *    * @see org.drmoro.ant.EnumType#getValues()   */  protected String[] getValues()  {    return VALUES;  }  /**   * Checks whether this type of tests designates class files or java source   * files.   *    * @return <code>true</code> if this type of tests designates class files,   *         <code>false</code> otherwise.   * @since 1.1.2   */  public boolean containsClasses()  {    return IS_CLASSES[getIndex()];  }}

⌨️ 快捷键说明

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