本文整理了Java中org.nakedobjects.metamodel.commons.ensure.Assert.assertEquals()
方法的一些代码示例,展示了Assert.assertEquals()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Assert.assertEquals()
方法的具体详情如下:
包路径:org.nakedobjects.metamodel.commons.ensure.Assert
类名称: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);
内容来源于网络,如有侵权,请联系作者删除!