integration-impl/src/test/java/se/idsec/signservice/integration/document/impl/AbstractTbsDocumentProcessorTest.java
@Test
  public void testAutoCreateValidator() throws Exception {
    TestTbsDocumentProcessor processor = new TestTbsDocumentProcessor();
    ProcessedTbsDocument pd = processor.preProcess(TbsDocument.builder()
      .id("123").content("DOCUMENT").mimeType("TEST").build(), null, this.config, this.documentCache, "tbs");
    Assert.assertNotNull(pd);
  }
// Makes sure that a TbsDocumentValidator is created even if we forget afterPropertiesSet
Makes sure that a TbsDocumentValidator is created even if we forget afterPropertiesSet
Makes sure that a TbsDocumentValidator is created even if we forget afterPropertiesSet
@Test
  public void testAutoCreateValidator() throws Exception {
    TestTbsDocumentProcessor processor = new TestTbsDocumentProcessor();
    ProcessedTbsDocument pd = processor.preProcess(TbsDocument.builder()
      .id("123").content("DOCUMENT").mimeType("TEST").build(), null, this.config, this.documentCache, "tbs");
    Assert.assertNotNull(pd);
  }
@ Test public void testAutoCreateValidator ( ) throws Exception { TestTbsDocumentProcessor processor = new TestTbsDocumentProcessor ( ) ; ProcessedTbsDocument pd = processor . preProcess ( TbsDocument . builder ( ) . id ( "123" ) . content ( "DOCUMENT" ) . mimeType ( "TEST" ) . build ( ) , null , this . config , this . documentCache , "tbs" ) ; Assert . assertNotNull ( pd ) ; }
Makes sure that a TbsDocumentValidator is created even if we forget afterPropertiesSet
Makes sure that a TbsDocumentValidator is created even if we forget afterPropertiesSet