diff --git a/plexus-interactivity-api/pom.xml b/plexus-interactivity-api/pom.xml index 3d74ecc..ba05bac 100644 --- a/plexus-interactivity-api/pom.xml +++ b/plexus-interactivity-api/pom.xml @@ -16,6 +16,12 @@ org.codehaus.plexus plexus-utils + + org.junit.jupiter + junit-jupiter + 5.9.3 + test + org.codehaus.plexus plexus-container-default diff --git a/plexus-interactivity-api/src/test/java/org/codehaus/plexus/components/interactivity/DefaultPrompterTest.java b/plexus-interactivity-api/src/test/java/org/codehaus/plexus/components/interactivity/DefaultPrompterTest.java index 4ec95fa..12582f4 100644 --- a/plexus-interactivity-api/src/test/java/org/codehaus/plexus/components/interactivity/DefaultPrompterTest.java +++ b/plexus-interactivity-api/src/test/java/org/codehaus/plexus/components/interactivity/DefaultPrompterTest.java @@ -24,18 +24,18 @@ * SOFTWARE. */ -import org.junit.Test; +import org.junit.jupiter.api.Test; import java.util.List; import static java.util.Arrays.asList; import static java.util.Objects.requireNonNull; -import static org.junit.Assert.assertEquals; +import static org.junit.jupiter.api.Assertions.assertEquals; public class DefaultPrompterTest { @Test - public void promptSimple() throws PrompterException { + void promptSimple() throws PrompterException { final InMemoryOutput out = new InMemoryOutput(); final Prompter prompter = new DefaultPrompter( out, new InMemoryInput( "ok" ) ); prompter.prompt( "test" ); @@ -43,7 +43,7 @@ public void promptSimple() throws PrompterException { } @Test - public void promptOption() throws PrompterException { + void promptOption() throws PrompterException { final InMemoryOutput out = new InMemoryOutput(); final Prompter prompter = new DefaultPrompter( out, new InMemoryInput( "ok" ) ); prompter.prompt( "test", "value" ); @@ -51,7 +51,7 @@ public void promptOption() throws PrompterException { } @Test - public void promptOptions() throws PrompterException { + void promptOptions() throws PrompterException { final InMemoryOutput out = new InMemoryOutput(); final Prompter prompter = new DefaultPrompter( out, new InMemoryInput( "yes" ) ); prompter.prompt( "test", asList( "yes", "no" ), "value" ); diff --git a/pom.xml b/pom.xml index ef0c602..b38806f 100644 --- a/pom.xml +++ b/pom.xml @@ -50,13 +50,4 @@ - - - - junit - junit - 4.13.2 - test - -