Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@regisd
Copy link
Member

@regisd regisd commented Dec 7, 2019

Use https://github.com/google/truth on all test assertions.

@regisd regisd requested a review from lsf37 as a code owner December 7, 2019 12:29
@regisd regisd self-assigned this Dec 7, 2019
@regisd regisd added the testing Adding tests or test infrastructure. label Dec 7, 2019
@regisd regisd added this to the 1.8.0 milestone Dec 7, 2019
@regisd regisd merged commit 48c2f92 into jflex-de:master Dec 7, 2019
@regisd regisd deleted the truth branch December 7, 2019 13:31
regisd added a commit to regisd/jflex that referenced this pull request Dec 12, 2019
Follow-up of jflex-de#660 that reveals some jUnit assertions where inverting expected and actual.
regisd added a commit that referenced this pull request Dec 14, 2019
* Increase many error-prone checks from WARN to ERROR

* Exclude third_party and generated code from checks

* Fix error-prone TruthConstantAsserts

  Follow-up of #660 that reveals some jUnit assertions where inverting expected and actual.

* Fix error-prone AssertionFailureIgnored

* Fix error-prone ThrowsUncheckedException in initthrow_eol

* Fix error-prone ThrowsUncheckedException

* Fix error-prone ThrowsUncheckedException

  Make MacroException a checked exception

* Fix error-prone ThrowsUncheckedException

* Fix error-prone ClassCanBeStatic

* Fix error-prone BoxedPrimitiveConstructor

  The problem was with new Integer(). Replaced by Integer.valueOf().

* Show error-prone warnings for CatchAndPrintStackTrace, DefaultCharSet, DeprecatedThreadMethods, IncrementInForLoopAndHeader, JdkObsolete, MissingOverride, FieldCanBeFinal, RemoveUnusedImports

* expandMacro can throw a MacroException

* Declare that IntCharSet implements Comparable<IntCharSet>

  The compare() method already exists.

* Extract IntCharSetComparator
regisd pushed a commit that referenced this pull request Dec 14, 2019
commit b34361f
Author:     Régis Décamps <[email protected]>
AuthorDate: Sat Dec 14 12:08:16 2019 +0100
Commit:     GitHub <[email protected]>
CommitDate: Sat Dec 14 12:08:16 2019 +0100

    Fix error-prone violations (#683)

    * Increase many error-prone checks from WARN to ERROR

    * Exclude third_party and generated code from checks

    * Fix error-prone TruthConstantAsserts

      Follow-up of #660 that reveals some jUnit assertions where inverting expected and actual.

    * Fix error-prone AssertionFailureIgnored

    * Fix error-prone ThrowsUncheckedException in initthrow_eol

    * Fix error-prone ThrowsUncheckedException

    * Fix error-prone ThrowsUncheckedException

      Make MacroException a checked exception

    * Fix error-prone ThrowsUncheckedException

    * Fix error-prone ClassCanBeStatic

    * Fix error-prone BoxedPrimitiveConstructor

      The problem was with new Integer(). Replaced by Integer.valueOf().

    * Show error-prone warnings for CatchAndPrintStackTrace, DefaultCharSet, DeprecatedThreadMethods, IncrementInForLoopAndHeader, JdkObsolete, MissingOverride, FieldCanBeFinal, RemoveUnusedImports

    * expandMacro can throw a MacroException

    * Declare that IntCharSet implements Comparable<IntCharSet>

      The compare() method already exists.

    * Extract IntCharSetComparator

Updated from target/jflex-parent-1.8.0-SNAPSHOT-sources.jar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

testing Adding tests or test infrastructure.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant