Search in sources :

Example 1 with DocAndCommForInvoiceDoc

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;
}
Also used : DocAndCommForInvoiceDoc_document(org.estatio.module.lease.dom.invoicing.summary.comms.DocAndCommForInvoiceDoc_document) DocAndCommForInvoiceDoc(org.estatio.module.lease.dom.invoicing.summary.comms.DocAndCommForInvoiceDoc) InvoiceForLease_attachSupportingDocument(org.estatio.module.lease.dom.invoicing.comms.InvoiceForLease_attachSupportingDocument) Document(org.incode.module.document.dom.impl.docs.Document) Invoice_invoiceDocs(org.estatio.module.lease.dom.invoicing.summary.comms.Invoice_invoiceDocs)

Aggregations

InvoiceForLease_attachSupportingDocument (org.estatio.module.lease.dom.invoicing.comms.InvoiceForLease_attachSupportingDocument)1 DocAndCommForInvoiceDoc (org.estatio.module.lease.dom.invoicing.summary.comms.DocAndCommForInvoiceDoc)1 DocAndCommForInvoiceDoc_document (org.estatio.module.lease.dom.invoicing.summary.comms.DocAndCommForInvoiceDoc_document)1 Invoice_invoiceDocs (org.estatio.module.lease.dom.invoicing.summary.comms.Invoice_invoiceDocs)1 Document (org.incode.module.document.dom.impl.docs.Document)1