Skip to content
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

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

szirbucz
Copy link
Contributor

No description provided.

@szirbucz szirbucz requested a review from magwas July 15, 2019 06:36
Copy link
Member

@magwas magwas left a 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() {
Copy link
Member

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")
Copy link
Member

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)
Copy link
Member

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();
Copy link
Member

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);
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants