Skip to content

Commit

Permalink
Update AbstractGenerateMojoTestTemplate.java
Browse files Browse the repository at this point in the history
  • Loading branch information
ascopes authored Dec 22, 2024
1 parent c60f799 commit ecf153f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -891,7 +891,7 @@ class DescriptorFileTest {
void whenDescriptorFileProvidedExpectProvidedDirectoryToBeUsed(
@TempDir Path tempDir
) throws Throwable {
Path expectedDescriptorFile = Files.createFile(tempDir.resolve("protobin.desc"));
var expectedDescriptorFile = Files.createFile(tempDir.resolve("protobin.desc"));
// Given
mojo.outputDescriptorFile = expectedDescriptorFile.toFile();

Expand All @@ -902,7 +902,7 @@ void whenDescriptorFileProvidedExpectProvidedDirectoryToBeUsed(
var captor = ArgumentCaptor.forClass(GenerationRequest.class);
verify(mojo.sourceCodeGenerator).generate(captor.capture());
var actualRequest = captor.getValue();
assertThat(actualRequest.getOutputDescriptorFile()).isEqualTo(expectedDescriptorFile);
assertThat(actualRequest.getOutputDescriptorFile()).isEqualTo(expectedDescriptorFile.toPath());
}
}

Expand Down

0 comments on commit ecf153f

Please sign in to comment.