use of org.estatio.module.lease.dom.invoicing.summary.comms.DocAndCommForInvoiceDoc in project estatio by estatio.
the class Invoice_DocumentManagement_IntegTest method invoiceDocOf.
Document invoiceDocOf(final Invoice invoice) {
final List<DocAndCommForInvoiceDoc> viewModels = mixin(Invoice_invoiceDocs.class, invoice).$$();
assertThat(viewModels).hasSize(1);
final DocAndCommForInvoiceDoc viewModel = viewModels.get(0);
final Document document = mixin(DocAndCommForInvoiceDoc_document.class, viewModel).$$();
assertThat(document).isNotNull();
return document;
}
Aggregations