diff options
author | James Moger <james.moger@gitblit.com> | 2014-04-28 14:56:15 -0400 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2014-05-02 15:31:01 -0400 |
commit | 4d81c92b668bce79d7db7bc278f0d399fe693e65 (patch) | |
tree | 04e98e6182deeb78724d9a39a1d9c25a8efa10d2 /src/test | |
parent | a98ebb22fd088bbc2e40d752b065e4eb2210a734 (diff) | |
download | gitblit-4d81c92b668bce79d7db7bc278f0d399fe693e65.tar.gz gitblit-4d81c92b668bce79d7db7bc278f0d399fe693e65.zip |
Implementation of a ticket mgration tool
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/java/com/gitblit/tests/TicketServiceTest.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/test/java/com/gitblit/tests/TicketServiceTest.java b/src/test/java/com/gitblit/tests/TicketServiceTest.java index d91ce533..1676e341 100644 --- a/src/test/java/com/gitblit/tests/TicketServiceTest.java +++ b/src/test/java/com/gitblit/tests/TicketServiceTest.java @@ -95,7 +95,7 @@ public abstract class TicketServiceTest extends GitblitUnitTest { // query non-existent ticket
TicketModel nonExistent = service.getTicket(getRepository(), 0);
assertNull(nonExistent);
-
+
// create and insert a ticket
Change c1 = newChange("testCreation() " + Long.toHexString(System.currentTimeMillis()));
TicketModel ticket = service.createTicket(getRepository(), c1);
@@ -205,6 +205,9 @@ public abstract class TicketServiceTest extends GitblitUnitTest { assertEquals(1, results.size());
assertTrue(results.get(0).title.startsWith("testUpdates"));
+ // check the ids
+ assertEquals("[1, 2]", service.getIds(getRepository()).toString());
+
// delete all tickets
for (TicketModel aTicket : allTickets) {
assertTrue(service.deleteTicket(getRepository(), aTicket.number, "D"));
|