org.jgroups.util.Util.assertFalse()方法的使用及代码示例

x33g5p2x  于2022-02-01 转载在 其他  
字(7.2k)|赞(0)|评价(0)|浏览(251)

本文整理了Java中org.jgroups.util.Util.assertFalse()方法的一些代码示例,展示了Util.assertFalse()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Util.assertFalse()方法的具体详情如下:
包路径:org.jgroups.util.Util
类名称:Util
方法名:assertFalse

Util.assertFalse介绍

暂无

代码示例

代码示例来源:origin: wildfly/wildfly

public static void assertFalse(boolean condition) {
  assertFalse(null,condition);
}

代码示例来源:origin: org.jboss.eap/wildfly-client-all

public static void assertFalse(boolean condition) {
  assertFalse(null,condition);
}

代码示例来源:origin: org.uberfire/uberfire-runtime-plugins-client

/**
   * Screen component remains disabled in the perspective editor
   * => https://issues.jboss.org/browse/AF-904
   */
  @Test
  public void componentDisabledTest() {
    assertFalse(screenLayoutDragComponent instanceof PerspectiveEditorCoreComponent);
  }
}

代码示例来源:origin: kiegroup/appformer

/**
   * Screen component remains disabled in the perspective editor
   * => https://issues.jboss.org/browse/AF-904
   */
  @Test
  public void componentDisabledTest() {
    assertFalse(screenLayoutDragComponent instanceof PerspectiveEditorCoreComponent);
  }
}

代码示例来源:origin: org.guvnor/guvnor-structure-backend

@Test
public void testSimpleDelete() {
  metadataStore.write("a/repo",
            "");
  assertEquals("",
         metadataStore.read("a/repo").get().getOrigin());
  metadataStore.delete("a/repo");
  assertFalse(metadataStore.read("a/repo").isPresent());
}

代码示例来源:origin: org.uberfire/uberfire-structure-backend

@Test
public void testSimpleDelete() {
  metadataStore.write("a/repo",
            "");
  assertEquals("",
         metadataStore.read("a/repo").get().getOrigin());
  metadataStore.delete("a/repo");
  assertFalse(metadataStore.read("a/repo").isPresent());
}

代码示例来源:origin: org.infinispan/infinispan-core

public void testKeySetAfterPutInBranchedTransactionButRemove() throws Exception {
 cache.put(1, "v1");
 tm().begin();
 try {
   assertEquals("v1", cache.remove(1));
   Transaction suspended = tm().suspend();
   assertEquals("v1", cache.put(1, "v2"));
   tm().resume(suspended);
   Set<Object> keySet = cache.keySet();
   assertEquals(0, keySet.size());
   assertFalse(keySet.iterator().hasNext());
   assertFalse(keySet.contains(1));
 } finally {
   safeCommit(true);
 }
}

代码示例来源:origin: org.infinispan/infinispan-core

public void testValuesAfterPutInBranchedTransactionButRemove() throws Exception {
 cache.put(1, "v1");
 tm().begin();
 try {
   assertEquals("v1", cache.remove(1));
   Transaction suspended = tm().suspend();
   assertEquals("v1", cache.put(1, "v2"));
   tm().resume(suspended);
   Collection<Object> values = cache.values();
   assertEquals(0, values.size());
   assertFalse(values.iterator().hasNext());
   assertFalse(values.contains("v2"));
 } finally {
   safeCommit(true);
 }
}

代码示例来源:origin: kiegroup/appformer

@Test
public void testSimpleDelete() {
  metadataStore.write("a/repo",
            "");
  assertEquals("",
         metadataStore.read("a/repo").get().getOrigin());
  metadataStore.delete("a/repo");
  assertFalse(metadataStore.read("a/repo").isPresent());
}

代码示例来源:origin: org.infinispan/infinispan-core

public void testEntrySetAfterPutInBranchedTransactionButRemove() throws Exception {
 cache.put(1, "v1");
 tm().begin();
 try {
   assertEquals("v1", cache.remove(1));
   Transaction suspended = tm().suspend();
   assertEquals("v1", cache.put(1, "v2"));
   tm().resume(suspended);
   Set<Map.Entry<Object, Object>> entrySet = cache.entrySet();
   assertEquals(0, entrySet.size());
   assertFalse(entrySet.iterator().hasNext());
   assertFalse(entrySet.contains(TestingUtil.<Object, Object>createMapEntry(1, "v2")));
 } finally {
   safeCommit(true);
 }
}

