Skip to content

Commit

Permalink
Move to JUnit5
Browse files Browse the repository at this point in the history
  • Loading branch information
slachiewicz committed May 15, 2023
1 parent 0de2501 commit 49891e0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
5 changes: 3 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,9 @@ limitations under the License.
<version>2.3</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
<version>5.9.3</version>
<scope>test</scope>
</dependency>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,25 @@
import org.apache.velocity.Template;
import org.apache.velocity.VelocityContext;
import org.codehaus.plexus.PlexusTestCase;
import org.junit.jupiter.api.Test;

import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotNull;

public class DefaultVelocityComponentTest
extends PlexusTestCase
{
@Test
public void testBasic()
throws Exception
throws Exception
{
DefaultVelocityComponent velocity;

VelocityContext context;

String value;

velocity = (DefaultVelocityComponent) lookup( VelocityComponent.ROLE );
velocity = lookup( VelocityComponent.ROLE );

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

0 comments on commit 49891e0

Please sign in to comment.