-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove ContainingBeats since it has been used only in tests. #335
base: develop
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have just marked some places randomly.
And it is according to my own views, which should be synchronized.
} | ||
|
||
@Test | ||
public void beatInformation_gives_back_the_number_of_winnings_from_choice1_to_choice2() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where are these functionalities tested?
public void | ||
beatInformation_throws_exception_when_getting_with_invalid_row_key() { | ||
assertThrows( | ||
() -> createNewBeatTableWithData().getElement(CHOICE1, "InvalidRow") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Test data in a unit test. Test data obtained through a method.
public void | ||
beatInformation_throws_exception_when_getting_with_invalid_column_key() { | ||
assertThrows( | ||
() -> createNewBeatTableWithData().getElement("InvalidColumn", CHOICE1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Test data in a unit test.
@@ -25,7 +25,7 @@ | |||
|
|||
@Before | |||
public void setUp() { | |||
BeatTable beatTable = createNewBeatTableWithComplexData(); | |||
final BeatTable beatTable = createNewBeatTableWithComplexData(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Test data obtained through a method
@@ -37,7 +39,8 @@ public void transitive_closure_on_empty_beat_table_results_empty_result() { | |||
|
|||
@Test | |||
public void transitive_closure_computes_the_shortest_paths_by_pairs() { | |||
beatTable = beatTableTransitiveClosureService.computeTransitiveClosure(beatTable); | |||
beatTable = | |||
beatTableTransitiveClosureService.computeTransitiveClosure(beatTable); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Test data created in situ below.
No description provided.