Skip to content

Commit

Permalink
fix/SportEventDaoTest
Browse files Browse the repository at this point in the history
  • Loading branch information
jiritobias committed Oct 30, 2017
1 parent 740d00e commit d65c571
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# Compiled class file
*.class

# Log file
*.log
Expand All @@ -11,7 +10,6 @@
.mtj.tmp/

# Package Files #
*.jar
*.war
*.ear
*.zip
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public void createEvents() {
public void findAll() {
List<SportEvent> all = sportEventDao.findAll();

assertThat(all.size() == 2);
assertThat(all.size()).isEqualTo(2);
assertThat(all.get(0).getName()).isEqualTo("OH");
assertThat(all.get(1).getName()).isEqualTo("MS");

Expand All @@ -74,12 +74,12 @@ public void delete() {
sportEventDao.delete(sportEvent2);

List<SportEvent> all = sportEventDao.findAll();
assertThat(all.size() == 1);
assertThat(all.size()).isOne();
assertThat(all.get(0).getName()).isEqualTo("OH");

sportEventDao.delete(sportEvent1);
all = sportEventDao.findAll();
assertThat(all.size() == 0);
assertThat(all.size()).isZero();
}

@Test
Expand Down Expand Up @@ -123,7 +123,6 @@ public void addAndRemoveCompetitonTest() {
.getCompetitions()
.size())
.isZero();

}

}

0 comments on commit d65c571

Please sign in to comment.