archiva-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1132596 - in /archiva/trunk/archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/maven/archiva/webdav: DavResourceTest.java RepositoryServletRepositoryGroupTest.java RepositoryServletSecurityTest.java
Date Mon, 06 Jun 2011 11:06:01 GMT
Author: olamy
Date: Mon Jun  6 11:06:00 2011
New Revision: 1132596

URL: http://svn.apache.org/viewvc?rev=1132596&view=rev
Log:
fix some unit tests initializationError

Modified:
    archiva/trunk/archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/maven/archiva/webdav/DavResourceTest.java
    archiva/trunk/archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/maven/archiva/webdav/RepositoryServletRepositoryGroupTest.java
    archiva/trunk/archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/maven/archiva/webdav/RepositoryServletSecurityTest.java

Modified: archiva/trunk/archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/maven/archiva/webdav/DavResourceTest.java
URL: http://svn.apache.org/viewvc/archiva/trunk/archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/maven/archiva/webdav/DavResourceTest.java?rev=1132596&r1=1132595&r2=1132596&view=diff
==============================================================================
--- archiva/trunk/archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/maven/archiva/webdav/DavResourceTest.java
(original)
+++ archiva/trunk/archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/maven/archiva/webdav/DavResourceTest.java
Mon Jun  6 11:06:00 2011
@@ -95,7 +95,7 @@ public class DavResourceTest
     }
 
     @After
-    protected void tearDown()
+    public void tearDown()
         throws Exception
     {
         super.tearDown();

Modified: archiva/trunk/archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/maven/archiva/webdav/RepositoryServletRepositoryGroupTest.java
URL: http://svn.apache.org/viewvc/archiva/trunk/archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/maven/archiva/webdav/RepositoryServletRepositoryGroupTest.java?rev=1132596&r1=1132595&r2=1132596&view=diff
==============================================================================
--- archiva/trunk/archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/maven/archiva/webdav/RepositoryServletRepositoryGroupTest.java
(original)
+++ archiva/trunk/archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/maven/archiva/webdav/RepositoryServletRepositoryGroupTest.java
Mon Jun  6 11:06:00 2011
@@ -32,6 +32,7 @@ import org.apache.maven.archiva.model.Ar
 import org.apache.maven.archiva.repository.metadata.RepositoryMetadataReader;
 import org.junit.After;
 import org.junit.Before;
+import org.junit.Test;
 
 import javax.servlet.http.HttpServletResponse;
 import java.io.File;
@@ -139,6 +140,7 @@ public class RepositoryServletRepository
     /*
     * Test Case 3.c
     */
+    @Test
     public void testGetFromFirstManagedRepositoryReturnOk()
         throws Exception
     {
@@ -159,6 +161,7 @@ public class RepositoryServletRepository
     /*
     * Test Case 3.c
     */
+    @Test
     public void testGetFromLastManagedRepositoryReturnOk()
         throws Exception
     {
@@ -179,6 +182,7 @@ public class RepositoryServletRepository
     /*
     * Test Case 3.b
     */
+    @Test
     public void testGetFromValidRepositoryGroupReturnNotFound()
         throws Exception
     {
@@ -194,6 +198,7 @@ public class RepositoryServletRepository
     /*
     * Test Case 3.a
     */
+    @Test
     public void testGetInvalidManagedRepositoryInGroupReturnNotFound()
         throws Exception
     {
@@ -209,6 +214,7 @@ public class RepositoryServletRepository
     /*
     * Test Case 4
     */
+    @Test
     public void testPutValidRepositoryGroupReturnBadRequest()
         throws Exception
     {
@@ -223,6 +229,7 @@ public class RepositoryServletRepository
     }
 
     // MRM-872
+    @Test
     public void testGetMergedMetadata()
         throws Exception
     {
@@ -292,6 +299,7 @@ public class RepositoryServletRepository
     }
 
     // MRM-901
+    @Test
     public void testBrowseWithTwoArtifactsWithSameGroupIdInRepos()
         throws Exception
     {

Modified: archiva/trunk/archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/maven/archiva/webdav/RepositoryServletSecurityTest.java
URL: http://svn.apache.org/viewvc/archiva/trunk/archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/maven/archiva/webdav/RepositoryServletSecurityTest.java?rev=1132596&r1=1132595&r2=1132596&view=diff
==============================================================================
--- archiva/trunk/archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/maven/archiva/webdav/RepositoryServletSecurityTest.java
(original)
+++ archiva/trunk/archiva-modules/archiva-web/archiva-webdav/src/test/java/org/apache/maven/archiva/webdav/RepositoryServletSecurityTest.java
Mon Jun  6 11:06:00 2011
@@ -50,6 +50,7 @@ import org.easymock.MockControl;
 import org.easymock.classextension.MockClassControl;
 import org.junit.After;
 import org.junit.Before;
+import org.junit.Test;
 import org.junit.runner.RunWith;
 import org.springframework.test.context.ContextConfiguration;
 import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
@@ -166,7 +167,7 @@ public class RepositoryServletSecurityTe
 
     @Override
     @After
-    protected void tearDown()
+    public void tearDown()
         throws Exception
     {
         if ( sc != null )
@@ -191,6 +192,7 @@ public class RepositoryServletSecurityTe
 
     // test deploy with invalid user, and guest has no write access to repo
     // 401 must be returned
+    @Test
     public void testPutWithInvalidUserAndGuestHasNoWriteAccess()
         throws Exception
     {
@@ -226,6 +228,7 @@ public class RepositoryServletSecurityTe
     }
 
     // test deploy with invalid user, but guest has write access to repo
+    @Test
     public void testPutWithInvalidUserAndGuestHasWriteAccess()
         throws Exception
     {
@@ -282,6 +285,7 @@ public class RepositoryServletSecurityTe
     }
 
     // test deploy with a valid user with no write access
+    @Test
     public void testPutWithValidUserWithNoWriteAccess()
         throws Exception
     {
@@ -329,6 +333,7 @@ public class RepositoryServletSecurityTe
     }
 
     // test deploy with a valid user with write access
+    @Test
     public void testPutWithValidUserWithWriteAccess()
         throws Exception
     {
@@ -385,6 +390,7 @@ public class RepositoryServletSecurityTe
     }
 
     // test get with invalid user, and guest has read access to repo
+    @Test
     public void testGetWithInvalidUserAndGuestHasReadAccess()
         throws Exception
     {
@@ -440,6 +446,7 @@ public class RepositoryServletSecurityTe
     }
 
     // test get with invalid user, and guest has no read access to repo
+    @Test
     public void testGetWithInvalidUserAndGuestHasNoReadAccess()
         throws Exception
     {
@@ -477,6 +484,7 @@ public class RepositoryServletSecurityTe
     }
 
     // test get with valid user with read access to repo
+    @Test
     public void testGetWithAValidUserWithReadAccess()
         throws Exception
     {
@@ -527,6 +535,7 @@ public class RepositoryServletSecurityTe
     }
 
     // test get with valid user with no read access to repo
+    @Test
     public void testGetWithAValidUserWithNoReadAccess()
         throws Exception
     {



Mime
View raw message