public class AssertFf4j extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
FEATURE
error message.
|
static String |
IS_MANDATORY
error message.
|
| Constructor and Description |
|---|
AssertFf4j(FF4j cff4j)
Initialisation with current ff4j context.
|
| Modifier and Type | Method and Description |
|---|---|
AssertFf4j |
assertThatCurrentUserIsAllowedOnFeature(String featureName)
Check Feature Allowed.
|
AssertFf4j |
assertThatCurrentUserIsNotAllowedOnFeature(String featureName)
Check Feature Allowed.
|
AssertFf4j |
assertThatFeatureDoesNotExist(String featureName)
Check inexistence of the traget feature
|
AssertFf4j |
assertThatFeatureDoesNotHaveFlippingStrategy(String featureName)
Check existence of the traget feature
|
AssertFf4j |
assertThatFeatureDoesNotHaveProperties(String featureName)
Check existence of the traget feature
|
AssertFf4j |
assertThatFeatureExist(String featureName)
Check existence of the traget feature
|
AssertFf4j |
assertThatFeatureFlipped(String featureName)
Check Feature Flipped
|
AssertFf4j |
assertThatFeatureHasFlippingStrategy(String featureName)
Check existence of the traget feature
|
AssertFf4j |
assertThatFeatureHasNotProperty(String featureName,
String propertyName)
Check existence of the traget feature
|
AssertFf4j |
assertThatFeatureHasNotRole(String featureName,
String roleName)
Check that feature exists and does not have expected role.
|
AssertFf4j |
assertThatFeatureHasProperties(String featureName)
Check existence of the traget feature
|
AssertFf4j |
assertThatFeatureHasProperty(String featureName,
String propertyName)
Check existence of the traget feature
|
AssertFf4j |
assertThatFeatureHasRole(String featureName,
String roleName)
Check that feature exists and have expected role.
|
AssertFf4j |
assertThatFeatureIsDisabled(String featureName)
Chack that feature is disabled in current store.
|
AssertFf4j |
assertThatFeatureIsEnabled(String featureName)
Chack that feature is enabled in current store.
|
AssertFf4j |
assertThatFeatureIsInGroup(String featureName,
String groupName)
Check that feature is in expected group.
|
AssertFf4j |
assertThatFeatureNotFlipped(String featureName)
Check Feature Flipped
|
AssertFf4j |
assertThatFeatureNotInGroup(String featureName,
String groupName)
Check that feature is in expected group.
|
AssertFf4j |
assertThatGroupDoesNotExist(String groupName)
Check that group does not exist
|
AssertFf4j |
assertThatGroupExist(String groupName)
Check Group Size
|
AssertFf4j |
assertThatGroupHasSize(int expected,
String groupName)
Check Group Size
|
AssertFf4j |
assertThatPropertyDoesNotExist(String propertyName)
Check existence of the traget property
|
AssertFf4j |
assertThatPropertyExist(String propertyName)
Check existence of the traget property
|
AssertFf4j |
assertThatPropertyStoreHasSize(int expectedNumber)
Check Number of features
|
AssertFf4j |
assertThatStoreHasNumberOfGroups(int expectedNumber)
Check Number of features
|
AssertFf4j |
assertThatStoreHasSize(int expectedNumber)
Check Number of features
|
void |
setPause(int pause) |
void |
waitSomeSeconds() |
public static final String IS_MANDATORY
public static final String FEATURE
public AssertFf4j(FF4j cff4j)
ff4j - current ff4k contextpublic void setPause(int pause)
public final AssertFf4j assertThatFeatureExist(String featureName)
featureName - targte featurenamepublic final AssertFf4j assertThatPropertyExist(String propertyName)
featureName - targte featurenamepublic final AssertFf4j assertThatFeatureDoesNotExist(String featureName)
featureName - targte featurenamepublic final AssertFf4j assertThatPropertyDoesNotExist(String propertyName)
featureName - targte featurenamepublic final AssertFf4j assertThatFeatureFlipped(String featureName)
featureName - target featureNamepublic final AssertFf4j assertThatFeatureNotFlipped(String featureName)
featureName - target featureNamepublic final AssertFf4j assertThatCurrentUserIsAllowedOnFeature(String featureName)
featureName - target featureNamepublic final AssertFf4j assertThatCurrentUserIsNotAllowedOnFeature(String featureName)
featureName - target featureNamepublic final AssertFf4j assertThatStoreHasSize(int expectedNumber)
featureName - target featureNamepublic final AssertFf4j assertThatPropertyStoreHasSize(int expectedNumber)
featureName - target featureNamepublic final AssertFf4j assertThatStoreHasNumberOfGroups(int expectedNumber)
featureName - target featureNamepublic final AssertFf4j assertThatFeatureHasRole(String featureName, String roleName)
featureName - target feature NameroleName - target role namepublic final AssertFf4j assertThatFeatureHasNotRole(String featureName, String roleName)
featureName - target feature NameroleName - target role namepublic final AssertFf4j assertThatFeatureIsInGroup(String featureName, String groupName)
featureName - target feature NameroleName - target role namepublic final AssertFf4j assertThatFeatureNotInGroup(String featureName, String groupName)
featureName - target feature NameroleName - target role namepublic final AssertFf4j assertThatFeatureIsEnabled(String featureName)
featureName - target featureNamepublic final AssertFf4j assertThatFeatureIsDisabled(String featureName)
featureName - target featureNamepublic final AssertFf4j assertThatGroupExist(String groupName)
expected - expected value for sizegroupName - target groupNamepublic AssertFf4j assertThatGroupDoesNotExist(String groupName)
expected - expected value for sizegroupName - target groupNamepublic final AssertFf4j assertThatGroupHasSize(int expected, String groupName)
expected - expected value for sizegroupName - target groupNamepublic final AssertFf4j assertThatFeatureHasFlippingStrategy(String featureName)
featureName - targte featurenamepublic final AssertFf4j assertThatFeatureDoesNotHaveFlippingStrategy(String featureName)
featureName - targte featurenamepublic final AssertFf4j assertThatFeatureHasProperties(String featureName)
featureName - targte featurenamepublic final AssertFf4j assertThatFeatureDoesNotHaveProperties(String featureName)
featureName - targte featurenamepublic final AssertFf4j assertThatFeatureHasProperty(String featureName, String propertyName)
featureName - targte featurenamepublic final AssertFf4j assertThatFeatureHasNotProperty(String featureName, String propertyName)
featureName - targte featurenamepublic void waitSomeSeconds()
Copyright © 2013–2020 FF4J. All rights reserved.