adam11grafik commented on a change in pull request #344:
URL: https://github.com/apache/maven-surefire/pull/344#discussion_r605520269



##########
File path: 
surefire-providers/surefire-junit-platform/src/test/java/org/apache/maven/surefire/junitplatform/JUnitPlatformProviderTest.java
##########
@@ -766,6 +768,72 @@ public void 
tagExpressionsAreSupportedForIncludeTagsContainingAmpersand()
         assertEquals( 2, provider.getFilters().length );
     }
 
+    @Test
+    public void onlyJunitIncludeEngineIsDeclared()
+    {
+        Map<String, String> properties = singletonMap( 
JUNIT_INCLUDE_ENGINE_PROP, "engine-one, engine-two" );
+
+        ProviderParameters providerParameters = providerParametersMock( 
TestClass1.class );
+        when( providerParameters.getProviderProperties() ).thenReturn( 
properties );
+
+        JUnitPlatformProvider provider = new JUnitPlatformProvider( 
providerParameters );
+
+        assertEquals( 1, provider.getFilters().length );

Review comment:
       Hmm I checked and to verify ids I need to do probably some conversion of 
junit classes etc.
   There is no direct method to get those ids values but only method to apply 
if TestEngine is included or excluded by filters.
   This logic is more inside Junit itself so maybe enough will be to check only 
if expected filter is instance of EngineFilter?




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to