// Path: plugins-compat-tester/src/main/java/org/jenkins/tools/test/util/ExecutedTestNamesDetails.java
// public class ExecutedTestNamesDetails {
//     
//     private static final String FAILED = "FAILED";
//     
//     private static final String EXECUTED = "EXECUTED";
//     
//     private Map<String, Set<String>> tests;
//     
//     public ExecutedTestNamesDetails() {
//         this.tests = new HashMap<>();
//     }
//     
//     public void addFailedTest(String test) {
//         add(FAILED, test);
//     }
//     
//     public void addExecutedTest(String test) {
//         add(EXECUTED, test);
//     }
//     
//     public Set<String> getAll() {
//         Set<String> result = new TreeSet<>();
//         if (this.tests.containsKey(EXECUTED)) {
//             result.addAll(this.tests.get(EXECUTED));
//         }
//         if (this.tests.containsKey(FAILED)) {
//             result.addAll(this.tests.get(FAILED));
//         }
//         return Collections.unmodifiableSet(result);
//     }
//     
//     public Set<String> getFailed() {
//         return get(FAILED);
//     }
//     
//     public Set<String> getExecuted() {
//         return get(EXECUTED);
//     }
//     
//     private Set<String> get(String key) {
//         return this.tests.containsKey(key) ? Collections.unmodifiableSet(new TreeSet<>(this.tests.get(key))) : null;
//     }
//     
//     private void add(String key, String test) {
//         if (this.tests.get(key) == null) {
//             this.tests.put(key, new TreeSet<String>());
//         }
//         this.tests.get(key).add(test);
//     }
// 
//     public boolean hasBeenExecuted() {
//         return getExecuted() != null || getFailed() != null;
//     }
// 
//     public boolean isSuccess() {
//         return getExecuted() != null && getFailed() == null;
//     }
// 
//     public boolean hasFailures() {
//         return getFailed() != null && !getFailed().isEmpty();
//     }
// }


import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.Set;
import java.util.TreeSet;
import org.jenkins.tools.test.util.ExecutedTestNamesDetails;
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import java.io.PrintWriter;
import java.io.StringWriter;
import java.io.Writer;
import java.util.ArrayList;
/*
 * The MIT License
 *
 * Copyright (c) 2004-2010, Sun Microsystems, Inc., Kohsuke Kawaguchi,
 * Erik Ramfelt, Koichi Fujikawa, Red Hat, Inc., Seiji Sogabe,
 * Stephen Connolly, Tom Huybrechts, Yahoo! Inc., Alan Harder, CloudBees, Inc.
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 */
package org.jenkins.tools.test.exception;



/**
 * Exception thrown during a plugin's Maven execution
 *
 * @author Frederic Camblor
 */
public class PomExecutionException extends Exception {
    private final List<Throwable> exceptionsThrown;
    public final List<String> succeededPluginArtifactIds;
    private final List<String> pomWarningMessages;
// Path: plugins-compat-tester/src/main/java/org/jenkins/tools/test/util/ExecutedTestNamesDetails.java
// public class ExecutedTestNamesDetails {
//     
//     private static final String FAILED = "FAILED";
//     
//     private static final String EXECUTED = "EXECUTED";
//     
//     private Map<String, Set<String>> tests;
//     
//     public ExecutedTestNamesDetails() {
//         this.tests = new HashMap<>();
//     }
//     
//     public void addFailedTest(String test) {
//         add(FAILED, test);
//     }
//     
//     public void addExecutedTest(String test) {
//         add(EXECUTED, test);
//     }
//     
//     public Set<String> getAll() {
//         Set<String> result = new TreeSet<>();
//         if (this.tests.containsKey(EXECUTED)) {
//             result.addAll(this.tests.get(EXECUTED));
//         }
//         if (this.tests.containsKey(FAILED)) {
//             result.addAll(this.tests.get(FAILED));
//         }
//         return Collections.unmodifiableSet(result);
//     }
//     
//     public Set<String> getFailed() {
//         return get(FAILED);
//     }
//     
//     public Set<String> getExecuted() {
//         return get(EXECUTED);
//     }
//     
//     private Set<String> get(String key) {
//         return this.tests.containsKey(key) ? Collections.unmodifiableSet(new TreeSet<>(this.tests.get(key))) : null;
//     }
//     
//     private void add(String key, String test) {
//         if (this.tests.get(key) == null) {
//             this.tests.put(key, new TreeSet<String>());
//         }
//         this.tests.get(key).add(test);
//     }
// 
//     public boolean hasBeenExecuted() {
//         return getExecuted() != null || getFailed() != null;
//     }
// 
//     public boolean isSuccess() {
//         return getExecuted() != null && getFailed() == null;
//     }
// 
//     public boolean hasFailures() {
//         return getFailed() != null && !getFailed().isEmpty();
//     }
// }


// Path: plugins-compat-tester/src/main/java/org/jenkins/tools/test/exception/PomExecutionException.java
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.Set;
import java.util.TreeSet;
import org.jenkins.tools.test.util.ExecutedTestNamesDetails;
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import java.io.PrintWriter;
import java.io.StringWriter;
import java.io.Writer;
import java.util.ArrayList;

/*
 * The MIT License
 *
 * Copyright (c) 2004-2010, Sun Microsystems, Inc., Kohsuke Kawaguchi,
 * Erik Ramfelt, Koichi Fujikawa, Red Hat, Inc., Seiji Sogabe,
 * Stephen Connolly, Tom Huybrechts, Yahoo! Inc., Alan Harder, CloudBees, Inc.
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 */
package org.jenkins.tools.test.exception;



/**
 * Exception thrown during a plugin's Maven execution
 *
 * @author Frederic Camblor
 */
public class PomExecutionException extends Exception {
    private final List<Throwable> exceptionsThrown;
    public final List<String> succeededPluginArtifactIds;
    private final List<String> pomWarningMessages;
    private final ExecutedTestNamesDetails testDetails;