Skip to content

Commit 4a655b6

Browse files
committed
coverage #409
1 parent 2bfb36f commit 4a655b6

File tree

1 file changed

+28
-0
lines changed
  • fj-doc-maven-plugin/src/test/java/test/org/fugerit/java/doc/project/facade

1 file changed

+28
-0
lines changed

fj-doc-maven-plugin/src/test/java/test/org/fugerit/java/doc/project/facade/TestInit.java

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,34 @@ public void execute() throws MojoExecutionException, MojoFailureException {
6161
};
6262
}
6363

64+
@Test
65+
void createDirectInitNoVerify() throws MojoExecutionException, MojoFailureException {
66+
File projectDir = initConfigWorker( FlavourFacade.FLAVOUR_DIRECT+"-no-verify" );
67+
String currentFlavour = FlavourFacade.FLAVOUR_DIRECT;
68+
MojoInit mojoInit = new MojoInit() {
69+
@Override
70+
public void execute() throws MojoExecutionException, MojoFailureException {
71+
this.baseInitFolder = projectDir.getAbsolutePath();
72+
this.projectVersion = "1.0.0-SNAPSHOT";
73+
this.groupId = "org.fugerit.java.test.gradle";
74+
this.artifactId = "fugerit-test-"+currentFlavour+"-no-verify";
75+
this.javaRelease = "21";
76+
this.version = DIRECT_PLUGIN_AVAILABLE;
77+
this.extensions = "fj-doc-base,fj-doc-base-json,fj-doc-base-yaml,fj-doc-base-kotlin,fj-doc-freemarker,fj-doc-mod-fop,fj-doc-mod-poi,fj-doc-mod-opencsv";
78+
this.addDocFacade = true;
79+
this.force = true;
80+
this.excludeXmlApis = true;
81+
this.addVerifyPlugin = false;
82+
this.addJunit5 = true;
83+
this.addLombok = true;
84+
this.flavour = currentFlavour;
85+
super.execute();
86+
}
87+
};
88+
mojoInit.execute();
89+
Assertions.assertTrue( projectDir.exists() );
90+
}
91+
6492
@Test
6593
void testMojoQuarkus3GradleGroovyAndKts() throws MojoExecutionException, MojoFailureException {
6694
for ( String currentFlavour : Arrays.asList( FlavourFacade.FLAVOUR_QUARKUS_3_GRADLE, FlavourFacade.FLAVOUR_QUARKUS_3_GRADLE_KTS ) ) {

0 commit comments

Comments
 (0)