Class PropertyStoreTestSupport

java.lang.Object
org.ff4j.test.propertystore.PropertyStoreTestSupport

public abstract class PropertyStoreTestSupport extends Object
SuperClass to test stores within core project
Author:
Cedrick LUNVEN
  • Field Details

    • ADD_PROPERTY_O_KSIMPLE

      public static final String ADD_PROPERTY_O_KSIMPLE
      See Also:
    • READ_OK_FIXED

      public static final String READ_OK_FIXED
      See Also:
    • INVALID

      public static final String INVALID
      See Also:
    • UPDATE_OK

      public static final String UPDATE_OK
      See Also:
    • DELETE_OK

      public static final String DELETE_OK
      See Also:
    • ff4j

      protected org.ff4j.FF4j ff4j
      Initialize
    • testedStore

      protected org.ff4j.property.store.PropertyStore testedStore
      Tested Store.
    • defaultStore

      protected org.ff4j.core.FeatureStore defaultStore
      Default InMemoryStore for test purposes.
  • Constructor Details

    • PropertyStoreTestSupport

      public PropertyStoreTestSupport()
  • Method Details

    • setUp

      public void setUp() throws Exception
      Throws:
      Exception
    • initPropertyStore

      protected abstract org.ff4j.property.store.PropertyStore initPropertyStore()
      Any store test will declare its store through this callback.
      Returns:
      working feature store
      Throws:
      Exception - error during building feature store
    • multipleSchemaCreationOk

      public void multipleSchemaCreationOk()
    • existKONull

      public void existKONull()
      TDD.
    • existKOEmpty

      public void existKOEmpty()
      TDD.
    • existfalse

      public void existfalse()
      TDD.
    • addPropertyOKsimple

      public void addPropertyOKsimple()
      TDD.
    • addPropertyOKLogLevel

      public void addPropertyOKLogLevel()
      TDD.
    • addPropertyOKDate

      public void addPropertyOKDate()
      TDD.
    • addPropertyKOAlreadyExist

      public void addPropertyKOAlreadyExist()
      TDD.
    • addPropertyKONull

      public void addPropertyKONull()
      TDD.
    • readOK

      public void readOK()
    • readOKFixed

      public void readOKFixed()
    • readKOnull

      public void readKOnull()
      TDD.
    • readKOempty

      public void readKOempty()
      TDD.
    • readKOnotExist

      public void readKOnotExist()
      TDD.
    • updateKOdoesnotExist

      public void updateKOdoesnotExist()
      TDD.
    • updateKOnull

      public void updateKOnull()
      TDD.
    • updateKONullBis

      public void updateKONullBis()
      TDD.
    • updateKOPropertyNotFound

      public void updateKOPropertyNotFound()
      TDD.
    • updateKOempty

      public void updateKOempty()
      TDD.
    • updateKOInvalidValue

      public void updateKOInvalidValue()
      TDD.
    • updateOK

      public void updateOK()
      TDD.
    • updateOKProperties

      public void updateOKProperties()
      TDD.
    • deleteKOnull

      public void deleteKOnull()
      TDD.
    • deleteKOempty

      public void deleteKOempty()
      TDD.
    • deleteKOdoesnotexist

      public void deleteKOdoesnotexist()
      TDD.
    • deleteOK

      public void deleteOK()
      TDD.
    • existfilled

      public void existfilled()
    • valueFixed

      public void valueFixed()
    • listPropertyNames

      public void listPropertyNames()
      TDD.
    • readAllProperties

      public void readAllProperties()
      TDD.
    • clear

      public void clear()
      TDD.