tags:

views:

18

answers:

1

I'm currently converting a test class which extended the Spring class AbstractTransactionalSpringContextTests to Spring 3. This abstract class is now deprecated and I should use AbstractJUnit38SpringContextTests.

The test class had this method in it:

@Override
protected boolean isDisabledInThisEnvironment(String testMethodName)
{
    // Test is only needed for bugfixing and development. Do not check in with this flag on false. 
    return true;
}

What is the replacement for this isDisabledInThisEnvironment method?

+1  A: 

This concept is implemented with @IfProfileValue. Works with both JUnit and TestNG.

lexicore