diff --git a/pmd/regress/test/net/sourceforge/pmd/cpd/MarkTest.java b/pmd/regress/test/net/sourceforge/pmd/cpd/MarkTest.java new file mode 100644 index 0000000000..2f8c39d45f --- /dev/null +++ b/pmd/regress/test/net/sourceforge/pmd/cpd/MarkTest.java @@ -0,0 +1,17 @@ +package test.net.sourceforge.pmd.cpd; + +import net.sourceforge.pmd.cpd.Mark; +import net.sourceforge.pmd.cpd.Locator; +import net.sourceforge.pmd.cpd.CPDNullListener; +import junit.framework.TestCase; + +import java.util.ArrayList; + +public class MarkTest extends TestCase { + + public void testSimple() { + Locator loc = new Locator("/var/foo.java", 10); + Mark mark = new Mark(new ArrayList(), 5, loc, new CPDNullListener()); + assertEquals(mark.getLocator(), loc); + } +}