EditorModel.tooManyInterfacesMessage(types.findType("t.TooManyInterfacesEditorDriver")),
null);
builder.expectError(EditorModel.foundPrimitiveMessage(JPrimitiveType.LONG,
"", "lastModified.foo"), null);
builder.expectError(EditorModel.poisonedMessage(), null);
UnitTestTreeLogger testLogger = builder.createLogger();
try {
new EditorModel(testLogger, types.getJavaLangObject(), rfedType);
fail("Should have thrown exception");
} catch (UnableToCompleteException expected) {
}
try {
new EditorModel(testLogger, rfedType, rfedType);
fail("Should have thrown exception");
} catch (UnableToCompleteException expected) {
}
try {
new EditorModel(testLogger,
types.findType("t.TooManyInterfacesEditorDriver"), rfedType);
fail("Should have thrown exception");
} catch (UnableToCompleteException expected) {
}
try {
new EditorModel(testLogger,
types.findType("t.PersonEditorWithBadPrimitiveAccessDriver"),
rfedType);
fail("Should have thrown exception");
} catch (UnableToCompleteException expected) {
}
testLogger.assertCorrectLogEntries();
}