Skip to content

Fix test assertions#777

Merged
littleaj merged 2 commits into
masterfrom
fixTestAssertions
Dec 4, 2018
Merged

Fix test assertions#777
littleaj merged 2 commits into
masterfrom
fixTestAssertions

Conversation

@littleaj

Copy link
Copy Markdown
Contributor

Fix #440.

Addresses the assertEquals parameters which were reversed. Also, there are some other test improvements.

simplified some assertions.
opted to use assertThat in places where matchers exist.
@littleaj littleaj self-assigned this Nov 29, 2018
@littleaj littleaj requested a review from dhaval24 November 29, 2018 22:04
public final class EnterExitClassVisitorTest {

// TODO fix these tests
// @Ignore

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I made an attempt to fix this test, but it was a time sink. Instead, I added a TODO comment for later.

try {
value += Double.parseDouble(String.valueOf(obj));
} catch (Exception e) {
assertFalse(true);

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please, do not do this...use Assert.fail if you intend to fail the test when it reaches this line.

@dhaval24

Copy link
Copy Markdown
Contributor

Thanks @littleaj. This was indeed needed.

@littleaj littleaj merged commit fbbd943 into master Dec 4, 2018
@trask trask deleted the fixTestAssertions branch September 21, 2020 00:17
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