Skip to content

Commit

Permalink
test: add display-name
Browse files Browse the repository at this point in the history
  • Loading branch information
Nylle committed Nov 18, 2023
1 parent 4aede1f commit 17f85cd
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,13 +93,15 @@ void buildReturnsCachedValue() {
}

@Nested
@DisplayName("For interfaces")
class Interfaces {

Context context = new Context(Configuration.configure().experimentalInterfaces(true));

@TestWithCases
@TestCase(bool1 = true, class2 = ObjectSpecimen.class)
@TestCase(bool1 = false, class2 = InterfaceSpecimen.class)
@DisplayName("only scans for implementations if experimentalInterfaces is")
void interfaceImplementationsAreOnlySupportedIfExperimentalInterfacesAreEnabled(boolean experimental, Class<?> expected) {
var context = new Context(Configuration.configure().experimentalInterfaces(experimental));

Expand Down

0 comments on commit 17f85cd

Please sign in to comment.