Package org.junit.support.testng.engine
Class MethodDescriptor
- java.lang.Object
-
- org.junit.platform.engine.support.descriptor.AbstractTestDescriptor
-
- org.junit.support.testng.engine.MethodDescriptor
-
- All Implemented Interfaces:
org.junit.platform.engine.TestDescriptor
class MethodDescriptor extends org.junit.platform.engine.support.descriptor.AbstractTestDescriptor
-
-
Field Summary
Fields Modifier and Type Field Description (package private) MethodSignature
methodSignature
(package private) static java.lang.String
SEGMENT_TYPE
private java.util.Set<org.junit.platform.engine.TestTag>
tags
private org.junit.platform.engine.TestDescriptor.Type
type
-
Constructor Summary
Constructors Modifier Constructor Description protected
MethodDescriptor(org.junit.platform.engine.UniqueId uniqueId, java.lang.String displayName, java.lang.Class<?> sourceClass, MethodSignature methodSignature, java.util.Set<org.junit.platform.engine.TestTag> tags, org.junit.platform.engine.TestDescriptor.Type type)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) org.junit.platform.engine.support.descriptor.MethodSource
getMethodSource()
java.util.Set<org.junit.platform.engine.TestTag>
getTags()
org.junit.platform.engine.TestDescriptor.Type
getType()
boolean
mayRegisterTests()
(package private) static java.lang.String
toMethodId(org.testng.ITestResult result, MethodSignature methodSignature)
private static org.junit.platform.engine.support.descriptor.MethodSource
toMethodSource(java.lang.Class<?> sourceClass, MethodSignature methodSignature)
private static java.lang.Object
unwrap(java.lang.Object instance)
-
Methods inherited from class org.junit.platform.engine.support.descriptor.AbstractTestDescriptor
addChild, equals, findByUniqueId, getChildren, getDisplayName, getParent, getSource, getUniqueId, hashCode, removeChild, removeFromHierarchy, setParent, toString
-
-
-
-
Field Detail
-
SEGMENT_TYPE
static final java.lang.String SEGMENT_TYPE
- See Also:
- Constant Field Values
-
methodSignature
final MethodSignature methodSignature
-
tags
private final java.util.Set<org.junit.platform.engine.TestTag> tags
-
type
private final org.junit.platform.engine.TestDescriptor.Type type
-
-
Constructor Detail
-
MethodDescriptor
protected MethodDescriptor(org.junit.platform.engine.UniqueId uniqueId, java.lang.String displayName, java.lang.Class<?> sourceClass, MethodSignature methodSignature, java.util.Set<org.junit.platform.engine.TestTag> tags, org.junit.platform.engine.TestDescriptor.Type type)
-
-
Method Detail
-
getTags
public java.util.Set<org.junit.platform.engine.TestTag> getTags()
- Specified by:
getTags
in interfaceorg.junit.platform.engine.TestDescriptor
- Overrides:
getTags
in classorg.junit.platform.engine.support.descriptor.AbstractTestDescriptor
-
toMethodSource
private static org.junit.platform.engine.support.descriptor.MethodSource toMethodSource(java.lang.Class<?> sourceClass, MethodSignature methodSignature)
-
toMethodId
static java.lang.String toMethodId(org.testng.ITestResult result, MethodSignature methodSignature)
-
unwrap
private static java.lang.Object unwrap(java.lang.Object instance)
-
getType
public org.junit.platform.engine.TestDescriptor.Type getType()
-
mayRegisterTests
public boolean mayRegisterTests()
-
getMethodSource
org.junit.platform.engine.support.descriptor.MethodSource getMethodSource()
-
-