|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.pmd.lang.ParserOptionsTest
public class ParserOptionsTest
Unit tests for ParserOptions.
| Constructor Summary | |
|---|---|
ParserOptionsTest()
|
|
| Method Summary | |
|---|---|
void |
testEqualsHashcode()
Verify that the equals and hashCode methods work as expected. |
void |
testSuppressMarker()
SuppressMarker should be initially null and changeable. |
static void |
verifyOptionsEqualsHashcode(ParserOptions options1,
ParserOptions options2,
ParserOptions options3,
ParserOptions options4)
Verify equals and hashCode for 4 ParserOptions instances. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ParserOptionsTest()
| Method Detail |
|---|
public void testSuppressMarker()
public void testEqualsHashcode()
public static void verifyOptionsEqualsHashcode(ParserOptions options1,
ParserOptions options2,
ParserOptions options3,
ParserOptions options4)
ParserOptions instances.
The given options should be as follows: 1 and 3 are equals, as are 2 and 4.
options1 - first option instance - equals thirdoptions2 - second option instance - equals fourthoptions3 - third option instance - equals firstoptions4 - fourth option instance - equals second
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||