@@ -0,0 +1,2651 @@
+/*%0A * Copyright 2016-2018 Talsma ICT%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 nl.talsmasoftware.umldoclet.issues;%0A%0Aimport nl.talsmasoftware.umldoclet.UMLDoclet;%0Aimport nl.talsmasoftware.umldoclet.testing.Testing;%0Aimport org.junit.Ignore;%0Aimport org.junit.Test;%0A%0Aimport java.io.File;%0Aimport java.util.spi.ToolProvider;%0A%0Aimport static java.util.Arrays.asList;%0Aimport static org.hamcrest.MatcherAssert.assertThat;%0Aimport static org.hamcrest.Matchers.stringContainsInOrder;%0A%0A/**%0A * @author Sjoerd Talsma%0A */%0A@Ignore // Links are not built yet%0Apublic class Issue69LinksTest %7B%0A    static final File testoutput = new File(%22target/test-69%22);%0A    static final String packageAsPath = Issue69LinksTest.class.getPackageName().replace('.', '/');%0A%0A    @Test%0A    public void testLink_sameDirectory() %7B%0A        File outputdir = new File(testoutput, %22same-dir%22);%0A        File packageUml = new File(outputdir, packageAsPath + %22/package.puml%22);%0A        ToolProvider.findFirst(%22javadoc%22).get().run(%0A                System.out, System.err,%0A                %22-d%22, outputdir.getPath(),%0A                %22-doclet%22, UMLDoclet.class.getName(),%0A                %22src/test/java/%22 + packageAsPath + '/' + getClass().getSimpleName() + %22.java%22%0A        );%0A%0A        String uml = Testing.read(packageUml);%0A        assertThat(uml, stringContainsInOrder(asList(%22Issue69LinksTest%22, %22%5B%5BIssue69LinksTest.html%5D%5D%22)));%0A    %7D%0A%0A    @Test%0A    public void testLink_otherDirectory() %7B%0A        File outputdir = new File(testoutput, %22other-dir%22);%0A        File packageUml = new File(outputdir, packageAsPath + %22/package.puml%22);%0A%0A        ToolProvider.findFirst(%22javadoc%22).get().run(%0A                System.out, System.err,%0A                %22-d%22, outputdir.getPath(),%0A                %22-umlImageDirectory%22, %22images%22,%0A                %22-doclet%22, UMLDoclet.class.getName(),%0A                %22src/test/java/%22 + packageAsPath + '/' + getClass().getSimpleName() + %22.java%22%0A        );%0A%0A        String uml = Testing.read(packageUml);%0A        assertThat(uml, stringContainsInOrder(asList(%22Issue69LinksTest%22, %22%5B%5B../nl/talsmasoftware/umldoclet/issues/Issue69LinksTest.html%5D%5D%22)));%0A    %7D%0A%0A%7D%0A

Prepare unit test for links (#69)