org.nakedobjects.metamodel.commons.ensure.Assert.assertFalse()方法的使用及代码示例

x33g5p2x  于2022-01-17 转载在 其他  
字(3.0k)|赞(0)|评价(0)|浏览(200)

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

Assert.assertFalse介绍

暂无

代码示例

代码示例来源:origin: org.nakedobjects/metamodel

public static void assertFalse(final boolean flag) {
  assertFalse("expected false", flag);
}

代码示例来源:origin: org.nakedobjects.core/metamodel

public static void assertFalse(final boolean flag) {
  assertFalse("expected false", flag);
}

代码示例来源:origin: org.nakedobjects.plugins/htmlviewer-viewer

public PersistentObjectMapping(final NakedObject adapter) {
  oid = adapter.getOid();
  Assert.assertFalse("OID is for transient", oid.isTransient());
  Assert.assertFalse("adapter is for transient", adapter.isTransient());
  specification = adapter.getSpecification();
  version = adapter.getVersion();
}

代码示例来源:origin: org.nakedobjects.plugins/html-viewer

public PersistentObjectMapping(final NakedObject adapter) {
  oid = adapter.getOid();
  Assert.assertFalse("OID is for transient", oid.isTransient());
  Assert.assertFalse("adapter is for transient", adapter.isTransient());
  specification = adapter.getSpecification();
  version = adapter.getVersion();
}

代码示例来源:origin: org.nakedobjects/xmlpersistence

Assert.assertFalse(((SerialOid) entry).isTransient());
xml.append("  <association field=\"" + field + "\" ");
xml.append("ref=\"" + encodedOid((SerialOid) entry) + "\"/>\n");
  for (int i = 0; i < size; i++) {
    final Object oid = references.elementAt(i);
    Assert.assertFalse("transient oid", oid, ((SerialOid) oid).isTransient());
    xml.append("    <element ");
    xml.append("ref=\"" + encodedOid((SerialOid) oid) + "\"/>\n");

代码示例来源:origin: org.nakedobjects.core/runtime

public void resolveImmediately(final NakedObject adapter) {
  // synchronize on the current session because getting race
  // conditions, I think between different UI threads when running
  // with DnD viewer + in-memory object store +
  // cglib bytecode enhancement
  synchronized (getAuthenticationSession()) {
    final ResolveState resolveState = adapter.getResolveState();
    if (!resolveState.canChangeTo(ResolveState.RESOLVING)) {
      return;
    }
    Assert.assertFalse("only resolve object that is not yet resolved",
        adapter, resolveState.isResolved());
    Assert.assertTrue("only resolve object that is persistent",
        adapter, adapter.isPersistent());
    if (LOG.isInfoEnabled()) {
      // don't log object - its toString() may use the
      // unresolved field, or unresolved collection
      LOG.info("resolve immediately: "
          + adapter.getSpecification().getShortName() + " "
          + resolveState.code() + " " + adapter.getOid());
    }
    resolveImmediatelyFromPersistenceLayer(adapter);
  }
}

代码示例来源:origin: org.nakedobjects.core/runtime

private NakedObject mapAndInjectServices(final NakedObject adapter) {
  Assert.assertNotNull(adapter);
  final Object pojo = adapter.getObject();
  Assert.assertFalse("POJO Map already contains object", pojo, getPojoAdapterMap().containsPojo(pojo));

相关文章