change scope for constants in unit test

git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1380585 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
skygo 2012-09-04 12:02:40 +00:00
parent 88233aff69
commit 49761b2fbf
4 changed files with 6 additions and 6 deletions

View File

@ -39,11 +39,8 @@ public class CachedRbacManagerTest
@Named( value = "rBACManager#cached" )
RBACManager rbacManager;
@BeforeClass
public static void dummyInit()
{
EVENTCOUNT = 1;
}
public static int EVENTCOUNT = 1; // set to 2 because most of test start with eventTracker.rbacInit( true ); => incrementing eventrackercount by one
/*
* event count workflow in cachedRbacMaanger is not working like JDO or Memory provider

View File

@ -60,6 +60,8 @@ public class JdoRbacManagerTest
@Named( value = "rBACManager#jdo" )
RBACManager rbacManager;
public static int EVENTCOUNT = 2;
@Override
public void assertEventCount()
{

View File

@ -42,6 +42,8 @@ public class MemoryRbacManagerTest
@Named (value = "rBACManager#memory")
RBACManager rbacManager;
public static int EVENTCOUNT = 2;
@Override
public void assertEventCount()
{

View File

@ -55,7 +55,6 @@ public abstract class AbstractRbacManagerTestCase
private RBACDefaults rbacDefaults;
public static int EVENTCOUNT = 2; // set to 2 because most of test start with eventTracker.rbacInit( true ); => incrementing eventrackercount by one
public void setRbacManager( RBACManager store )
{
this.rbacManager = store;