Class ITCaseRules
java.lang.Object
org.apache.flink.architecture.rules.ITCaseRules
Rules for Integration Tests.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.tngtech.archunit.lang.ArchRulestatic final com.tngtech.archunit.lang.ArchRuleIn order to pass this check, IT cases must fulfill at least one of the following conditions. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
INTEGRATION_TEST_ENDING_WITH_ITCASE
public static final com.tngtech.archunit.lang.ArchRule INTEGRATION_TEST_ENDING_WITH_ITCASE -
ITCASE_USE_MINICLUSTER
public static final com.tngtech.archunit.lang.ArchRule ITCASE_USE_MINICLUSTERIn order to pass this check, IT cases must fulfill at least one of the following conditions.1. For JUnit 5 test, both fields are required like:
@RegisterExtension public static final MiniClusterExtension MINI_CLUSTER_RESOURCE = new MiniClusterExtension( new MiniClusterResourceConfiguration.Builder() .setConfiguration(getFlinkConfiguration()) .build());2. For JUnit 5 test, use
ExtendWith:@ExtendWith(MiniClusterExtension.class)3. For JUnit 4 test via @Rule like:
@Rule public final MiniClusterWithClientResource miniClusterResource = new MiniClusterWithClientResource( new MiniClusterResourceConfiguration.Builder() .setNumberTaskManagers(1) .setNumberSlotsPerTaskManager(PARALLELISM) .setRpcServiceSharing(RpcServiceSharing.DEDICATED) .withHaLeadershipControl() .build());4. For JUnit 4 test via @ClassRule like:
@ClassRule public static final MiniClusterWithClientResource MINI_CLUSTER = new MiniClusterWithClientResource( new MiniClusterResourceConfiguration.Builder() .setConfiguration(new Configuration()) .build());
-
-
Constructor Details
-
ITCaseRules
public ITCaseRules()
-