@@ -0,0 +1,2324 @@
+/*%0A * Bach - Java Shell Builder%0A * Copyright (C) 2020 Christian Stein%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 *     https://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 */%0A%0Apackage test.modules;%0A%0Aimport static org.junit.jupiter.api.Assertions.assertTrue;%0A%0Aimport de.sormuras.bach.Bach;%0Aimport de.sormuras.bach.api.Paths;%0Aimport de.sormuras.bach.api.Project;%0Aimport de.sormuras.bach.api.Realm;%0Aimport de.sormuras.bach.api.Source;%0Aimport de.sormuras.bach.api.Unit;%0Aimport java.lang.module.ModuleDescriptor;%0Aimport java.nio.file.Files;%0Aimport java.nio.file.Path;%0Aimport java.util.List;%0Aimport java.util.Map;%0Aimport org.junit.jupiter.api.Test;%0Aimport org.junit.jupiter.api.io.TempDir;%0Aimport test.base.Log;%0Aimport test.base.Tree;%0A%0Aclass DocProjectJigsawQuickStartTests %7B%0A%0A  @Test%0A  void build(@TempDir Path temp) %7B%0A    var name = %22jigsaw.quick.start%22;%0A    var base = Path.of(%22doc%22, %22project%22, name);%0A%0A    assertTrue(Files.isDirectory(base), %22Directory not found: %22 + base);%0A%0A    var module = %22com.greetings%22;%0A    var source = Source.of(base.resolve(module));%0A    var unit =%0A        new Unit(%0A            source.path().resolve(%22module-info.java%22),%0A            ModuleDescriptor.newModule(module).mainClass(module + %22.Main%22).build(),%0A            base,%0A            List.of(source),%0A            List.of());%0A    var realm = new Realm(%22%22, 0, Map.of(module, unit), List.of());%0A    var paths = new Paths(base, temp.resolve(%22out%22), temp.resolve(%22lib%22));%0A    var project =%0A        Project.builder()%0A            .paths(paths)%0A            .name(name)%0A            .units(List.of(unit))%0A            .realms(List.of(realm))%0A            .build();%0A    var log = new Log();%0A    var bach = new Bach(log, true);%0A    var summary = bach.build(project);%0A%0A    summary.assertSuccessful();%0A%0A    Tree.walk(temp, System.out::println);%0A    summary.toMarkdown().forEach(System.out::println);%0A  %7D%0A%7D%0A

Introduce build test for documentation project "jigsaw.quick.start"