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

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

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

Assert.assertEquals介绍

暂无

代码示例

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

public static void assertEquals(final Object expected, final Object actual) {
  assertEquals("", expected, actual);
}

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

public static void assertEquals(final Object expected, final Object actual) {
  assertEquals("", expected, actual);
}

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

@Override
public void build(final View view) {
  Assert.assertEquals(view.getView(), view);
  final ActionContent actionContent = ((ActionContent) view.getContent());
  if (view.getSubviews().length == 0) {
    newBuild(view, actionContent);
  } else {
    updateBuild(view, actionContent);
  }
}

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

@Override
public void build(final View view) {
  Assert.assertEquals("ensure the view is complete decorated view", view.getView(), view);
  final Content content = view.getContent();
  final NakedObject object = ((ObjectContent) content).getObject();
  final TableAxis viewAxis = (TableAxis) view.getViewAxis();
  if (view.getSubviews().length == 0) {
    buildNew(object, view, viewAxis);
  } else {
    buildUpdate(object, view, viewAxis);
  }
}

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

@Override
public void build(final View view) {
  Assert.assertEquals("ensure the view is the complete decorated view", view.getView(), view);
  final Content content = view.getContent();
  final NakedObject object = ((ObjectContent) content).getObject();
  LOG.debug("build view " + view + " for " + object);
  NakedObjectSpecification spec = object.getSpecification();
  Filter<NakedObjectAssociation> filter = NakedObjectAssociationFilters.dynamicallyVisible(
      NakedObjectsContext.getAuthenticationSession(), object);
  final NakedObjectAssociation[] flds = spec.getAssociations(filter);
  if (view.getSubviews().length == 0) {
    newBuild(view, object, flds);
  } else {
    updateBuild(view, object, flds);
  }
}

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

@Override
public void build(final View view) {
  Assert.assertEquals(view.getView(), view);

相关文章