Skip to content

Commit 49891e0

Browse files
committed
Move to JUnit5
1 parent 0de2501 commit 49891e0

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

pom.xml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,9 @@ limitations under the License.
6262
<version>2.3</version>
6363
</dependency>
6464
<dependency>
65-
<groupId>junit</groupId>
66-
<artifactId>junit</artifactId>
65+
<groupId>org.junit.jupiter</groupId>
66+
<artifactId>junit-jupiter</artifactId>
67+
<version>5.9.3</version>
6768
<scope>test</scope>
6869
</dependency>
6970
<dependency>

src/test/java/org/codehaus/plexus/velocity/DefaultVelocityComponentTest.java

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,20 +21,25 @@
2121
import org.apache.velocity.Template;
2222
import org.apache.velocity.VelocityContext;
2323
import org.codehaus.plexus.PlexusTestCase;
24+
import org.junit.jupiter.api.Test;
25+
26+
import static org.junit.jupiter.api.Assertions.assertEquals;
27+
import static org.junit.jupiter.api.Assertions.assertNotNull;
2428

2529
public class DefaultVelocityComponentTest
2630
extends PlexusTestCase
2731
{
32+
@Test
2833
public void testBasic()
29-
throws Exception
34+
throws Exception
3035
{
3136
DefaultVelocityComponent velocity;
3237

3338
VelocityContext context;
3439

3540
String value;
3641

37-
velocity = (DefaultVelocityComponent) lookup( VelocityComponent.ROLE );
42+
velocity = lookup( VelocityComponent.ROLE );
3843

3944
// test the properties
4045
value = (String) velocity.getEngine().getProperty( "hello" );

0 commit comments

Comments
 (0)