代码示例来源:origin: org.infinispan/infinispan-core

assertTrue(iterator.hasNext());
assertEquals("v3",iterator.next());
assertFalse(iterator.hasNext());
assertTrue(iterator.hasNext());
assertEquals("k3",iterator.next());
assertFalse(iterator.hasNext());
assertEquals("k3", next.getKey());
assertEquals("v3", next.getValue());
assertFalse(iterator.hasNext());

代码示例来源:origin: org.guvnor/guvnor-structure-backend

@Test
  public void testComplexDelete() {

    metadataStore.write("b/repo",
              "a/repo");
    metadataStore.write("c/repo",
              "b/repo");
    metadataStore.write("d/repo",
              "c/repo");

    metadataStore.delete("c/repo");

    assertEquals("",
           metadataStore.read("d/repo").get().getOrigin());
    assertEquals("a/repo",
           metadataStore.read("b/repo").get().getOrigin());

    assertEquals("b/repo",
           metadataStore.read("a/repo").get().getForks().get(0));
    assertEquals(0,
           metadataStore.read("b/repo").get().getForks().size());
    assertFalse(metadataStore.read("c/repo").isPresent());
  }
}

代码示例来源:origin: org.uberfire/uberfire-structure-backend

@Test
  public void testComplexDelete() {

    metadataStore.write("b/repo",
              "a/repo");
    metadataStore.write("c/repo",
              "b/repo");
    metadataStore.write("d/repo",
              "c/repo");

    metadataStore.delete("c/repo");

    assertEquals("",
           metadataStore.read("d/repo").get().getOrigin());
    assertEquals("a/repo",
           metadataStore.read("b/repo").get().getOrigin());

    assertEquals("b/repo",
           metadataStore.read("a/repo").get().getForks().get(0));
    assertEquals(0,
           metadataStore.read("b/repo").get().getForks().size());
    assertFalse(metadataStore.read("c/repo").isPresent());
  }
}

代码示例来源:origin: kiegroup/appformer

@Test
  public void testComplexDelete() {

    metadataStore.write("b/repo",
              "a/repo");
    metadataStore.write("c/repo",
              "b/repo");
    metadataStore.write("d/repo",
              "c/repo");

    metadataStore.delete("c/repo");

    assertEquals("",
           metadataStore.read("d/repo").get().getOrigin());
    assertEquals("a/repo",
           metadataStore.read("b/repo").get().getOrigin());

    assertEquals("b/repo",
           metadataStore.read("a/repo").get().getForks().get(0));
    assertEquals(0,
           metadataStore.read("b/repo").get().getForks().size());
    assertFalse(metadataStore.read("c/repo").isPresent());
  }
}

代码示例来源:origin: kiegroup/appformer

@Test
  public void testContains() {
    final Results results = new DefaultResultsImpl();
    results.addMessage(new DefaultResultImpl(ResultType.ERROR,
                         "An error"));
    assertTrue(results.contains(ResultType.ERROR));
    assertFalse(results.contains(ResultType.WARNING));
  }
}

代码示例来源:origin: org.uberfire/uberfire-wires-bpmn-client

@Test
  public void testContains() {
    final Results results = new DefaultResultsImpl();
    results.addMessage(new DefaultResultImpl(ResultType.ERROR,
                         "An error"));
    assertTrue(results.contains(ResultType.ERROR));
    assertFalse(results.contains(ResultType.WARNING));
  }
}

代码示例来源:origin: org.infinispan/infinispan-core

LocalTransaction localTx = localTxs.iterator().next();
if (write) {
  assertFalse(localTx.isReadOnly());
} else {
  assertTrue(localTx.isReadOnly());

代码示例来源:origin: org.infinispan/infinispan-server-hotrod

public void testPutOnDefaultCache(Method m) {
   TestResponse resp = client().execute(0xA0, (byte) 0x01, "", k(m), 0, 0, v(m), 0, (byte) 1, 0);
   assertStatus(resp, Success);
   assertHotRodEquals(cacheManager, ANOTHER_CACHE, k(m), v(m));
   assertFalse(cacheManager.getCache().containsKey(k(m)));
  }
}

相关文章

Util类方法