net.sourceforge.pmd.lang
Class ParserOptionsTest

java.lang.Object
  extended by net.sourceforge.pmd.lang.ParserOptionsTest

public class ParserOptionsTest
extends Object

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

ParserOptionsTest

public ParserOptionsTest()
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(ParserOptions options1,
                                               ParserOptions options2,
                                               ParserOptions options3,
                                               ParserOptions options4)
Verify equals and hashCode for 4 ParserOptions instances. The given options should be as follows: 1 and 3 are equals, as are 2 and 4.

Parameters:
options1 - first option instance - equals third
options2 - second option instance - equals fourth
options3 - third option instance - equals first
options4 - fourth option instance - equals second


Copyright © 2002-2016 InfoEther. All Rights Reserved.