View Javadoc

1   /**
2    * BSD-style license; for more info see http://pmd.sourceforge.net/license.html
3    */
4   package net.sourceforge.pmd.cpd;
5   
6   import static org.junit.Assert.assertEquals;
7   
8   import org.junit.Test;
9   
10  public class TokenEntryTest  {
11  
12      @Test
13      public void testSimple() {
14          TokenEntry.clearImages();
15          TokenEntry mark = new TokenEntry("public", "/var/Foo.java", 1);
16          assertEquals(1, mark.getBeginLine());
17          assertEquals("/var/Foo.java", mark.getTokenSrcID());
18          assertEquals(0, mark.getIndex());
19      }
20  
21      public static junit.framework.Test suite() {
22          return new junit.framework.JUnit4TestAdapter(TokenEntryTest.class);
23      }
24  }