Package net.sf.collabreview.core.markup

Examples of net.sf.collabreview.core.markup.AuthorMarkup


        if (me == null) {
          markString = "  ";
        } else {
          markString = "X-";
          if (me instanceof AuthorMarkup) {
            AuthorMarkup am = (AuthorMarkup) me;
            markString = "a" + am.getAuthorName().substring(0, 1);
          }
        }
        markupString.get(j).append(markString);
      }
    }
View Full Code Here


    System.out.println(a.printContentWithMarkups());
    assertFalse(alice.equals(bob));

    // do the test
    a = repository.getArtifact(identifier[3]);
    AuthorMarkup ams[] = a.getMarkup().<AuthorMarkup>listMarkups(AuthorMarkup.class).toArray(new AuthorMarkup[0]);

    assertTrue(a.getMarkedContent(ams[0]), "worg!\n".equals(a.getMarkedContent(ams[0])));
    assertEquals(0, ams[0].getStart());
    assertEquals(6, ams[0].getEnd());
    assertEquals(caesar.getName(), ams[0].getAuthorName());
View Full Code Here

TOP

Related Classes of net.sf.collabreview.core.markup.AuthorMarkup

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.