use of com.blazebit.persistence.view.testsuite.update.subview.simple.mutable.model.UpdatableDocumentWithMapsView in project blaze-persistence by Blazebit.
the class EntityViewUpdateSimpleMutableSubviewMapsTest method testUpdateAddToCollectionAndModify.
@Test
public void testUpdateAddToCollectionAndModify() {
// Given
final UpdatableDocumentWithMapsView docView = getDoc1View();
UpdatablePersonView newPerson = getP2View(UpdatablePersonView.class);
clearQueries();
// When
newPerson.setName("newPerson");
docView.getContacts().put(2, newPerson);
verifyUpdateAddToCollectionAndModify(docView);
}
Aggregations