Skip to content
This repository has been archived by the owner on Mar 5, 2023. It is now read-only.

ConfigTest: Remove unused ExpectedException #985

Merged
merged 1 commit into from Mar 14, 2019

Conversation

sijie123
Copy link
Contributor

ConfigTest contains an unused ExpectedException. It appears that the
ExpectedException was first introduced in [1].
However, since its introduction, there have been no tests within
ConfigTest that potentially throws an expected exception.

Hence, to make our code tidier and to remove unnecessary code, let's
remove the ExpectedException together with their imports.

[1] 75942c9

ConfigTest contains an unused ExpectedException. It appears that the
ExpectedException was first introduced in [1].
However, since its introduction, there have been no tests within
ConfigTest that potentially throws an expected exception.

Hence, to make our code tidier and to remove unnecessary code, let's
remove the ExpectedException together with their imports.

[1] se-edu@75942c9
@CanIHasReview-bot
Copy link

Click here to submit a new iteration when this PR is ready for review.

See this repository's contribution guide for more information.

@CanIHasReview-bot
Copy link

v1

@sijie123 submitted v1 for review.

(📚 Archive)

Checkout this PR version locally
git fetch https://github.com/se-edu/addressbook-level4.git refs/pr/985/1/head:BRANCHNAME

where BRANCHNAME is the name of the local branch you wish to fetch this PR to.

Copy link
Contributor

@pyokagan pyokagan left a comment

Choose a reason for hiding this comment

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

ConfigTest: Remove unused ExpectedException

ConfigTest contains an unused ExpectedException. It appears that the
ExpectedException was first introduced in [1].
However, since its introduction, there have been no tests within
ConfigTest that potentially throws an expected exception.

Hence, to make our code tidier and to remove unnecessary code, let's
remove the ExpectedException together with their imports.

[1] https://github.com/se-edu/addressbook-level4/commit/75942c90c04ff0469d5bb26873b85cd094f37797

This is indeed correct, but it seems like a very long-winded way of saying:

ConfigTest: remove unused ExpectedException

The tests in ConfigTest do not use the ExpectedException.

Remove it.

I don't think it is a problem, but I'm just mentioning it in case I
accidentally gave the impression that commit messages must always be a few
paragraphs long :-S.

@pyokagan pyokagan requested a review from damithc March 13, 2019 16:36
@pyokagan pyokagan merged commit 7c2e953 into se-edu:master Mar 14, 2019
@sijie123 sijie123 deleted the configTest_removeExpectedException branch March 14, 2019 07:10
lycjackie added a commit to CS2113-AY1819S2-T09-1/main that referenced this pull request Mar 18, 2019
…nfigTest (#88)

Upstream se-edu/addressbook-level4@7c2e953 removed an unused
ExpectedException to make the codebase tidier and remove unnecessary
code.

Let's follow and merge the changes from se-edu#985 into master branch.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants