Package org.ff4j.test.store
Class FeatureStoreTestSupport
java.lang.Object
org.ff4j.test.store.FeatureStoreTestSupport
For different store.
- Author:
- Cedrick LUNVEN
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AssertFf4jTest Valuesprotected org.ff4j.core.FeatureStoreDefault InMemoryStore for test purposes.static final Stringprotected org.ff4j.FF4jInitializestatic final Stringstatic final Stringstatic final Stringstatic final Stringprotected org.ff4j.core.FeatureStoreTested Store. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected intprotected abstract org.ff4j.core.FeatureStoreAny store test will declare its store through this callback.voidsetUp()voidTDD.voidTDD.voidTDD.voidTDD.voidTDD.voidTDD.voidTDD.voidTDD.voidvoidTDD.voidTDD.voidTDD.voidTDD.voidTDD.voidTDD.voidTDD.voidTDD.voidTDD.voidTDD.voidTDD.voidTDD.voidTDD.voidTDD.voidvoidvoidvoidTDD.voidTDD.voidTDD.voidTDD.voidTDD.voidTDD.voidTDD.voidTDD.voidvoidTDD.voidTDD.voidTDD.voidvoidTDD.voidTDD.voidTDD.voidTDD.voidTDD.voidTDD.voidTDD.voidTDD.voidTDD.voidTDD.voidTDD.voidTDD.voidTDD.voidTDD.voidTDD.voidTDD.voidTDD.voidTDD.voidTDD.voidTDD.voidTDD.voidTDD.voidTDD.voidTDD.voidTDD.voidTDD.voidTDD.voidTDD.voidTDD.voidTDD.voidTDD.voidTDD.voidTDD.voidTDD.voidTDD.voidTDD.voidTDD.voidTDD.voidTDD.voidTDD.voidTDD.voidTDD.voidTDD.voidTDD.
-
Field Details
-
GOLOGOLO
- See Also:
-
ROLE_XYZ
- See Also:
-
PPSTRING
- See Also:
-
DIGIT_VALUE
- See Also:
-
REGION_IDENTIFIER
- See Also:
-
ff4j
protected org.ff4j.FF4j ff4jInitialize -
testedStore
protected org.ff4j.core.FeatureStore testedStoreTested Store. -
assertFf4j
Test Values -
defaultStore
protected org.ff4j.core.FeatureStore defaultStoreDefault InMemoryStore for test purposes.
-
-
Constructor Details
-
FeatureStoreTestSupport
public FeatureStoreTestSupport()
-
-
Method Details
-
setUp
- Throws:
Exception
-
initStore
protected abstract org.ff4j.core.FeatureStore initStore()Any store test will declare its store through this callback.- Returns:
- working feature store
- Throws:
Exception- error during building feature store
-
enablePause
protected int enablePause() -
testStoreHasBeenInitialized
public void testStoreHasBeenInitialized()TDD. -
testReadAllFeatures
public void testReadAllFeatures()TDD. -
testReadNull
public void testReadNull()TDD. -
testReadEmpty
public void testReadEmpty()TDD. -
testReadNotExist
public void testReadNotExist()TDD. -
testReadFullFeature
public void testReadFullFeature()TDD. -
testEnableNull
public void testEnableNull()TDD. -
testEnableEmpty
public void testEnableEmpty()TDD. -
testEnableFeatureDoesNotExist
public void testEnableFeatureDoesNotExist()TDD. -
testDisableNull
public void testDisableNull()TDD. -
testDisableEmpty
public void testDisableEmpty()TDD. -
testDisableFeatureDoesNotExist
public void testDisableFeatureDoesNotExist()TDD. -
testEnableFeature
public void testEnableFeature()TDD. -
testDisableFeature
public void testDisableFeature()TDD. -
testCreateNull
TDD.- Throws:
Exception
-
testAddFeature
TDD.- Throws:
Exception
-
testAddFeatureAlreadyExis
TDD.- Throws:
Exception
-
testDeleteNull
TDD.- Throws:
Exception
-
testDeleteFeature
TDD.- Throws:
Exception
-
testDeleteFeatureDoesNotExist
TDD.- Throws:
Exception
-
testGrantRoleNullFeature
TDD.- Throws:
Exception
-
testGrantRoleEmptyFeature
TDD.- Throws:
Exception
-
testGrantRoleNullRole
TDD.- Throws:
Exception
-
testGrantRoleEmptyRole
TDD.- Throws:
Exception
-
testGrantRoleToFeatureRoleDoesNotExist
TDD.- Throws:
Exception
-
testGrantRoleToFeatureFeatureDoesNotExist
TDD.- Throws:
Exception
-
testRemoveRoleNullFeature
TDD.- Throws:
Exception
-
testRemoveRoleEmptyFeature
TDD.- Throws:
Exception
-
testRemoveRoleNullRole
TDD.- Throws:
Exception
-
testRemoveRoleEmptyRole
TDD.- Throws:
Exception
-
testDeleteRoleToFeature
TDD.- Throws:
Exception
-
testUpdateNull
TDD.- Throws:
Exception
-
testFeatureDoesNotExit
public void testFeatureDoesNotExit()TDD. -
testDeleteRoleFeatureDoesNotExit
public void testDeleteRoleFeatureDoesNotExit()TDD. -
testUpdateFeatureCoreData
public void testUpdateFeatureCoreData()TDD. -
testUpdateFeatureMoreAutorisation
public void testUpdateFeatureMoreAutorisation()TDD. -
testUpdateFlipLessAutorisation
public void testUpdateFlipLessAutorisation()TDD. -
testUpdateFlipMoreAutorisationNotExist
public void testUpdateFlipMoreAutorisationNotExist()TDD. -
testExistNull
public void testExistNull() -
testExistEmpty
public void testExistEmpty() -
testExistGroupNull
TDD.- Throws:
Exception
-
testExistGroupEmpty
TDD.- Throws:
Exception
-
testExistGroup
public void testExistGroup()TDD. -
testEnableGroupNull
TDD.- Throws:
Exception
-
testEnableGroupEmpty
TDD.- Throws:
Exception
-
testEnableGroup
public void testEnableGroup()TDD. -
testEnableGroupDoesNotExist
public void testEnableGroupDoesNotExist()TDD. -
testDisableGroupNull
TDD.- Throws:
Exception
-
testDisableGroupEmpty
TDD.- Throws:
Exception
-
testDisableGroup
public void testDisableGroup()TDD. -
testDisableGroupDoesNotExist
public void testDisableGroupDoesNotExist()TDD. -
testReadGroupNull
TDD.- Throws:
Exception
-
testReadGroupEmpty
TDD.- Throws:
Exception
-
testReadGroup
public void testReadGroup()TDD. -
testReadGroupDoesnotExist
public void testReadGroupDoesnotExist()TDD. -
testAddToGroupFeatureNull
TDD.- Throws:
Exception
-
testAddToGroupFeatureEmpty
TDD.- Throws:
Exception
-
testAddToGroupNull
TDD.- Throws:
Exception
-
testAddToGroupEmpty
TDD.- Throws:
Exception
-
testAddToGroup
TDD.- Throws:
InterruptedException
-
testAddToGroupFeatureDoesNotExist
public void testAddToGroupFeatureDoesNotExist()TDD. -
testRemoveToGroupFeatureNull
TDD.- Throws:
Exception
-
testRemoveToGroupFeatureEmpty
TDD.- Throws:
Exception
-
testRemoveToGroupNull
TDD.- Throws:
Exception
-
testRemoveToGroupEmpty
TDD.- Throws:
Exception
-
testRemoveFromGroup
public void testRemoveFromGroup()TDD. -
testRemoveLastFeatureOfGroupDeleteGroup
TDD.- Throws:
InterruptedException
-
testRemoveFromGroupFeatureDoeNotExist
public void testRemoveFromGroupFeatureDoeNotExist()TDD. -
testRemoveFromGroupDoesNotExist
public void testRemoveFromGroupDoesNotExist()TDD. -
testRemoveFromGroupIfNotInGroup
public void testRemoveFromGroupIfNotInGroup()TDD. -
testReadAllGroup
public void testReadAllGroup()TDD. -
testUpdateEditFlippingStrategy
public void testUpdateEditFlippingStrategy()TDD. -
testUpdateRemoveFlippingStrategy
public void testUpdateRemoveFlippingStrategy()TDD. -
testUpdateAddFlippingStrategy
public void testUpdateAddFlippingStrategy()TDD. -
testDonotUpdateNullFeature
public void testDonotUpdateNullFeature() -
testDonotDeleteNull
public void testDonotDeleteNull() -
testDonotDeleteEmpty
public void testDonotDeleteEmpty() -
testClear
public void testClear() -
testUpdateAddProperty
public void testUpdateAddProperty()TDD. -
testUpdateRemoveProperty
public void testUpdateRemoveProperty()TDD. -
testUpdateEditPropertyValue
public void testUpdateEditPropertyValue()TDD. -
testUpdateEditPropertyAddFixedValues
public void testUpdateEditPropertyAddFixedValues()TDD. -
testUpdateEditPropertyRemoveFixedValues
public void testUpdateEditPropertyRemoveFixedValues()TDD.
-