fix some unit tests initializationError

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1132596 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2011-06-06 11:06:00 +00:00
parent 8ad78e8f02
commit 532dd24896
3 changed files with 19 additions and 2 deletions

View File

@ -95,7 +95,7 @@ public class DavResourceTest
}
@After
protected void tearDown()
public void tearDown()
throws Exception
{
super.tearDown();

View File

@ -32,6 +32,7 @@ import org.apache.maven.archiva.model.ArchivaRepositoryMetadata;
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 RepositoryServletRepositoryGroupTest
/*
* Test Case 3.c
*/
@Test
public void testGetFromFirstManagedRepositoryReturnOk()
throws Exception
{
@ -159,6 +161,7 @@ public class RepositoryServletRepositoryGroupTest
/*
* Test Case 3.c
*/
@Test
public void testGetFromLastManagedRepositoryReturnOk()
throws Exception
{
@ -179,6 +182,7 @@ public class RepositoryServletRepositoryGroupTest
/*
* Test Case 3.b
*/
@Test
public void testGetFromValidRepositoryGroupReturnNotFound()
throws Exception
{
@ -194,6 +198,7 @@ public class RepositoryServletRepositoryGroupTest
/*
* Test Case 3.a
*/
@Test
public void testGetInvalidManagedRepositoryInGroupReturnNotFound()
throws Exception
{
@ -209,6 +214,7 @@ public class RepositoryServletRepositoryGroupTest
/*
* Test Case 4
*/
@Test
public void testPutValidRepositoryGroupReturnBadRequest()
throws Exception
{
@ -223,6 +229,7 @@ public class RepositoryServletRepositoryGroupTest
}
// MRM-872
@Test
public void testGetMergedMetadata()
throws Exception
{
@ -292,6 +299,7 @@ public class RepositoryServletRepositoryGroupTest
}
// MRM-901
@Test
public void testBrowseWithTwoArtifactsWithSameGroupIdInRepos()
throws Exception
{

View File

@ -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 RepositoryServletSecurityTest
@Override
@After
protected void tearDown()
public void tearDown()
throws Exception
{
if ( sc != null )
@ -191,6 +192,7 @@ public class RepositoryServletSecurityTest
// 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 RepositoryServletSecurityTest
}
// test deploy with invalid user, but guest has write access to repo
@Test
public void testPutWithInvalidUserAndGuestHasWriteAccess()
throws Exception
{
@ -282,6 +285,7 @@ public class RepositoryServletSecurityTest
}
// test deploy with a valid user with no write access
@Test
public void testPutWithValidUserWithNoWriteAccess()
throws Exception
{
@ -329,6 +333,7 @@ public class RepositoryServletSecurityTest
}
// test deploy with a valid user with write access
@Test
public void testPutWithValidUserWithWriteAccess()
throws Exception
{
@ -385,6 +390,7 @@ public class RepositoryServletSecurityTest
}
// test get with invalid user, and guest has read access to repo
@Test
public void testGetWithInvalidUserAndGuestHasReadAccess()
throws Exception
{
@ -440,6 +446,7 @@ public class RepositoryServletSecurityTest
}
// 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 RepositoryServletSecurityTest
}
// test get with valid user with read access to repo
@Test
public void testGetWithAValidUserWithReadAccess()
throws Exception
{
@ -527,6 +535,7 @@ public class RepositoryServletSecurityTest
}
// test get with valid user with no read access to repo
@Test
public void testGetWithAValidUserWithNoReadAccess()
throws Exception
{