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



##########
File path: 
surefire-providers/surefire-junit-platform/src/test/java/org/apache/maven/surefire/junitplatform/JUnitPlatformProviderTest.java
##########
@@ -788,7 +792,10 @@ public void bothJunitIncludeAndExcludeEngineAreAllowed()
         JUnitPlatformProvider provider = new JUnitPlatformProvider( 
providerParameters );
 
         assertThat( provider.getFilters() ).hasSize( 2 );
-        assertThat( provider.getFilters() ).allMatch( x -> x instanceof 
EngineFilter );
+        assertThat( Arrays.stream( provider.getFilters() ).collect( 
Collectors.toList()) )

Review comment:
       assertThat( provider.getFilters() ).asList() throw exception as 
getFilters() return array but expected was list :/




-- 
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