Skip to content

Commit 5dfa486

Browse files
committed
Upgrade to JUnit 5
1 parent 2283926 commit 5dfa486

File tree

3 files changed

+11
-14
lines changed

3 files changed

+11
-14
lines changed

plexus-interactivity-api/pom.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@
1616
<groupId>org.codehaus.plexus</groupId>
1717
<artifactId>plexus-utils</artifactId>
1818
</dependency>
19+
<dependency>
20+
<groupId>org.junit.jupiter</groupId>
21+
<artifactId>junit-jupiter</artifactId>
22+
<version>5.9.3</version>
23+
<scope>test</scope>
24+
</dependency>
1925
<dependency>
2026
<groupId>org.codehaus.plexus</groupId>
2127
<artifactId>plexus-container-default</artifactId>

plexus-interactivity-api/src/test/java/org/codehaus/plexus/components/interactivity/DefaultPrompterTest.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,34 +24,34 @@
2424
* SOFTWARE.
2525
*/
2626

27-
import org.junit.Test;
27+
import org.junit.jupiter.api.Test;
2828

2929
import java.util.List;
3030

3131
import static java.util.Arrays.asList;
3232
import static java.util.Objects.requireNonNull;
33-
import static org.junit.Assert.assertEquals;
33+
import static org.junit.jupiter.api.Assertions.assertEquals;
3434

3535
public class DefaultPrompterTest
3636
{
3737
@Test
38-
public void promptSimple() throws PrompterException {
38+
void promptSimple() throws PrompterException {
3939
final InMemoryOutput out = new InMemoryOutput();
4040
final Prompter prompter = new DefaultPrompter( out, new InMemoryInput( "ok" ) );
4141
prompter.prompt( "test" );
4242
assertEquals( "test: ", out.builder.toString() );
4343
}
4444

4545
@Test
46-
public void promptOption() throws PrompterException {
46+
void promptOption() throws PrompterException {
4747
final InMemoryOutput out = new InMemoryOutput();
4848
final Prompter prompter = new DefaultPrompter( out, new InMemoryInput( "ok" ) );
4949
prompter.prompt( "test", "value" );
5050
assertEquals("test value: ", out.builder.toString());
5151
}
5252

5353
@Test
54-
public void promptOptions() throws PrompterException {
54+
void promptOptions() throws PrompterException {
5555
final InMemoryOutput out = new InMemoryOutput();
5656
final Prompter prompter = new DefaultPrompter( out, new InMemoryInput( "yes" ) );
5757
prompter.prompt( "test", asList( "yes", "no" ), "value" );

pom.xml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,4 @@
5050
</plugin>
5151
</plugins>
5252
</build>
53-
54-
<dependencies>
55-
<dependency>
56-
<groupId>junit</groupId>
57-
<artifactId>junit</artifactId>
58-
<version>4.13.2</version>
59-
<scope>test</scope>
60-
</dependency>
61-
</dependencies>
6253
</project>

0 commit comments

Comments
 (0)