Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#40: Container events for un-nested Runners
------------------------------------------------------------------------ On behalf of the community, the JUnit Lambda Team thanks msg systems ag (http://www.msg-systems.com) for supporting the JUnit crowdfunding campaign! ------------------------------------------------------------------------
- Loading branch information
1 parent
4983a62
commit 19153fa
Showing
4 changed files
with
86 additions
and
13 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
32 changes: 32 additions & 0 deletions
32
...s/src/test/java/org/junit/gen5/engine/junit4/samples/PlainJUnit4TestCaseWithTwoTests.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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,32 @@ | |||
/* | |||
* Copyright 2015-2016 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.junit4.samples; | |||
|
|||
import static org.junit.Assert.*; | |||
import static org.junit.runners.MethodSorters.NAME_ASCENDING; | |||
|
|||
import org.junit.FixMethodOrder; | |||
import org.junit.Test; | |||
|
|||
@FixMethodOrder(NAME_ASCENDING) | |||
public class PlainJUnit4TestCaseWithTwoTests { | |||
|
|||
@Test | |||
public void failingTest() { | |||
fail("this test should fail"); | |||
} | |||
|
|||
@Test | |||
public void successfulTest() { | |||
assertEquals(3, 1 + 2); | |||
} | |||
|
|||
} |
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