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

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

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

Util.assertNotNull介绍

暂无

代码示例

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

public static void assertNotNull(Object val) {
  assertNotNull(null, val);
}

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

public static void assertNotNull(Object val) {
  assertNotNull(null, val);
}

代码示例来源:origin: org.dashbuilder/dashbuilder-dataset-editor

verify(editWorkflow, times(1)).edit(any(SQLDataSetDef.class), dataCaptor.capture());
List<DataColumnDef> columnsCaptured = dataCaptor.getValue();
assertNotNull(columnsCaptured);
assertEquals(2, columnsCaptured.size());
assertEquals("col1", columnsCaptured.get(0).getId());

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

verify(editWorkflow, times(1)).edit(any(SQLDataSetDef.class), dataCaptor.capture());
List<DataColumnDef> columnsCaptured = dataCaptor.getValue();
assertNotNull(columnsCaptured);
assertEquals(2, columnsCaptured.size());
assertEquals("col1", columnsCaptured.get(0).getId());

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

private void checkVersion(Cache<Object, Object> c, MagicKey hello) {
   Address address = c.getCacheManager().getAddress();
   ConsistentHash readConsistentHash = c.getAdvancedCache().getDistributionManager().getReadConsistentHash();
   if (readConsistentHash.isKeyLocalToNode(address, hello)) {
     InternalCacheEntry ice = c.getAdvancedCache().getDataContainer().get(hello);
     assertNotNull("Entry not found on owner cache " + c, ice);
     assertNotNull("Version is null on owner cache " + c, ice.getMetadata().version());
   }
  }
}

相关文章

Util类方法