@Test public void testDecorateWithCertificateStatusName() throws Exception { final List<ListIntygEntry> listIntygEntries = getIntygEntryList(); intygDraftDecorator.decorateWithCertificateStatusName(listIntygEntries); assertEquals(3, listIntygEntries.size()); assertEquals("Utkast, låst", listIntygEntries.get(0).getStatusName()); assertEquals("Utkast, kan signeras", listIntygEntries.get(1).getStatusName()); assertEquals("Utkast, uppgifter saknas", listIntygEntries.get(2).getStatusName()); }
public void decorateWithCertificateStatusName(List<ListIntygEntry> listIntygEntries) { listIntygEntries.stream().forEach(listIntygEntry -> addCertificateStatusName(listIntygEntry)); }
IntygDraftDecorator { public void decorateWithCertificateStatusName(List<ListIntygEntry> listIntygEntries) { listIntygEntries.stream().forEach(listIntygEntry -> addCertificateStatusName(listIntygEntry)); } }
IntygDraftDecorator { public void decorateWithCertificateStatusName(List<ListIntygEntry> listIntygEntries) { listIntygEntries.stream().forEach(listIntygEntry -> addCertificateStatusName(listIntygEntry)); } @Autowired  IntygDraftDecorator(IntygModuleRegistry intygModuleRegistry); }
IntygDraftDecorator { public void decorateWithCertificateStatusName(List<ListIntygEntry> listIntygEntries) { listIntygEntries.stream().forEach(listIntygEntry -> addCertificateStatusName(listIntygEntry)); } @Autowired  IntygDraftDecorator(IntygModuleRegistry intygModuleRegistry); void decorateWithCertificateTypeName(List<ListIntygEntry> listIntygEntries); void decorateWithCertificateStatusName(List<ListIntygEntry> listIntygEntries); }
IntygDraftDecorator { public void decorateWithCertificateStatusName(List<ListIntygEntry> listIntygEntries) { listIntygEntries.stream().forEach(listIntygEntry -> addCertificateStatusName(listIntygEntry)); } @Autowired  IntygDraftDecorator(IntygModuleRegistry intygModuleRegistry); void decorateWithCertificateTypeName(List<ListIntygEntry> listIntygEntries); void decorateWithCertificateStatusName(List<ListIntygEntry> listIntygEntries);  }