Skip to content

Commit

Permalink
Small SeminarPanel improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
oskopek committed Sep 11, 2014
1 parent c6b1880 commit 9fefe59
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/sk/gymy/seminar/swingui/SeminarPanel.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public SeminarPanel() {
}

private Groups getGroups() {
return (Groups) solutionBusiness.getSolution();
return (Groups) getSolutionBusiness().getSolution();
}

public void resetPanel(Solution solution) {
Expand Down
2 changes: 2 additions & 0 deletions src/test/java/sk/gymy/seminar/swingui/SeminarPanelTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ public void testLockIconDrawing() {
}
}
assertEquals(2, buttonsWithLockIcons); // Two locked seminars
solvedGroups.getSeminarList().get(0).setLocked(false);
solvedGroups.getSeminarList().get(2).setLocked(false);
}

}

0 comments on commit 9fefe59

Please sign in to comment.