-
Notifications
You must be signed in to change notification settings - Fork 34
Check not only a presence of an exception itself but also its message #925
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
Comments
php-coder
added a commit
that referenced
this issue
Jul 18, 2018
…t also its message. Addressed to #925 No functional changes.
php-coder
added a commit
that referenced
this issue
Feb 10, 2019
… also its message. Addressed to #925 No functional changes.
php-coder
added a commit
that referenced
this issue
Feb 10, 2019
… also its message. Addressed to #925 No functional changes.
php-coder
added a commit
that referenced
this issue
Feb 10, 2019
… also its message. Addressed to #925 No functional changes.
php-coder
added a commit
that referenced
this issue
Feb 12, 2019
… also its message. Addressed to #925 No functional changes.
php-coder
added a commit
that referenced
this issue
Feb 12, 2019
…orrect exception for invalid input. Prior this change, UnknownFormatConversionException: Conversion = ''' was thrown instead of raised IllegalArgumentException. Found during work on #925 No functional changes.
php-coder
added a commit
that referenced
this issue
Feb 12, 2019
… also its message. Addressed to #925 No functional changes.
It's fixed now. |
php-coder
added a commit
that referenced
this issue
Feb 13, 2019
… also its message. Follow-up to #925 No functional changes.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Here is how we can improve our unit tests:
Here are the places that should be updated:
Here is a one-liner that could be used to perform initial update of a file:
$ sed -i "s|\([\t]*\)thrown \(.*\)|\1\2 ex = thrown()\\n\1ex.message == 'XXX'|" /path/to/file
Progress:
CategoryServiceImplTest.groovy
CollectionServiceImplTest.groovy
CountryServiceImplTest.groovy
CronServiceImplTest.groovy
ImageServiceImplTest.groovy
SeriesImportServiceImplTest.groovy
SeriesSalesServiceImplTest.groovy
SeriesServiceImplTest.groovy
SiteServiceImplTest.groovy
StampsCatalogServiceImplTest.groovy
SuspiciousActivityServiceImplTest.groovy
TransactionParticipantServiceImplTest.groovy
UserServiceImplTest.groovy
UsersActivationServiceImplTest.groovy
CatalogUtilsTest.groovy
PagerTest.groovy
SlugUtilsTest.groovy
The text was updated successfully, but these errors were encountered: