You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "Patrick Rhomberg (JIRA)" <ji...@apache.org> on 2017/12/19 19:22:00 UTC

[jira] [Created] (GEODE-4122) Parameterized tests are skipped when not run with correct runner factory

Patrick Rhomberg created GEODE-4122:
---------------------------------------

             Summary: Parameterized tests are skipped when not run with correct runner factory
                 Key: GEODE-4122
                 URL: https://issues.apache.org/jira/browse/GEODE-4122
             Project: Geode
          Issue Type: Bug
            Reporter: Patrick Rhomberg


Initial bug in GEODE-1350, tests annotated with {{@RunWith(Parameterized.class)}} are not correctly detected during testing.  This is corrected when the test class also contains the annotation {{@Parameterized.UseParametersRunnerFactory(CategoryWithParameterizedRunnerFactory.class)}}.

The following is an possibly-incomplete list of tests containing the offending {{@RunWith}} annotation but not the correcting {{@Parameterized.UseParametersRunnerFactory}} annotation, matching on the regex {{@RunWith\(Parameterized\.class\)\n(?!@Parameterized)}}

{noformat}
BaseStringConverterJUnitTest.java
CacheServerSSLConnectionDUnitTest.java
ChangeLogLevelCommandDUnitTest.java
ClusterConfigurationDUnitTest.java
GatewayReceiverFactoryImplJUnitTest.java
GcCommandDUnitTest.java
IndexSecurityDUnitTest.java
PartitionedIndexSecurityDUnitTest.java
PdxPartitionedQuerySecurityAllowedQueriesDUnitTest.java
PdxQuerySecurityAllowedQueriesDUnitTest.java
PdxQuerySecurityRestrictedQueriesDUnitTest.java
PRCacheListenerInvocationTest.java
PRCacheListenerWithInterestPolicyAllInvocationTest.java
PulseConnectivityTest.java
QueryCommandTest.java
ShowLogCommandDUnitTest.java
ShutdownCommandDUnitTest.java
{noformat}

Closure of this ticket should also include a UnitTest or extension to the {{test.gradle}} that ensures no future test includes the one annotation without the other.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)