}
@Test
public void testDuplicatedPropertyName() throws Exception {
new AssertedFailure(ConstraintViolationException.class) {
public void thisMustFail() throws Throwable {
morphia.map(DuplicatedPropertyName.class);
}
};
new AssertedFailure(ConstraintViolationException.class) {
public void thisMustFail() throws Throwable {
morphia.map(DuplicatedPropertyName2.class);
}
};
new AssertedFailure(ConstraintViolationException.class) {
public void thisMustFail() throws Throwable {
morphia.map(Extends.class);
}
};
}