开发者

Spring 3 replacement for isDisabledInThisEnvironment

开发者 https://www.devze.com 2022-12-23 22:37 出处:网络
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 AbstractJUnit38Spring

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?


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

0

精彩评论

暂无评论...
验证码 换一张
取 消