Skip to content

Commit

Permalink
fix test with Station.setBroken -> Station.setIsBroken
Browse files Browse the repository at this point in the history
  • Loading branch information
FKD13 committed Mar 27, 2024
1 parent 4ea2cc3 commit ab84635
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
8 changes: 0 additions & 8 deletions src/main/java/telraam/database/models/Station.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,4 @@ public Station(String name, boolean isBroken) {
this.name = name;
this.isBroken = isBroken;
}

// These are overridden, otherwise the updateDoesUpdate test fails for some reason?
public void setIsBroken(boolean isBroken) {
this.isBroken = isBroken;
}
public void setBroken(boolean isBroken) {
this.isBroken = isBroken;
}
}
2 changes: 1 addition & 1 deletion src/test/java/telraam/database/daos/StationDAOTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ void testUpdateDoesUpdate() {
testStation.setId(testid);
testStation.setName("postUpdate");
testStation.setDistanceFromStart(2d);
testStation.setBroken(true);
testStation.setIsBroken(true);
testStation.setUrl("localhost:8001");
int updatedRows = stationDAO.update(testid, testStation);
assertEquals(1, updatedRows);
Expand Down

0 comments on commit ab84635

Please sign in to comment.