Package net.sourceforge.pmd.lang
Class ParserOptionsTest
- java.lang.Object
-
- net.sourceforge.pmd.lang.ParserOptionsTest
-
public class ParserOptionsTest extends java.lang.ObjectUnit tests forParserOptions.
-
-
Constructor Summary
Constructors Constructor Description ParserOptionsTest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidtestEqualsHashcode()Verify that the equals and hashCode methods work as expected.voidtestSuppressMarker()SuppressMarker should be initially null and changeable.static voidverifyOptionsEqualsHashcode(net.sourceforge.pmd.lang.ParserOptions options1, net.sourceforge.pmd.lang.ParserOptions options2, net.sourceforge.pmd.lang.ParserOptions options3, net.sourceforge.pmd.lang.ParserOptions options4)Verify equals and hashCode for 4ParserOptionsinstances.
-
-
-
Method Detail
-
testSuppressMarker
public void testSuppressMarker()
SuppressMarker should be initially null and changeable.
-
testEqualsHashcode
public void testEqualsHashcode()
Verify that the equals and hashCode methods work as expected.
-
verifyOptionsEqualsHashcode
public static void verifyOptionsEqualsHashcode(net.sourceforge.pmd.lang.ParserOptions options1, net.sourceforge.pmd.lang.ParserOptions options2, net.sourceforge.pmd.lang.ParserOptions options3, net.sourceforge.pmd.lang.ParserOptions options4)Verify equals and hashCode for 4ParserOptionsinstances. The given options should be as follows: 1 and 3 are equals, as are 2 and 4.- Parameters:
options1- first option instance - equals thirdoptions2- second option instance - equals fourthoptions3- third option instance - equals firstoptions4- fourth option instance - equals second
-
-