File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed
src/test/java/org/codehaus/plexus/velocity Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff 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 >
Original file line number Diff line number Diff line change 2121import org .apache .velocity .Template ;
2222import org .apache .velocity .VelocityContext ;
2323import 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
2529public 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" );
You can’t perform that action at this time.
0 commit comments