From 718ba732e93a2fd8b8d86838ab6946354d787c7a Mon Sep 17 00:00:00 2001 From: Tom Copeland Date: Thu, 27 Mar 2003 21:01:11 +0000 Subject: [PATCH] *** empty log message *** git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@1631 51baf565-9d33-0410-a72c-fc3788e3496d --- .../test/net/sourceforge/pmd/cpd/MarkTest.java | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 pmd/regress/test/net/sourceforge/pmd/cpd/MarkTest.java 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); + } +}