Skip to content

Commit

Permalink
Up itf version
Browse files Browse the repository at this point in the history
  • Loading branch information
kbuntrock committed Sep 2, 2024
1 parent 492fcd5 commit 4f4d9d1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
8 changes: 7 additions & 1 deletion openapi-maven-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
<jackson-databind.version>2.15.3</jackson-databind.version>
<javax-ws-rs-api.version>2.1.1</javax-ws-rs-api.version>
<jakarta-ws-rs-api.version>3.1.0</jakarta-ws-rs-api.version>
<itf.version>0.11.0</itf.version>
<itf.version>0.13.1</itf.version>
<javaparser.version>3.26.0</javaparser.version>
</properties>

Expand Down Expand Up @@ -117,6 +117,12 @@
<version>${itf.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.16.1</version>
<scope>test</scope>
</dependency>

<!-- Documentation mojo dependencies -->
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ public void nominal_test_case(final MavenExecutionResult result) throws IOExcept
final MavenExecutionResultAssert resultAssert = assertThat(result);
resultAssert.isSuccessful().out().info().contains("spec-open-api.yml : 1 tags and 2 operations generated.");

final File target = new File(result.getMavenProjectResult().getTargetProjectDirectory(), "target");
final File target = new File(result.getMavenProjectResult().getTargetProjectDirectory().toFile(), "target");
final File generatedFile = new File(target, "spec-open-api.yml");
final File generatedFile2 = new File(target, "spec-open-api-impl.yml");
Assertions.assertTrue(target.exists());
Assertions.assertTrue(generatedFile.exists());
Assertions.assertTrue(generatedFile2.exists());

final File m2Directory = result.getMavenProjectResult().getTargetCacheDirectory();
final File m2Directory = result.getMavenProjectResult().getTargetCacheDirectory().toFile();
final File generatedArtifactFile = new File(m2Directory,
"/io/github/kbuntrock/openapi/it/openapi-basic-it/23.5.2/openapi-basic-it-23.5.2-spec-open-api.yml");
final File generatedArtifactFile2 = new File(m2Directory,
Expand All @@ -58,12 +58,12 @@ public void nominal_test_case_jaxrs(final MavenExecutionResult result) throws IO
final MavenExecutionResultAssert resultAssert = assertThat(result);
resultAssert.isSuccessful().out().info().contains("spec-open-api.yml : 1 tags and 2 operations generated.");

final File target = new File(result.getMavenProjectResult().getTargetProjectDirectory(), "target");
final File target = new File(result.getMavenProjectResult().getTargetProjectDirectory().toFile(), "target");
final File generatedFile = new File(target, "spec-open-api.yml");
Assertions.assertTrue(target.exists());
Assertions.assertTrue(generatedFile.exists());

final File m2Directory = result.getMavenProjectResult().getTargetCacheDirectory();
final File m2Directory = result.getMavenProjectResult().getTargetCacheDirectory().toFile();
final File generatedArtifactFile = new File(m2Directory,
"/io/github/kbuntrock/openapi/it/openapi-basic-it-jaxrs/23.5.2/openapi-basic-it-jaxrs-23.5.2-spec-open-api.yml");
Assertions.assertTrue(generatedArtifactFile.exists());
Expand All @@ -82,12 +82,12 @@ public void sealed_class(final MavenExecutionResult result) throws IOException {
final MavenExecutionResultAssert resultAssert = assertThat(result);
resultAssert.isSuccessful().out().info().contains("spec-open-api.yml : 1 tags and 2 operations generated.");

final File target = new File(result.getMavenProjectResult().getTargetProjectDirectory(), "target");
final File target = new File(result.getMavenProjectResult().getTargetProjectDirectory().toFile(), "target");
final File generatedFile = new File(target, "spec-open-api.yml");
Assertions.assertTrue(target.exists());
Assertions.assertTrue(generatedFile.exists());

final File m2Directory = result.getMavenProjectResult().getTargetCacheDirectory();
final File m2Directory = result.getMavenProjectResult().getTargetCacheDirectory().toFile();
final File generatedArtifactFile = new File(m2Directory,
"/io/github/kbuntrock/openapi/it/openapi-sealed-class-it/1.0.0/openapi-sealed-class-it-1.0.0-spec-open-api.yml");
Assertions.assertTrue(generatedArtifactFile.exists());
Expand Down

0 comments on commit 4f4d9d1

Please sign in to comment.