You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@turbine.apache.org by Daniel Rall <dl...@finemaltcoding.com> on 2002/02/21 00:16:24 UTC

Re: cvs commit: jakarta-turbine-maven/src/test/org/apache/maven/jrcs/rcs ArchiveTest.java (2/2)

>   +    assertEquals(new Version("1.2.8.5"), archive.getRevisionVersion());
>   +    assertEquals(".8", new Version("1.2.8.5"), archive.getRevisionVersion("1.2.8"));
>   +    assertEquals(new Version("1.2.8.5"), archive.getRevisionVersion("1.2."));
>   +    assertEquals(new Version("1.2.8.5"), archive.getRevisionVersion("1.2.0"));
>   +
>   +    assertNull(archive.getRevisionVersion("1.2.8.6"));
>   +    assertNull(archive.getRevisionVersion("1.2.3"));
>   +    assertNull(archive.getRevisionVersion("1.2.9"));
>   +  }
>   +
>   +  public void testInvalidBranch()
>   +  throws org.apache.maven.jrcs.diff.DiffException,
>   +         org.apache.maven.jrcs.rcs.RCSException
>   +  {
>   +    testAdd1_1();
>   +    try {
>   +       archive.setBranch("1.3.1");
>   +       fail("succeeded with invalid branch");
>   +    }
>   +    catch(InvalidVersionNumberException e)
>   +    {}
>   +  }
>   +
>   +   String[] sampleFile = {
>   +    "head\t1.3;",
>   +    "access;",
>   +    "symbols;",
>   +    "locks; strict;",
>   +    "comment\t@# @;",
>   +    "",
>   +    "",
>   +    "1.3",
>   +    "date\t99.08.24.16.58.59;\tauthor juanca;\tstate Exp;",
>   +    "branches;",
>   +    "next\t1.2;",
>   +    "",
>   +    "1.2",
>   +    "date\t99.08.24.16.57.54;\tauthor juanca;\tstate Exp;",
>   +    "branches",
>   +    "\t1.2.1.1;",
>   +    "next\t1.1;",
>   +    "",
>   +    "1.1",
>   +    "date\t99.08.24.16.56.51;\tauthor juanca;\tstate Exp;",
>   +    "branches;",
>   +    "next\t;",
>   +    "",
>   +    "1.2.1.1",
>   +    "date\t99.08.24.17.00.30;\tauthor juanca;\tstate Exp;",
>   +    "branches;",
>   +    "next\t;",
>   +    "",
>   +    "",
>   +    "desc",
>   +    "@A simple test file",
>   +    "@",
>   +    "",
>   +    "",
>   +    "1.3",
>   +    "log",
>   +    "@Changed 1",
>   +    "@",
>   +    "text",
>   +    "@[1] one changed",
>   +    "[2] two",
>   +    "[3] three",
>   +    "[3.1]",
>   +    "[4] four",
>   +    "[5] five",
>   +    "@",
>   +    "",
>   +    "",
>   +    "1.2",
>   +    "log",
>   +    "@Added 3.1, deleted 6",
>   +    "@",
>   +    "text",
>   +    "@d1 1",
>   +    "a1 1",
>   +    "[1] one",
>   +    "@",
>   +    "",
>   +    "",
>   +    "1.2.1.1",
>   +    "log",
>   +    "@Added 2.1, changed 4, added 5.1",
>   +    "@",
>   +    "text",
>   +    "@a2 1",
>   +    "[2.1]",
>   +    "d5 1",
>   +    "a5 1",
>   +    "[4] four changed",
>   +    "a6 1",
>   +    "[5.1]",
>   +    "@",
>   +    "",
>   +    "",
>   +    "1.1",
>   +    "log",
>   +    "@Initial revision",
>   +    "@",
>   +    "text",
>   +    "@d4 1",
>   +    "a6 1",
>   +    "[6] six",
>   +    "@"
>   +    };
>   +
>   +  String[] deltaOverDates = {
>   +    "d9 1",
>   +    "a9 1",
>   +    "date\t99.08.24.16.58.59;\tauthor juanca;\tstate Exp;",
>   +    "d14 1",
>   +    "a14 1",
>   +    "date\t99.08.24.16.57.54;\tauthor juanca;\tstate Exp;",
>   +    "d20 1",
>   +    "a20 1",
>   +    "date\t99.08.24.16.56.51;\tauthor juanca;\tstate Exp;",
>   +    "d25 1",
>   +    "a25 1",
>   +    "date\t99.08.24.17.00.30;\tauthor juanca;\tstate Exp;"
>   +    };
>   +}
>   
>   
>   
>
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>