Package org.apache.archiva.redback.tests
Class AbstractRbacManagerPerformanceTestCase
- java.lang.Object
-
- junit.framework.Assert
-
- junit.framework.TestCase
-
- org.apache.archiva.redback.tests.AbstractRbacManagerPerformanceTestCase
-
- All Implemented Interfaces:
junit.framework.Test
@ContextConfiguration(locations={"classpath*:/META-INF/spring-context.xml","classpath*:/spring-context.xml"}) public class AbstractRbacManagerPerformanceTestCase extends junit.framework.TestCase
-
-
Constructor Summary
Constructors Constructor Description AbstractRbacManagerPerformanceTestCase()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
assertPerformance(String msg, long startTime, long endTime, int iterations, double threshold)
void
setRbacManager(RBACManager store)
void
setUp()
void
tearDown()
void
testPerformanceOperations()
void
testPerformancePermissions()
void
testPerformanceResource()
void
testPerformanceRoles()
void
testPerformanceUserAssignment()
-
Methods inherited from class junit.framework.TestCase
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, toString
-
-
-
-
Constructor Detail
-
AbstractRbacManagerPerformanceTestCase
public AbstractRbacManagerPerformanceTestCase()
-
-
Method Detail
-
setRbacManager
public void setRbacManager(RBACManager store)
-
setUp
public void setUp() throws Exception
- Overrides:
setUp
in classjunit.framework.TestCase
- Throws:
Exception
-
tearDown
public void tearDown() throws Exception
- Overrides:
tearDown
in classjunit.framework.TestCase
- Throws:
Exception
-
assertPerformance
public void assertPerformance(String msg, long startTime, long endTime, int iterations, double threshold)
-
testPerformanceResource
public void testPerformanceResource() throws RbacManagerException
- Throws:
RbacManagerException
-
testPerformanceUserAssignment
public void testPerformanceUserAssignment() throws RbacManagerException
- Throws:
RbacManagerException
-
testPerformanceRoles
public void testPerformanceRoles() throws RbacManagerException
- Throws:
RbacManagerException
-
testPerformancePermissions
public void testPerformancePermissions() throws RbacManagerException
- Throws:
RbacManagerException
-
testPerformanceOperations
public void testPerformanceOperations() throws RbacManagerException
- Throws:
RbacManagerException
-
-