org.specrunner.junit
Class ScenarioFrameworkMethod

java.lang.Object
  extended by org.junit.runners.model.FrameworkMember<org.junit.runners.model.FrameworkMethod>
      extended by org.junit.runners.model.FrameworkMethod
          extended by org.specrunner.junit.ScenarioFrameworkMethod
All Implemented Interfaces:
org.junit.runners.model.Annotatable

public class ScenarioFrameworkMethod
extends org.junit.runners.model.FrameworkMethod

Extension to hold scenario names.

Author:
Thiago Santos

Field Summary
protected  String name
          A scenario name.
 
Constructor Summary
ScenarioFrameworkMethod(Method method, String name)
          A scenario name.
 
Method Summary
 String getName()
           
 void setName(String name)
          Set the scenario name.
 
Methods inherited from class org.junit.runners.model.FrameworkMethod
equals, getAnnotation, getAnnotations, getDeclaringClass, getMethod, getModifiers, getReturnType, getType, hashCode, invokeExplosively, isShadowedBy, producesType, toString, validateNoTypeParametersOnArgs, validatePublicVoid, validatePublicVoidNoArg
 
Methods inherited from class org.junit.runners.model.FrameworkMember
isPublic, isStatic
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

name

protected String name
A scenario name.

Constructor Detail

ScenarioFrameworkMethod

public ScenarioFrameworkMethod(Method method,
                               String name)
A scenario name.

Parameters:
method - A method.
name - A scenario name.
Method Detail

getName

public String getName()
Overrides:
getName in class org.junit.runners.model.FrameworkMethod

setName

public void setName(String name)
Set the scenario name.

Parameters:
name - The scenario name.


Copyright © 2015. All rights reserved.