| | |
| | | MarkdownUtilsTest.class, JGitUtilsTest.class, SyndicationUtilsTest.class,
|
| | | DiffUtilsTest.class, MetricUtilsTest.class, X509UtilsTest.class,
|
| | | GitBlitTest.class, FederationTests.class, RpcTests.class, GitServletTest.class, GitDaemonTest.class,
|
| | | GroovyScriptTest.class, LuceneExecutorTest.class, IssuesTest.class, RepositoryModelTest.class,
|
| | | GroovyScriptTest.class, LuceneExecutorTest.class, RepositoryModelTest.class,
|
| | | FanoutServiceTest.class, Issue0259Test.class, Issue0271Test.class, HtpasswdUserServiceTest.class,
|
| | | ModelUtilsTest.class, JnaUtilsTest.class })
|
| | | public class GitBlitSuite {
|
| | |
| | |
|
| | | public static Repository getAmbitionRepository() throws Exception {
|
| | | return getRepository("test/ambition.git");
|
| | | }
|
| | |
|
| | | public static Repository getIssuesTestRepository() throws Exception {
|
| | | JGitUtils.createRepository(REPOSITORIES, "gb-issues.git").close();
|
| | | return getRepository("gb-issues.git");
|
| | | }
|
| | |
|
| | | public static Repository getGitectiveRepository() throws Exception {
|
| | |
| | | cloneOrFetch("test/ambition.git", "https://github.com/defunkt/ambition.git");
|
| | | cloneOrFetch("test/gitective.git", "https://github.com/kevinsawicki/gitective.git");
|
| | |
|
| | | enableTickets("ticgit.git");
|
| | | enableDocs("ticgit.git");
|
| | | showRemoteBranches("ticgit.git");
|
| | | automaticallyTagBranchTips("ticgit.git");
|
| | | showRemoteBranches("test/jgit.git");
|
| | |
| | | System.out.println("Error: " + t.getMessage());
|
| | | }
|
| | | System.out.println("done.");
|
| | | }
|
| | |
|
| | | private static void enableTickets(String repositoryName) {
|
| | | try {
|
| | | RepositoryModel model = GitBlit.self().getRepositoryModel(repositoryName);
|
| | | model.useTickets = true;
|
| | | GitBlit.self().updateRepositoryModel(model.name, model, false);
|
| | | } catch (GitBlitException g) {
|
| | | g.printStackTrace();
|
| | | }
|
| | | }
|
| | |
|
| | | private static void enableDocs(String repositoryName) {
|
| | | try {
|
| | | RepositoryModel model = GitBlit.self().getRepositoryModel(repositoryName);
|
| | | model.useDocs = true;
|
| | | GitBlit.self().updateRepositoryModel(model.name, model, false);
|
| | | } catch (GitBlitException g) {
|
| | | g.printStackTrace();
|
| | | }
|
| | | }
|
| | |
|
| | | private static void showRemoteBranches(String repositoryName) {
|