Skip to content

Commit

Permalink
♻️ rename accessors to match java bean conventions
Browse files Browse the repository at this point in the history
  • Loading branch information
ryandens committed Jul 24, 2024
1 parent 22f9e64 commit ebf9297
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/main/java/io/codemodder/codetf/Failure.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ public Failure(
this.exception = exception;
}

public String reason() {
public String getReason() {
return reason;
}

public String exception() {
public String getException() {
return exception;
}
}
4 changes: 2 additions & 2 deletions src/test/java/io/codemodder/codetf/CodeTFResultTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ void it_has_changeset_with_ai() {
@Test
void it_has_failure_state() {
Failure state = new Failure("reason", "exception");
assertEquals("reason", state.reason());
assertEquals("exception", state.exception());
assertEquals("reason", state.getReason());
assertEquals("exception", state.getException());
}
}

0 comments on commit ebf9297

Please sign in to comment.