Skip to content

Migrate to JUnit @Rule in triangle exercise [Fix #268] - #293

Merged
FridaTveit merged 4 commits into
exercism:masterfrom
michaelspets:junit_rules
Feb 15, 2017
Merged

FridaTveit merged 4 commits into
exercism:masterfrom
michaelspets:junit_rules

Conversation

@michaelspets

Copy link
Copy Markdown
Contributor

No description provided.

@FridaTveit FridaTveit left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks @michaelspets! I have a couple of small comments but otherwise it looks great! :)



@Rule
public final ExpectedException thrown = ExpectedException.none();

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I would add a new line here to make it more readable

@Ignore
@Test(expected = TriangleException.class)
@Test
public void trianglesWithNoSizeAreIllegal() throws Exception {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I know you didn't add this, but it would be great if you could change throws Exception to throws TriangleException as it's usually best to be as specific as you can :)

@FridaTveit FridaTveit left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks great! Thanks @michaelspets! :)

@FridaTveit
FridaTveit merged commit 4e98d87 into exercism:master Feb 15, 2017
@michaelspets

Copy link
Copy Markdown
Contributor Author

You 're welcome!

@michaelspets
michaelspets deleted the junit_rules branch February 15, 2017 18:47
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