站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc (Current Development Version)

JUnitPlugin.CreateTestParam (JUnit Tests) - NetBeans API Javadoc (Current Development Version)

org.netbeans.modules.junit/2 2.23

org.netbeans.modules.junit.plugin
Enum JUnitPlugin.CreateTestParam

java.lang.Object
  extended by java.lang.Enum<JUnitPlugin.CreateTestParam>
      extended by org.netbeans.modules.junit.plugin.JUnitPlugin.CreateTestParam
All Implemented Interfaces:
Serializable, Comparable<JUnitPlugin.CreateTestParam>
Enclosing class:
JUnitPlugin

public static enum JUnitPlugin.CreateTestParam
extends Enum<JUnitPlugin.CreateTestParam>

Enumeration of test creation parameters.


Enum Constant Summary
CLASS_NAME
          key for the map of test creation parameters - name of the test class
INC_ABSTRACT_CLASS
          key for the map of test creation parameters - generate test classes for abstract classes?
INC_CLASS_SETUP
          key for the map of test creation parameters - generate test class initializer method (@BeforeClass)?
INC_CLASS_TEAR_DOWN
          key for the map of test creation parameters - generate test class finalizer method (@AfterClass)?
INC_CODE_HINT
          key for the map of test creation parameters - generate source code hints?
INC_EXCEPTION_CLASS
          key for the map of test creation parameters - generate test classes for exception classes?
INC_GENERATE_SUITE
          key for the map of test creation parameters - generate test suites for packages?
INC_JAVADOC
          key for the map of test creation parameters - generate Javadoc comments for test methods?
INC_METHOD_BODIES
          key for the map of test creation parameters - generate default test method bodies?
INC_PKG_PRIVATE
          key for the map of test creation parameters - include tests for package-private methods?
INC_PKG_PRIVATE_CLASS
          key for the map of test creation parameters - generate test classes for package-private classes?
INC_PROTECTED
          key for the map of test creation parameters - include tests for protected methods?
INC_PUBLIC
          key for the map of test creation parameters - include tests for public methods?
INC_SETUP
          key for the map of test creation parameters - generate test initializer method (setup()/@Before)?
INC_TEAR_DOWN
          key for the map of test creation parameters - generate test finalizer method (tearDown()/@After)?
 
Method Summary
 int getIdNumber()
          Return a unique number of this enum element.
static JUnitPlugin.CreateTestParam valueOf(String name)
          Returns the enum constant of this type with the specified name.
static JUnitPlugin.CreateTestParam[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

CLASS_NAME

public static final JUnitPlugin.CreateTestParam CLASS_NAME
key for the map of test creation parameters - name of the test class


INC_PUBLIC

public static final JUnitPlugin.CreateTestParam INC_PUBLIC
key for the map of test creation parameters - include tests for public methods?


INC_PROTECTED

public static final JUnitPlugin.CreateTestParam INC_PROTECTED
key for the map of test creation parameters - include tests for protected methods?


INC_PKG_PRIVATE

public static final JUnitPlugin.CreateTestParam INC_PKG_PRIVATE
key for the map of test creation parameters - include tests for package-private methods?


INC_SETUP

public static final JUnitPlugin.CreateTestParam INC_SETUP
key for the map of test creation parameters - generate test initializer method (setup()/@Before)?


INC_TEAR_DOWN

public static final JUnitPlugin.CreateTestParam INC_TEAR_DOWN
key for the map of test creation parameters - generate test finalizer method (tearDown()/@After)?


INC_CLASS_SETUP

public static final JUnitPlugin.CreateTestParam INC_CLASS_SETUP
key for the map of test creation parameters - generate test class initializer method (@BeforeClass)?


INC_CLASS_TEAR_DOWN

public static final JUnitPlugin.CreateTestParam INC_CLASS_TEAR_DOWN
key for the map of test creation parameters - generate test class finalizer method (@AfterClass)?


INC_METHOD_BODIES

public static final JUnitPlugin.CreateTestParam INC_METHOD_BODIES
key for the map of test creation parameters - generate default test method bodies?


INC_JAVADOC

public static final JUnitPlugin.CreateTestParam INC_JAVADOC
key for the map of test creation parameters - generate Javadoc comments for test methods?


INC_CODE_HINT

public static final JUnitPlugin.CreateTestParam INC_CODE_HINT
key for the map of test creation parameters - generate source code hints?


INC_PKG_PRIVATE_CLASS

public static final JUnitPlugin.CreateTestParam INC_PKG_PRIVATE_CLASS
key for the map of test creation parameters - generate test classes for package-private classes?


INC_ABSTRACT_CLASS

public static final JUnitPlugin.CreateTestParam INC_ABSTRACT_CLASS
key for the map of test creation parameters - generate test classes for abstract classes?


INC_EXCEPTION_CLASS

public static final JUnitPlugin.CreateTestParam INC_EXCEPTION_CLASS
key for the map of test creation parameters - generate test classes for exception classes?


INC_GENERATE_SUITE

public static final JUnitPlugin.CreateTestParam INC_GENERATE_SUITE
key for the map of test creation parameters - generate test suites for packages?

Method Detail

values

public static final JUnitPlugin.CreateTestParam[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(JUnitPlugin.CreateTestParam c : JUnitPlugin.CreateTestParam.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static JUnitPlugin.CreateTestParam valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name

getIdNumber

public int getIdNumber()
Return a unique number of this enum element.

Returns:
unique number of this enum element

org.netbeans.modules.junit/2 2.23

Built on May 28 2007.  |  Portions Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.