JUnitToAssertJRules
SUGGESTION
Simplification
Suppression
Disable all rules by adding
-XepOpt:Refaster:NamePattern=^(?!JUnitToAssertJRules\$).*
as compiler argument.
Table of contents
- Fail
- FailWithMessage
- FailWithMessageAndThrowable
- FailWithThrowable
- AssertThatIsTrue
- AssertThatWithFailMessageStringIsTrue
- AssertThatWithFailMessageSupplierIsTrue
- AssertThatIsFalse
- AssertThatWithFailMessageStringIsFalse
- AssertThatWithFailMessageSupplierIsFalse
- AssertThatIsNull
- AssertThatWithFailMessageStringIsNull
- AssertThatWithFailMessageSupplierIsNull
- AssertThatIsNotNull
- AssertThatWithFailMessageStringIsNotNull
- AssertThatWithFailMessageSupplierIsNotNull
- AssertThatIsSameAs
- AssertThatWithFailMessageStringIsSameAs
- AssertThatWithFailMessageSupplierIsSameAs
- AssertThatIsNotSameAs
- AssertThatWithFailMessageStringIsNotSameAs
- AssertThatWithFailMessageSupplierIsNotSameAs
- AssertThatThrownByIsExactlyInstanceOf
- AssertThatThrownByWithFailMessageStringIsExactlyInstanceOf
- AssertThatThrownByWithFailMessageSupplierIsExactlyInstanceOf
- AssertThatThrownByIsInstanceOf
- AssertThatThrownByWithFailMessageStringIsInstanceOf
- AssertThatThrownByWithFailMessageSupplierIsInstanceOf
- AssertThatCodeDoesNotThrowAnyException
- AssertThatCodeWithFailMessageStringDoesNotThrowAnyException
- AssertThatCodeWithFailMessageSupplierDoesNotThrowAnyException
- AssertThatIsInstanceOf
- AssertThatWithFailMessageStringIsInstanceOf
- AssertThatWithFailMessageSupplierIsInstanceOf
Fail
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("Fail")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!JUnitToAssertJRules\$Fail).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
FailWithMessage
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("FailWithMessage")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!JUnitToAssertJRules\$FailWithMessage).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
FailWithMessageAndThrowable
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("FailWithMessageAndThrowable")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!JUnitToAssertJRules\$FailWithMessageAndThrowable).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
FailWithThrowable
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("FailWithThrowable")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!JUnitToAssertJRules\$FailWithThrowable).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
AssertThatIsTrue
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("AssertThatIsTrue")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!JUnitToAssertJRules\$AssertThatIsTrue).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
AssertThatWithFailMessageStringIsTrue
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("AssertThatWithFailMessageStringIsTrue")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!JUnitToAssertJRules\$AssertThatWithFailMessageStringIsTrue).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
AssertThatWithFailMessageSupplierIsTrue
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("AssertThatWithFailMessageSupplierIsTrue")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!JUnitToAssertJRules\$AssertThatWithFailMessageSupplierIsTrue).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
AssertThatIsFalse
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("AssertThatIsFalse")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!JUnitToAssertJRules\$AssertThatIsFalse).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
AssertThatWithFailMessageStringIsFalse
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("AssertThatWithFailMessageStringIsFalse")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!JUnitToAssertJRules\$AssertThatWithFailMessageStringIsFalse).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
AssertThatWithFailMessageSupplierIsFalse
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("AssertThatWithFailMessageSupplierIsFalse")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!JUnitToAssertJRules\$AssertThatWithFailMessageSupplierIsFalse).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
AssertThatIsNull
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("AssertThatIsNull")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!JUnitToAssertJRules\$AssertThatIsNull).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
AssertThatWithFailMessageStringIsNull
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("AssertThatWithFailMessageStringIsNull")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!JUnitToAssertJRules\$AssertThatWithFailMessageStringIsNull).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
AssertThatWithFailMessageSupplierIsNull
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("AssertThatWithFailMessageSupplierIsNull")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!JUnitToAssertJRules\$AssertThatWithFailMessageSupplierIsNull).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
AssertThatIsNotNull
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("AssertThatIsNotNull")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!JUnitToAssertJRules\$AssertThatIsNotNull).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
AssertThatWithFailMessageStringIsNotNull
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("AssertThatWithFailMessageStringIsNotNull")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!JUnitToAssertJRules\$AssertThatWithFailMessageStringIsNotNull).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
AssertThatWithFailMessageSupplierIsNotNull
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("AssertThatWithFailMessageSupplierIsNotNull")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!JUnitToAssertJRules\$AssertThatWithFailMessageSupplierIsNotNull).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
AssertThatIsSameAs
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("AssertThatIsSameAs")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!JUnitToAssertJRules\$AssertThatIsSameAs).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
AssertThatWithFailMessageStringIsSameAs
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("AssertThatWithFailMessageStringIsSameAs")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!JUnitToAssertJRules\$AssertThatWithFailMessageStringIsSameAs).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
AssertThatWithFailMessageSupplierIsSameAs
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("AssertThatWithFailMessageSupplierIsSameAs")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!JUnitToAssertJRules\$AssertThatWithFailMessageSupplierIsSameAs).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
AssertThatIsNotSameAs
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("AssertThatIsNotSameAs")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!JUnitToAssertJRules\$AssertThatIsNotSameAs).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
AssertThatWithFailMessageStringIsNotSameAs
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("AssertThatWithFailMessageStringIsNotSameAs")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!JUnitToAssertJRules\$AssertThatWithFailMessageStringIsNotSameAs).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
AssertThatWithFailMessageSupplierIsNotSameAs
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("AssertThatWithFailMessageSupplierIsNotSameAs")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!JUnitToAssertJRules\$AssertThatWithFailMessageSupplierIsNotSameAs).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
AssertThatThrownByIsExactlyInstanceOf
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("AssertThatThrownByIsExactlyInstanceOf")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!JUnitToAssertJRules\$AssertThatThrownByIsExactlyInstanceOf).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
AssertThatThrownByWithFailMessageStringIsExactlyInstanceOf
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("AssertThatThrownByWithFailMessageStringIsExactlyInstanceOf")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!JUnitToAssertJRules\$AssertThatThrownByWithFailMessageStringIsExactlyInstanceOf).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
AssertThatThrownByWithFailMessageSupplierIsExactlyInstanceOf
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("AssertThatThrownByWithFailMessageSupplierIsExactlyInstanceOf")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!JUnitToAssertJRules\$AssertThatThrownByWithFailMessageSupplierIsExactlyInstanceOf).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
AssertThatThrownByIsInstanceOf
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("AssertThatThrownByIsInstanceOf")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!JUnitToAssertJRules\$AssertThatThrownByIsInstanceOf).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
AssertThatThrownByWithFailMessageStringIsInstanceOf
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("AssertThatThrownByWithFailMessageStringIsInstanceOf")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!JUnitToAssertJRules\$AssertThatThrownByWithFailMessageStringIsInstanceOf).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
AssertThatThrownByWithFailMessageSupplierIsInstanceOf
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("AssertThatThrownByWithFailMessageSupplierIsInstanceOf")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!JUnitToAssertJRules\$AssertThatThrownByWithFailMessageSupplierIsInstanceOf).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
AssertThatCodeDoesNotThrowAnyException
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("AssertThatCodeDoesNotThrowAnyException")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!JUnitToAssertJRules\$AssertThatCodeDoesNotThrowAnyException).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
AssertThatCodeWithFailMessageStringDoesNotThrowAnyException
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("AssertThatCodeWithFailMessageStringDoesNotThrowAnyException")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!JUnitToAssertJRules\$AssertThatCodeWithFailMessageStringDoesNotThrowAnyException).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
AssertThatCodeWithFailMessageSupplierDoesNotThrowAnyException
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("AssertThatCodeWithFailMessageSupplierDoesNotThrowAnyException")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!JUnitToAssertJRules\$AssertThatCodeWithFailMessageSupplierDoesNotThrowAnyException).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
AssertThatIsInstanceOf
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("AssertThatIsInstanceOf")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!JUnitToAssertJRules\$AssertThatIsInstanceOf).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
AssertThatWithFailMessageStringIsInstanceOf
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("AssertThatWithFailMessageStringIsInstanceOf")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!JUnitToAssertJRules\$AssertThatWithFailMessageStringIsInstanceOf).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
AssertThatWithFailMessageSupplierIsInstanceOf
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("AssertThatWithFailMessageSupplierIsInstanceOf")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!JUnitToAssertJRules\$AssertThatWithFailMessageSupplierIsInstanceOf).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.