@@ -0,0 +1,1665 @@
+/*%0A * Copyright 2016 EuregJUG.%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *      http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0Apackage eu.euregjug.site.posts;%0A%0Aimport java.util.Date;%0Aimport static org.hamcrest.Matchers.is;%0Aimport static org.junit.Assert.assertThat;%0Aimport org.junit.Test;%0A%0A/**%0A * @author Michael J. Simons, 2016-07-15%0A */%0Apublic class PostRenderingServiceTest %7B%0A%0A    @Test%0A    public void renderShouldWork() %7B%0A        final PostEntity entity1 = new PostEntity(new Date(), %22a-title%22, %22A title%22, %22some *ASCIIdoc* content%22);%0A        entity1.setFormat(PostEntity.Format.markdown);%0A        final PostEntity entity2 = new PostEntity(new Date(), %22a-title%22, %22A title%22, %22some *ASCIIdoc* content%22);%0A        entity2.setFormat(PostEntity.Format.asciidoc);%0A        final PostRenderingService postRenderingService = new PostRenderingService();%0A%0A        Post post;%0A        post = postRenderingService.render(entity1);%0A        assertThat(post.getContent(), is(%22%3Cstrong%3ECould not render content.%3C/strong%3E%22));%0A%0A        post = postRenderingService.render(entity2);%0A        assertThat(post.getContent(), is(%22%3Cdiv class=%5C%22paragraph%5C%22%3E%5Cn%3Cp%3Esome %3Cstrong%3EASCIIdoc%3C/strong%3E content%3C/p%3E%5Cn%3C/div%3E%22));%0A    %7D%0A%7D%0A

Add test for PostRenderingService