Skip to content

Commit

Permalink
Fixed assertNotEquals with different types (#422) (#423)
Browse files Browse the repository at this point in the history
Signed-off-by: Helber Belmiro <helber.belmiro@gmail.com>
Co-authored-by: Helber Belmiro <helber.belmiro@gmail.com>
  • Loading branch information
github-actions[bot] and hbelmiro authored Jul 26, 2023
1 parent c5ecc18 commit 2768aa7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ void circuitBreaker() throws IOException {
compilationUnit.findAll(ClassOrInterfaceDeclaration.class).stream()
.map(c -> c.getAnnotationByClass(RegisterRestClient.class)).filter(Optional::isPresent).map(Optional::get)
.map(a -> a.asNormalAnnotationExpr().getPairs())
.forEach(n -> n.forEach(p -> assertNotEquals("baseUri", p.getName())));
.forEach(n -> n.forEach(p -> assertNotEquals("baseUri", p.getName().asString())));

List<MethodDeclaration> methodDeclarations = compilationUnit.findAll(MethodDeclaration.class);
assertThat(methodDeclarations).isNotEmpty();
Expand Down

0 comments on commit 2768aa7

Please sign in to comment.