org.apache.archiva.redback.tests
Class AbstractRbacManagerPerformanceTestCase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by 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
AbstractRbacManagerPerformanceTestCase()
           
 
Method Summary
 void assertPerformance(String msg, long startTime, long endTime, int iterations, double threshold)
           
 void setRbacManager(org.apache.archiva.redback.rbac.RBACManager store)
           
 void setUp()
           
 void tearDown()
           
 void testPerformanceOperations()
           
 void testPerformancePermissions()
           
 void testPerformanceResource()
           
 void testPerformanceRoles()
           
 void testPerformanceUserAssignment()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString
 
Methods inherited from class junit.framework.Assert
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, fail, fail, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractRbacManagerPerformanceTestCase

public AbstractRbacManagerPerformanceTestCase()
Method Detail

setRbacManager

public void setRbacManager(org.apache.archiva.redback.rbac.RBACManager store)

setUp

public void setUp()
           throws Exception
Overrides:
setUp in class junit.framework.TestCase
Throws:
Exception

tearDown

public void tearDown()
              throws Exception
Overrides:
tearDown in class junit.framework.TestCase
Throws:
Exception

assertPerformance

public void assertPerformance(String msg,
                              long startTime,
                              long endTime,
                              int iterations,
                              double threshold)

testPerformanceResource

public void testPerformanceResource()
                             throws org.apache.archiva.redback.rbac.RbacManagerException
Throws:
org.apache.archiva.redback.rbac.RbacManagerException

testPerformanceUserAssignment

public void testPerformanceUserAssignment()
                                   throws org.apache.archiva.redback.rbac.RbacManagerException
Throws:
org.apache.archiva.redback.rbac.RbacManagerException

testPerformanceRoles

public void testPerformanceRoles()
                          throws org.apache.archiva.redback.rbac.RbacManagerException
Throws:
org.apache.archiva.redback.rbac.RbacManagerException

testPerformancePermissions

public void testPerformancePermissions()
                                throws org.apache.archiva.redback.rbac.RbacManagerException
Throws:
org.apache.archiva.redback.rbac.RbacManagerException

testPerformanceOperations

public void testPerformanceOperations()
                               throws org.apache.archiva.redback.rbac.RbacManagerException
Throws:
org.apache.archiva.redback.rbac.RbacManagerException


Copyright © 2006-2012 The Apache Software Foundation. All Rights Reserved.