James Moger
2011-07-18 b795b83d76b7a044c7d5bafeb8e45eefb1303581
tests/com/gitblit/tests/GitBlitSuite.java
@@ -24,10 +24,10 @@
import org.eclipse.jgit.lib.Repository;
import org.eclipse.jgit.storage.file.FileRepository;
import com.gitblit.FileUserService;
import com.gitblit.FileSettings;
import com.gitblit.GitBlit;
import com.gitblit.GitBlitException;
import com.gitblit.JettyLoginService;
import com.gitblit.models.RepositoryModel;
import com.gitblit.utils.JGitUtils;
@@ -45,6 +45,7 @@
      suite.addTestSuite(ByteFormatTest.class);
      suite.addTestSuite(MarkdownUtilsTest.class);
      suite.addTestSuite(JGitUtilsTest.class);
      suite.addTestSuite(SyndicationUtilsTest.class);
      suite.addTestSuite(DiffUtilsTest.class);
      suite.addTestSuite(MetricUtilsTest.class);
      suite.addTestSuite(TicgitUtilsTest.class);
@@ -72,9 +73,8 @@
   protected void setUp() throws Exception {
      FileSettings settings = new FileSettings("distrib/gitblit.properties");
      GitBlit.self().configureContext(settings);
      JettyLoginService loginService = new JettyLoginService(new File("distrib/users.properties"));
      loginService.loadUsers();
      GitBlit.self().setLoginService(loginService);
      FileUserService loginService = new FileUserService(new File("distrib/users.properties"));
      GitBlit.self().setUserService(loginService);
      if (REPOSITORIES.exists() || REPOSITORIES.mkdirs()) {
         cloneOrFetch("helloworld.git", "https://github.com/git/hello-world.git");
@@ -101,7 +101,7 @@
      try {
         RepositoryModel model = GitBlit.self().getRepositoryModel(repositoryName);
         model.useTickets = true;
         GitBlit.self().editRepositoryModel(model.name, model, false);
         GitBlit.self().updateRepositoryModel(model.name, model, false);
      } catch (GitBlitException g) {
         g.printStackTrace();
      }
@@ -111,7 +111,7 @@
      try {
         RepositoryModel model = GitBlit.self().getRepositoryModel(repositoryName);
         model.useDocs = true;
         GitBlit.self().editRepositoryModel(model.name, model, false);
         GitBlit.self().updateRepositoryModel(model.name, model, false);
      } catch (GitBlitException g) {
         g.printStackTrace();
      }
@@ -121,7 +121,7 @@
      try {
         RepositoryModel model = GitBlit.self().getRepositoryModel(repositoryName);
         model.showRemoteBranches = true;
         GitBlit.self().editRepositoryModel(model.name, model, false);
         GitBlit.self().updateRepositoryModel(model.name, model, false);
      } catch (GitBlitException g) {
         g.printStackTrace();
      }