Package org.ff4j.test.propertystore
Class PropertyStoreTestSupport
java.lang.Object
org.ff4j.test.propertystore.PropertyStoreTestSupport
SuperClass to test stores within core project
- Author:
- Cedrick LUNVEN
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringprotected org.ff4j.core.FeatureStoreDefault InMemoryStore for test purposes.static final Stringprotected org.ff4j.FF4jInitializestatic final Stringstatic final Stringprotected org.ff4j.property.store.PropertyStoreTested Store.static final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidTDD.voidTDD.voidTDD.voidTDD.voidTDD.voidclear()TDD.voidTDD.voidTDD.voidTDD.voiddeleteOK()TDD.voidTDD.voidvoidTDD.voidTDD.protected abstract org.ff4j.property.store.PropertyStoreAny store test will declare its store through this callback.voidTDD.voidvoidTDD.voidTDD.voidTDD.voidTDD.voidreadOK()voidvoidsetUp()voidTDD.voidTDD.voidTDD.voidTDD.voidTDD.voidTDD.voidupdateOK()TDD.voidTDD.void
-
Field Details
-
ADD_PROPERTY_O_KSIMPLE
- See Also:
-
READ_OK_FIXED
- See Also:
-
INVALID
- See Also:
-
UPDATE_OK
- See Also:
-
DELETE_OK
- See Also:
-
ff4j
protected org.ff4j.FF4j ff4jInitialize -
testedStore
protected org.ff4j.property.store.PropertyStore testedStoreTested Store. -
defaultStore
protected org.ff4j.core.FeatureStore defaultStoreDefault InMemoryStore for test purposes.
-
-
Constructor Details
-
PropertyStoreTestSupport
public PropertyStoreTestSupport()
-
-
Method Details
-
setUp
- 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.
-