"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "junit-platform-engine/src/main/java/org/junit/platform/engine/support/hierarchical/ThrowableCollector.java" between
junit5-r5.3.2.tar.gz and junit5-r5.4.0.tar.gz

About: JUnit 5 is a unit testing framework for the Java programming language.

ThrowableCollector.java  (junit5-r5.3.2):ThrowableCollector.java  (junit5-r5.4.0)
/* /*
* Copyright 2015-2018 the original author or authors. * Copyright 2015-2019 the original author or authors.
* *
* All rights reserved. This program and the accompanying materials are * All rights reserved. This program and the accompanying materials are
* made available under the terms of the Eclipse Public License v2.0 which * made available under the terms of the Eclipse Public License v2.0 which
* accompanies this distribution and is available at * accompanies this distribution and is available at
* *
* http://www.eclipse.org/legal/epl-v20.html * http://www.eclipse.org/legal/epl-v20.html
*/ */
package org.junit.platform.engine.support.hierarchical; package org.junit.platform.engine.support.hierarchical;
skipping to change at line 37 skipping to change at line 37
* Simple component that can be used to collect one or more instances of * Simple component that can be used to collect one or more instances of
* {@link Throwable}. * {@link Throwable}.
* *
* <p>This class distinguishes between {@code Throwables} that <em>abort</em> * <p>This class distinguishes between {@code Throwables} that <em>abort</em>
* and those that <em>fail</em> test execution. The latter take precedence over * and those that <em>fail</em> test execution. The latter take precedence over
* the former, i.e. if both types of {@code Throwables} were collected, the ones * the former, i.e. if both types of {@code Throwables} were collected, the ones
* that abort execution are reported as * that abort execution are reported as
* {@linkplain Throwable#addSuppressed(Throwable) suppressed} {@code Throwables} * {@linkplain Throwable#addSuppressed(Throwable) suppressed} {@code Throwables}
* of the first {@code Throwable} that failed execution. * of the first {@code Throwable} that failed execution.
* *
* @since 5.3 * @since 1.3
* @see OpenTest4JAwareThrowableCollector
*/ */
@API(status = MAINTAINED, since = "5.3") @API(status = MAINTAINED, since = "1.3")
public class ThrowableCollector { public class ThrowableCollector {
private final Predicate<? super Throwable> abortedExecutionPredicate; private final Predicate<? super Throwable> abortedExecutionPredicate;
private Throwable throwable; private Throwable throwable;
/** /**
* Create a new {@code ThrowableCollector} that uses the supplied * Create a new {@code ThrowableCollector} that uses the supplied
* {@link Predicate} to determine whether a {@link Throwable} * {@link Predicate} to determine whether a {@link Throwable}
* <em>aborted</em> or <em>failed</em> execution. * <em>aborted</em> or <em>failed</em> execution.
 End of changes. 3 change blocks. 
3 lines changed or deleted 4 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)