@Test public void tesRrewrite() throws Exception { ContentEntity sourceDocument = mock( ContentEntity.class ); ContentEntity dataEntity = mock( ContentEntity.class ); doReturn( TEST_URL ).when( dataEntity ).getName(); String result = rewriter.rewrite( sourceDocument, dataEntity ); assertThat( result, is( equalTo( "cid:" + TEST_URL ) ) ); }
public String rewrite( final ContentEntity sourceDocument, final ContentEntity dataEntity ) throws URLRewriteException { return "cid:" + dataEntity.getName(); }
MailURLRewriter implements URLRewriter { public String rewrite( final ContentEntity sourceDocument, final ContentEntity dataEntity ) throws URLRewriteException { return "cid:" + dataEntity.getName(); } }
MailURLRewriter implements URLRewriter { public String rewrite( final ContentEntity sourceDocument, final ContentEntity dataEntity ) throws URLRewriteException { return "cid:" + dataEntity.getName(); } MailURLRewriter(); }
MailURLRewriter implements URLRewriter { public String rewrite( final ContentEntity sourceDocument, final ContentEntity dataEntity ) throws URLRewriteException { return "cid:" + dataEntity.getName(); } MailURLRewriter(); String rewrite( final ContentEntity sourceDocument, final ContentEntity dataEntity ); }
MailURLRewriter implements URLRewriter { public String rewrite( final ContentEntity sourceDocument, final ContentEntity dataEntity ) throws URLRewriteException { return "cid:" + dataEntity.getName(); } MailURLRewriter(); String rewrite( final ContentEntity sourceDocument, final ContentEntity dataEntity );  }