[user "admin"]
password = admin
+ cookie = dd94709528bb1c83d08f3088d4043f4742891f4f
role = "#admin"
role = "#notfederated"
[team "admins"]
// already started\r
return false;\r
}\r
+ \r
+ GitServletTest.deleteWorkingFolders();\r
+ \r
// Start a Gitblit instance\r
Executors.newSingleThreadExecutor().execute(new Runnable() {\r
public void run() {\r
GitBlitServer.main("--stop", "--shutdownPort", "" + shutdownPort);\r
\r
// Wait a few seconds for it to be running\r
- Thread.sleep(2500);\r
+ Thread.sleep(5000);\r
}\r
\r
@BeforeClass\r
\r
if (REPOSITORIES.exists() || REPOSITORIES.mkdirs()) {\r
cloneOrFetch("helloworld.git", "https://github.com/git/hello-world.git");\r
- cloneOrFetch("ticgit.git", "https://github.com/jeffWelling/ticgit.git");\r
+ cloneOrFetch("ticgit.git", "https://github.com/schacon/ticgit.git");\r
cloneOrFetch("test/jgit.git", "https://github.com/eclipse/jgit.git");\r
cloneOrFetch("test/helloworld.git", "https://github.com/git/hello-world.git");\r
cloneOrFetch("test/ambition.git", "https://github.com/defunkt/ambition.git");\r
\r
@BeforeClass\r
public static void startGitblit() throws Exception {\r
- deleteWorkingFolders();\r
started.set(GitBlitSuite.startGitblit());\r
}\r
\r
public static void stopGitblit() throws Exception {\r
if (started.get()) {\r
GitBlitSuite.stopGitblit();\r
+ deleteWorkingFolders();\r
}\r
- deleteWorkingFolders();\r
}\r
\r
- private static void deleteWorkingFolders() throws Exception {\r
+ public static void deleteWorkingFolders() throws Exception {\r
if (ticgitFolder.exists()) {\r
FileUtils.delete(ticgitFolder, FileUtils.RECURSIVE);\r
}\r
Set<String> links = new HashSet<String>();\r
for (int i = 0; i < 2; i++) {\r
List<FeedEntryModel> feed = SyndicationUtils.readFeed(GitBlitSuite.url, "ticgit.git",\r
- "deving", 5, i, GitBlitSuite.account, GitBlitSuite.password.toCharArray());\r
+ "master", 5, i, GitBlitSuite.account, GitBlitSuite.password.toCharArray());\r
assertTrue(feed != null);\r
assertTrue(feed.size() > 0);\r
assertEquals(5, feed.size());\r
.getTicket(repository, tickets.get(tickets.size() - 1).name);\r
repository.close();\r
assertNotNull(ticket);\r
- assertEquals(\r
- "1254123752_comments-on-ticgits-longer-than-5-lines-can-t-be-viewed-entirely_266",\r
- ticket.name);\r
+ assertEquals("1206206148_add-attachment-to-ticket_138", ticket.name);\r
}\r
}
\ No newline at end of file