Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/reduce-mockito-usage-pass1' into…
Browse files Browse the repository at this point in the history
… reduce-mockito-usage-pass1

# Conflicts:
#	cucumber-core/pom.xml
#	cucumber-core/src/test/java/io/cucumber/core/runner/HookTestStepTest.java
#	cucumber-core/src/test/java/io/cucumber/core/runner/PickleStepTestStepTest.java
#	cucumber-core/src/test/java/io/cucumber/core/runner/TestCaseTest.java
#	cucumber-java/pom.xml
#	cucumber-java8/pom.xml
#	cucumber-junit-platform-engine/README.md
#	datatable/pom.xml
  • Loading branch information
U117293 authored and U117293 committed Oct 13, 2024
2 parents 5af37c7 + f75916b commit cb73b60
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package io.cucumber.core.backend;

import io.cucumber.core.backend.Pending;

import java.io.PrintStream;
import java.io.PrintWriter;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,15 @@

/**
* Testing classloader for ServiceLoader. This classloader overrides the
* META-INF/services/interface-class-name file with a custom definition.
* META-INF/services/<interface> file with a custom definition.
*/
public class ServiceLoaderTestClassLoader extends URLClassLoader {
Class<?> metaInfInterface;
Class<?>[] implementingClasses;

/**
* Constructs a classloader which has no META-INF/services/metaInfInterface.
* Constructs a classloader which has no
* META-INF/services/&lt;metaInfInterface&gt;.
*
* @param metaInfInterface ServiceLoader interface
*/
Expand All @@ -30,10 +31,11 @@ public ServiceLoaderTestClassLoader(Class<?> metaInfInterface) {
}

/**
* Constructs a fake META-INF/services/metaInfInterface file which contains
* the provided array of classes. When the implementingClasses array is
* null, the META-INF file will not be constructed. The classes from
* implementingClasses are not required to implement the metaInfInterface.
* Constructs a fake META-INF/services/&lt;metaInfInterface&gt; file which
* contains the provided array of classes. When the implementingClasses
* array is null, the META-INF file will not be constructed. The classes
* from implementingClasses are not required to implement the
* metaInfInterface.
*
* @param metaInfInterface ServiceLoader interface
* @param implementingClasses potential subclasses of the ServiceLoader
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
class Issue1970Test {

@Test
public void issue1970() {
void issue1970() {
ObjectFactory factory = new SpringFactory();
factory.addClass(GlueClass.class); // Add glue with Spring configuration
factory.start();
Expand Down

0 comments on commit cb73b60

Please sign in to comment.