本文整理汇总了Java中com.hazelcast.test.HazelcastTestSupport类的典型用法代码示例。如果您正苦于以下问题:Java HazelcastTestSupport类的具体用法?Java HazelcastTestSupport怎么用?Java HazelcastTestSupport使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
HazelcastTestSupport类属于com.hazelcast.test包,在下文中一共展示了HazelcastTestSupport类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createSplitBrain
import com.hazelcast.test.HazelcastTestSupport; //导入依赖的package包/类
private void createSplitBrain(JetInstance[] instances, int firstSubClusterSize, int secondSubClusterSize) {
applyOnBrains(instances, firstSubClusterSize, SplitBrainTestSupport::blockCommunicationBetween);
applyOnBrains(instances, firstSubClusterSize, HazelcastTestSupport::closeConnectionBetween);
assertSplitBrainCreated(instances, firstSubClusterSize, secondSubClusterSize);
}
示例2: assertTrueEventually
import com.hazelcast.test.HazelcastTestSupport; //导入依赖的package包/类
public static void assertTrueEventually(UncheckedRunnable runnable) {
HazelcastTestSupport.assertTrueEventually(assertTask(runnable));
}
示例3: assertTrueAllTheTime
import com.hazelcast.test.HazelcastTestSupport; //导入依赖的package包/类
public static void assertTrueAllTheTime(UncheckedRunnable runnable, long durationSeconds) {
HazelcastTestSupport.assertTrueAllTheTime(assertTask(runnable), durationSeconds);
}
示例4: assertTrueFiveSeconds
import com.hazelcast.test.HazelcastTestSupport; //导入依赖的package包/类
public static void assertTrueFiveSeconds(UncheckedRunnable runnable) {
HazelcastTestSupport.assertTrueFiveSeconds(assertTask(runnable));
}