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:
parent
88233aff69
commit
49761b2fbf
|
@ -39,11 +39,8 @@ public class CachedRbacManagerTest
|
||||||
@Named( value = "rBACManager#cached" )
|
@Named( value = "rBACManager#cached" )
|
||||||
RBACManager rbacManager;
|
RBACManager rbacManager;
|
||||||
|
|
||||||
@BeforeClass
|
public static int EVENTCOUNT = 1; // set to 2 because most of test start with eventTracker.rbacInit( true ); => incrementing eventrackercount by one
|
||||||
public static void dummyInit()
|
|
||||||
{
|
|
||||||
EVENTCOUNT = 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* event count workflow in cachedRbacMaanger is not working like JDO or Memory provider
|
* event count workflow in cachedRbacMaanger is not working like JDO or Memory provider
|
||||||
|
|
|
@ -60,6 +60,8 @@ public class JdoRbacManagerTest
|
||||||
@Named( value = "rBACManager#jdo" )
|
@Named( value = "rBACManager#jdo" )
|
||||||
RBACManager rbacManager;
|
RBACManager rbacManager;
|
||||||
|
|
||||||
|
public static int EVENTCOUNT = 2;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void assertEventCount()
|
public void assertEventCount()
|
||||||
{
|
{
|
||||||
|
|
|
@ -42,6 +42,8 @@ public class MemoryRbacManagerTest
|
||||||
@Named (value = "rBACManager#memory")
|
@Named (value = "rBACManager#memory")
|
||||||
RBACManager rbacManager;
|
RBACManager rbacManager;
|
||||||
|
|
||||||
|
public static int EVENTCOUNT = 2;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void assertEventCount()
|
public void assertEventCount()
|
||||||
{
|
{
|
||||||
|
|
|
@ -55,7 +55,6 @@ public abstract class AbstractRbacManagerTestCase
|
||||||
|
|
||||||
private RBACDefaults rbacDefaults;
|
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 )
|
public void setRbacManager( RBACManager store )
|
||||||
{
|
{
|
||||||
this.rbacManager = store;
|
this.rbacManager = store;
|
||||||
|
|
Loading…
Reference in New Issue