This is an automated email from the ASF dual-hosted git repository.

khmarbaise pushed a commit to branch IMPROVE_TESTS
in repository https://gitbox.apache.org/repos/asf/maven-enforcer.git


The following commit(s) were added to refs/heads/IMPROVE_TESTS by this push:
     new 33485ab  Improved test case.
33485ab is described below

commit 33485ab3041c1740446da2bfc61511faa742e107
Author: Karl Heinz Marbaise <khmarba...@apache.org>
AuthorDate: Sat Nov 10 20:13:01 2018 +0100

    Improved test case.
---
 .../maven/plugins/enforcer/TestRequireEnvironmentVariable.java | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git 
a/enforcer-rules/src/test/java/org/apache/maven/plugins/enforcer/TestRequireEnvironmentVariable.java
 
b/enforcer-rules/src/test/java/org/apache/maven/plugins/enforcer/TestRequireEnvironmentVariable.java
index 71a069f..e2283ed 100755
--- 
a/enforcer-rules/src/test/java/org/apache/maven/plugins/enforcer/TestRequireEnvironmentVariable.java
+++ 
b/enforcer-rules/src/test/java/org/apache/maven/plugins/enforcer/TestRequireEnvironmentVariable.java
@@ -1,5 +1,7 @@
 package org.apache.maven.plugins.enforcer;
 
+import static org.junit.Assert.fail;
+
 /*
  * Licensed to the Apache Software Foundation (ASF) under one
  * or more contributor license agreements.  See the NOTICE file
@@ -21,8 +23,7 @@ package org.apache.maven.plugins.enforcer;
 
 import org.apache.maven.enforcer.rule.api.EnforcerRuleException;
 import org.apache.maven.enforcer.rule.api.EnforcerRuleHelper;
-
-import junit.framework.TestCase;
+import org.junit.Test;
 
 /**
  * Unit test for {@link RequireEnvironmentVariable}}
@@ -30,7 +31,6 @@ import junit.framework.TestCase;
  * @author <a href='mailto:marvin[at]marvinformatics[dot]com'>Marvin 
Froeder</a>
  */
 public class TestRequireEnvironmentVariable
-    extends TestCase
 {
 
     /**
@@ -38,6 +38,7 @@ public class TestRequireEnvironmentVariable
      *
      * @throws EnforcerRuleException the enforcer rule exception
      */
+               @Test
     public void testRule()
         throws EnforcerRuleException
     {
@@ -76,6 +77,7 @@ public class TestRequireEnvironmentVariable
      *
      * @throws EnforcerRuleException the enforcer rule exception
      */
+               @Test
     public void testRuleWithRegexNot()
         throws EnforcerRuleException
     {
@@ -104,6 +106,7 @@ public class TestRequireEnvironmentVariable
      *
      * @throws EnforcerRuleException the enforcer rule exception
      */
+               @Test
     public void testRuleWithRegex()
         throws EnforcerRuleException
     {
@@ -129,6 +132,7 @@ public class TestRequireEnvironmentVariable
      *
      * @throws EnforcerRuleException the enforcer rule exception
      */
+               @Test
     public void testRuleWithRegexDifferent()
         throws EnforcerRuleException
     {

Reply via email to