GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Make DiscoveryLazinessTest independent of test order · scijava/scijava@e197fad

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • discovery-test/src/test/java/org/scijava/discovery/test
    • DiscoveryLazinessTest.java
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎discovery-test/src/test/java/org/scijava/discovery/test/DiscoveryLazinessTest.java‎

Copy file name to clipboardExpand all lines: discovery-test/src/test/java/org/scijava/discovery/test/DiscoveryLazinessTest.java
+3Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ public class DiscoveryLazinessTest {
5353
*/
5454
@Test
5555
public void testServiceLoaderDiscoveryIsLazy() {
56+
// Note: Other tests in this JVM may already have constructed one.
57+
ServiceBasedAdder.constructed = false;
58+
5659
final Discoverer d = Discoverer.usingProviders( //
5760
c -> ServiceLoader.load(c).stream());
5861

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.