Skip to content

Commit

Permalink
Fixed assertNotEquals with different types
Browse files Browse the repository at this point in the history
Signed-off-by: Helber Belmiro <helber.belmiro@gmail.com>
  • Loading branch information
hbelmiro committed Jul 26, 2023
1 parent d3d1d76 commit 8658452
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 8658452

Please sign in to comment.