org.ops4j.pax.exam.junit
Class AnnotatedWithConfiguration

java.lang.Object
  extended by org.ops4j.pax.exam.junit.AnnotatedWithConfiguration
All Implemented Interfaces:
JUnit4ConfigMethods

public class AnnotatedWithConfiguration
extends java.lang.Object
implements JUnit4ConfigMethods

Configuration strategy that will consider as configuration any static/non static methods that are marked with Configuration annotation, has no parameters and has an Option array as return value.

Since:
0.3.0, February 03, 2009
Author:
Alin Dreghiciu (adreghiciu@gmail.com)

Constructor Summary
AnnotatedWithConfiguration()
           
 
Method Summary
 java.util.Collection<? extends JUnit4ConfigMethod> getConfigMethods(org.junit.internal.runners.TestClass testClass, java.lang.Object testInstance)
          Returns configuration methods determined by this strategy.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnnotatedWithConfiguration

public AnnotatedWithConfiguration()
Method Detail

getConfigMethods

public java.util.Collection<? extends JUnit4ConfigMethod> getConfigMethods(org.junit.internal.runners.TestClass testClass,
                                                                           java.lang.Object testInstance)
Returns configuration methods determined by this strategy.

Specified by:
getConfigMethods in interface JUnit4ConfigMethods
Parameters:
testClass - the test class
testInstance - an instance of the test class
Returns:
configuration options (cannot be null, but can be empty)


Copyright © 2006-2012 OPS4J - Open Participation Software for Java. All Rights Reserved.