maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tibordig...@apache.org
Subject [maven-surefire] 01/01: [SUREFIRE-1647] Delay load testClass, but to use myown classLoader
Date Sun, 10 Mar 2019 09:56:22 GMT
This is an automated email from the ASF dual-hosted git repository.

tibordigana pushed a commit to branch SUREFIRE-1647
in repository https://gitbox.apache.org/repos/asf/maven-surefire.git

commit 02eb5193f4f52dc959c4912ddba80ba5e6135a8e
Author: cvictory <shenglicao2@gmail.com>
AuthorDate: Tue Mar 5 12:37:37 2019 +0800

    [SUREFIRE-1647] Delay load testClass, but to use myown classLoader
---
 .../org/apache/maven/surefire/junitplatform/JUnitPlatformProvider.java  | 2 +-
 .../org/apache/maven/surefire/junitplatform/TestPlanScannerFilter.java  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/surefire-providers/surefire-junit-platform/src/main/java/org/apache/maven/surefire/junitplatform/JUnitPlatformProvider.java
b/surefire-providers/surefire-junit-platform/src/main/java/org/apache/maven/surefire/junitplatform/JUnitPlatformProvider.java
index fef72e6..1138e4a 100644
--- a/surefire-providers/surefire-junit-platform/src/main/java/org/apache/maven/surefire/junitplatform/JUnitPlatformProvider.java
+++ b/surefire-providers/surefire-junit-platform/src/main/java/org/apache/maven/surefire/junitplatform/JUnitPlatformProvider.java
@@ -156,7 +156,7 @@ public class JUnitPlatformProvider
                         request().filters( filters ).configurationParameters( configurationParameters
);
         for ( Class<?> testClass : testsToRun )
         {
-            builder.selectors( selectClass( testClass ) );
+            builder.selectors( selectClass( testClass.getName() ) );
         }
         return builder.build();
     }
diff --git a/surefire-providers/surefire-junit-platform/src/main/java/org/apache/maven/surefire/junitplatform/TestPlanScannerFilter.java
b/surefire-providers/surefire-junit-platform/src/main/java/org/apache/maven/surefire/junitplatform/TestPlanScannerFilter.java
index c054c85..891676b 100644
--- a/surefire-providers/surefire-junit-platform/src/main/java/org/apache/maven/surefire/junitplatform/TestPlanScannerFilter.java
+++ b/surefire-providers/surefire-junit-platform/src/main/java/org/apache/maven/surefire/junitplatform/TestPlanScannerFilter.java
@@ -50,7 +50,7 @@ final class TestPlanScannerFilter
     public boolean accept( Class testClass )
     {
         LauncherDiscoveryRequest discoveryRequest = request()
-                        .selectors( selectClass( testClass ) )
+                        .selectors( selectClass( testClass.getName() ) )
                         .filters( includeAndExcludeFilters ).build();
 
         TestPlan testPlan = launcher.discover( discoveryRequest );


Mime
View raw message