continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From batkin...@apache.org
Subject svn commit: r1659096 - /continuum/trunk/continuum-core/src/test/java/org/apache/maven/continuum/core/action/CreateProjectsFromMetadataTest.java
Date Wed, 11 Feb 2015 21:28:27 GMT
Author: batkinson
Date: Wed Feb 11 21:28:26 2015
New Revision: 1659096

URL: http://svn.apache.org/r1659096
Log:
Converted test dependent on junit 3 TestCase to junit 4.

Modified:
    continuum/trunk/continuum-core/src/test/java/org/apache/maven/continuum/core/action/CreateProjectsFromMetadataTest.java

Modified: continuum/trunk/continuum-core/src/test/java/org/apache/maven/continuum/core/action/CreateProjectsFromMetadataTest.java
URL: http://svn.apache.org/viewvc/continuum/trunk/continuum-core/src/test/java/org/apache/maven/continuum/core/action/CreateProjectsFromMetadataTest.java?rev=1659096&r1=1659095&r2=1659096&view=diff
==============================================================================
--- continuum/trunk/continuum-core/src/test/java/org/apache/maven/continuum/core/action/CreateProjectsFromMetadataTest.java
(original)
+++ continuum/trunk/continuum-core/src/test/java/org/apache/maven/continuum/core/action/CreateProjectsFromMetadataTest.java
Wed Feb 11 21:28:26 2015
@@ -19,7 +19,6 @@ package org.apache.maven.continuum.core.
  * under the License.
  */
 
-import junit.framework.TestCase;
 import org.apache.maven.continuum.execution.ContinuumBuildExecutorConstants;
 import org.apache.maven.continuum.model.project.BuildDefinition;
 import org.apache.maven.continuum.model.project.BuildDefinitionTemplate;
@@ -34,22 +33,25 @@ import org.codehaus.plexus.logging.Logge
 import org.codehaus.plexus.logging.console.ConsoleLogger;
 import org.codehaus.plexus.spring.PlexusInSpringTestCase;
 import org.codehaus.plexus.util.xml.pull.XmlPullParserException;
+import org.junit.Before;
 
 import java.io.IOException;
 import java.net.URL;
 import java.util.HashMap;
 import java.util.Map;
 
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertFalse;
 import static org.mockito.Mockito.*;
 
 public class CreateProjectsFromMetadataTest
-    extends TestCase
 {
     private CreateProjectsFromMetadataAction action;
 
     private ContinuumProjectBuildingResult result;
 
-    protected void setUp()
+    @Before
+    public void setUp()
         throws Exception
     {
         result = new ContinuumProjectBuildingResult();



Mime
View raw message