You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by ti...@apache.org on 2019/03/10 09:56:21 UTC

[maven-surefire] branch SUREFIRE-1647 created (now 02eb519)

This is an automated email from the ASF dual-hosted git repository.

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


      at 02eb519  [SUREFIRE-1647] Delay load testClass, but to use myown classLoader

This branch includes the following new commits:

     new 02eb519  [SUREFIRE-1647] Delay load testClass, but to use myown classLoader

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[maven-surefire] 01/01: [SUREFIRE-1647] Delay load testClass, but to use myown classLoader

Posted by ti...@apache.org.
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 <sh...@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 );