Class FeatureStoreTestSupport

java.lang.Object
org.ff4j.test.store.FeatureStoreTestSupport

public abstract class FeatureStoreTestSupport extends Object
For different store.
Author:
Cedrick LUNVEN
  • Field Details

  • Constructor Details

    • FeatureStoreTestSupport

      public FeatureStoreTestSupport()
  • Method Details

    • setUp

      public void setUp() throws Exception
      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

      public void testCreateNull() throws Exception
      TDD.
      Throws:
      Exception
    • testAddFeature

      public void testAddFeature() throws Exception
      TDD.
      Throws:
      Exception
    • testAddFeatureAlreadyExis

      public void testAddFeatureAlreadyExis() throws Exception
      TDD.
      Throws:
      Exception
    • testDeleteNull

      public void testDeleteNull() throws Exception
      TDD.
      Throws:
      Exception
    • testDeleteFeature

      public void testDeleteFeature() throws Exception
      TDD.
      Throws:
      Exception
    • testDeleteFeatureDoesNotExist

      public void testDeleteFeatureDoesNotExist() throws Exception
      TDD.
      Throws:
      Exception
    • testGrantRoleNullFeature

      public void testGrantRoleNullFeature() throws Exception
      TDD.
      Throws:
      Exception
    • testGrantRoleEmptyFeature

      public void testGrantRoleEmptyFeature() throws Exception
      TDD.
      Throws:
      Exception
    • testGrantRoleNullRole

      public void testGrantRoleNullRole() throws Exception
      TDD.
      Throws:
      Exception
    • testGrantRoleEmptyRole

      public void testGrantRoleEmptyRole() throws Exception
      TDD.
      Throws:
      Exception
    • testGrantRoleToFeatureRoleDoesNotExist

      public void testGrantRoleToFeatureRoleDoesNotExist() throws Exception
      TDD.
      Throws:
      Exception
    • testGrantRoleToFeatureFeatureDoesNotExist

      public void testGrantRoleToFeatureFeatureDoesNotExist() throws Exception
      TDD.
      Throws:
      Exception
    • testRemoveRoleNullFeature

      public void testRemoveRoleNullFeature() throws Exception
      TDD.
      Throws:
      Exception
    • testRemoveRoleEmptyFeature

      public void testRemoveRoleEmptyFeature() throws Exception
      TDD.
      Throws:
      Exception
    • testRemoveRoleNullRole

      public void testRemoveRoleNullRole() throws Exception
      TDD.
      Throws:
      Exception
    • testRemoveRoleEmptyRole

      public void testRemoveRoleEmptyRole() throws Exception
      TDD.
      Throws:
      Exception
    • testDeleteRoleToFeature

      public void testDeleteRoleToFeature() throws Exception
      TDD.
      Throws:
      Exception
    • testUpdateNull

      public void testUpdateNull() throws Exception
      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

      public void testExistGroupNull() throws Exception
      TDD.
      Throws:
      Exception
    • testExistGroupEmpty

      public void testExistGroupEmpty() throws Exception
      TDD.
      Throws:
      Exception
    • testExistGroup

      public void testExistGroup()
      TDD.
    • testEnableGroupNull

      public void testEnableGroupNull() throws Exception
      TDD.
      Throws:
      Exception
    • testEnableGroupEmpty

      public void testEnableGroupEmpty() throws Exception
      TDD.
      Throws:
      Exception
    • testEnableGroup

      public void testEnableGroup()
      TDD.
    • testEnableGroupDoesNotExist

      public void testEnableGroupDoesNotExist()
      TDD.
    • testDisableGroupNull

      public void testDisableGroupNull() throws Exception
      TDD.
      Throws:
      Exception
    • testDisableGroupEmpty

      public void testDisableGroupEmpty() throws Exception
      TDD.
      Throws:
      Exception
    • testDisableGroup

      public void testDisableGroup()
      TDD.
    • testDisableGroupDoesNotExist

      public void testDisableGroupDoesNotExist()
      TDD.
    • testReadGroupNull

      public void testReadGroupNull() throws Exception
      TDD.
      Throws:
      Exception
    • testReadGroupEmpty

      public void testReadGroupEmpty() throws Exception
      TDD.
      Throws:
      Exception
    • testReadGroup

      public void testReadGroup()
      TDD.
    • testReadGroupDoesnotExist

      public void testReadGroupDoesnotExist()
      TDD.
    • testAddToGroupFeatureNull

      public void testAddToGroupFeatureNull() throws Exception
      TDD.
      Throws:
      Exception
    • testAddToGroupFeatureEmpty

      public void testAddToGroupFeatureEmpty() throws Exception
      TDD.
      Throws:
      Exception
    • testAddToGroupNull

      public void testAddToGroupNull() throws Exception
      TDD.
      Throws:
      Exception
    • testAddToGroupEmpty

      public void testAddToGroupEmpty() throws Exception
      TDD.
      Throws:
      Exception
    • testAddToGroup

      public void testAddToGroup() throws InterruptedException
      TDD.
      Throws:
      InterruptedException
    • testAddToGroupFeatureDoesNotExist

      public void testAddToGroupFeatureDoesNotExist()
      TDD.
    • testRemoveToGroupFeatureNull

      public void testRemoveToGroupFeatureNull() throws Exception
      TDD.
      Throws:
      Exception
    • testRemoveToGroupFeatureEmpty

      public void testRemoveToGroupFeatureEmpty() throws Exception
      TDD.
      Throws:
      Exception
    • testRemoveToGroupNull

      public void testRemoveToGroupNull() throws Exception
      TDD.
      Throws:
      Exception
    • testRemoveToGroupEmpty

      public void testRemoveToGroupEmpty() throws Exception
      TDD.
      Throws:
      Exception
    • testRemoveFromGroup

      public void testRemoveFromGroup()
      TDD.
    • testRemoveLastFeatureOfGroupDeleteGroup

      public void testRemoveLastFeatureOfGroupDeleteGroup() throws InterruptedException
      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.