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