|
|
|
@ -1,5 +1,5 @@
|
|
|
|
|
/*
|
|
|
|
|
* Copyright 2012-2022 the original author or authors.
|
|
|
|
|
* Copyright 2012-2023 the original author or authors.
|
|
|
|
|
*
|
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
@ -16,10 +16,12 @@
|
|
|
|
|
|
|
|
|
|
package org.springframework.boot.build.testing;
|
|
|
|
|
|
|
|
|
|
import java.util.Comparator;
|
|
|
|
|
import java.util.List;
|
|
|
|
|
import java.util.Map;
|
|
|
|
|
import java.util.TreeMap;
|
|
|
|
|
|
|
|
|
|
import org.gradle.api.DefaultTask;
|
|
|
|
|
import org.gradle.api.services.BuildService;
|
|
|
|
|
import org.gradle.api.services.BuildServiceParameters;
|
|
|
|
|
import org.gradle.api.tasks.testing.Test;
|
|
|
|
@ -35,8 +37,7 @@ import org.gradle.tooling.events.OperationCompletionListener;
|
|
|
|
|
public abstract class TestResultsOverview
|
|
|
|
|
implements BuildService<BuildServiceParameters.None>, OperationCompletionListener, AutoCloseable {
|
|
|
|
|
|
|
|
|
|
private final Map<Test, List<TestFailure>> testFailures = new TreeMap<>(
|
|
|
|
|
(one, two) -> one.getPath().compareTo(two.getPath()));
|
|
|
|
|
private final Map<Test, List<TestFailure>> testFailures = new TreeMap<>(Comparator.comparing(DefaultTask::getPath));
|
|
|
|
|
|
|
|
|
|
private final Object monitor = new Object();
|
|
|
|
|
|
|
|
|
|