Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added ThrowingConsumer for TestExtensionRegistry
------------------------------------------------------------------------ On behalf of the community, the JUnit Lambda Team thanks AdNovum Informatik AG (http://www.adnovum.ch) JUnit crowdfunding campaign! ------------------------------------------------------------------------
- Loading branch information
Showing
5 changed files
with
51 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
junit5-engine/src/main/java/org/junit/gen5/engine/junit5/execution/ThrowingConsumer.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/* | ||
* Copyright 2015 the original author or authors. | ||
* | ||
* All rights reserved. This program and the accompanying materials are | ||
* made available under the terms of the Eclipse Public License v1.0 which | ||
* accompanies this distribution and is available at | ||
* | ||
* http://www.eclipse.org/legal/epl-v10.html | ||
*/ | ||
|
||
package org.junit.gen5.engine.junit5.execution; | ||
|
||
@FunctionalInterface | ||
public interface ThrowingConsumer<T> { | ||
|
||
/** | ||
* Performs this operation on the given argument. | ||
* | ||
* @param t the input argument | ||
*/ | ||
void accept(T t) throws Throwable; | ||
|
||
} |