forked from junit-team/junit5
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Align method and field search algorithms with Java semantics
This is a work in progress. Currently based on main (5.11 M1 snapshots) and currently only applied to our method search algorithm. Aside from the renaming of isMethodShadowedByLocalMethods(), this commit should no longer contain changes to ReflectionUtils.findAllMethodsInHierarchy() once 64ed21a has been reverted. See junit-team#3553
- Loading branch information
Showing
7 changed files
with
117 additions
and
22 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
junit-jupiter-engine/src/test/java/demo/AbstractJUnitTest.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,26 @@ | ||
/* | ||
* Copyright 2015-2024 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 v2.0 which | ||
* accompanies this distribution and is available at | ||
* | ||
* https://www.eclipse.org/legal/epl-v20.html | ||
*/ | ||
|
||
package demo; | ||
|
||
import org.junit.jupiter.api.Test; | ||
|
||
abstract class AbstractJUnitTest { | ||
|
||
@Test | ||
void passingTest() { | ||
} | ||
|
||
@Test | ||
void someTestMethod() { | ||
throw new RuntimeException("Boom!"); | ||
} | ||
|
||
} |
22 changes: 22 additions & 0 deletions
22
junit-jupiter-engine/src/test/java/demo/DisabledReproTests.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,22 @@ | ||
/* | ||
* Copyright 2015-2024 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 v2.0 which | ||
* accompanies this distribution and is available at | ||
* | ||
* https://www.eclipse.org/legal/epl-v20.html | ||
*/ | ||
|
||
package demo; | ||
|
||
class DisabledReproTests extends AbstractJUnitTest { | ||
|
||
// @Disabled | ||
// @Test | ||
@Override | ||
void someTestMethod() { | ||
super.someTestMethod(); | ||
} | ||
|
||
} |
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
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