From 424fe1b372d225d65eb42e6125b24cbb982c5969 Mon Sep 17 00:00:00 2001
From: James Moger <james.moger@gitblit.com>
Date: Wed, 01 Jun 2011 19:51:41 -0400
Subject: [PATCH] Stats -> Metrics. Docs in distribution zip. Created MetricUtils.

---
 tests/com/gitblit/tests/GitBlitSuite.java |   31 ++++++++++++++++++++++++++++++-
 1 files changed, 30 insertions(+), 1 deletions(-)

diff --git a/tests/com/gitblit/tests/GitBlitSuite.java b/tests/com/gitblit/tests/GitBlitSuite.java
index eaa028d..d996364 100644
--- a/tests/com/gitblit/tests/GitBlitSuite.java
+++ b/tests/com/gitblit/tests/GitBlitSuite.java
@@ -1,3 +1,18 @@
+/*
+ * Copyright 2011 gitblit.com.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 package com.gitblit.tests;
 
 import java.io.File;
@@ -11,6 +26,10 @@
 import org.eclipse.jgit.lib.Repository;
 import org.eclipse.jgit.storage.file.FileRepository;
 
+import com.gitblit.FileSettings;
+import com.gitblit.GitBlit;
+import com.gitblit.JettyLoginService;
+
 public class GitBlitSuite extends TestSetup {
 	public static final File REPOSITORIES = new File("git");
 
@@ -20,10 +39,15 @@
 
 	public static Test suite() {
 		TestSuite suite = new TestSuite();
+		suite.addTestSuite(TimeUtilsTest.class);
+		suite.addTestSuite(StringUtilsTest.class);
+		suite.addTestSuite(ByteFormatTest.class);
 		suite.addTestSuite(JGitUtilsTest.class);
+		suite.addTestSuite(DiffUtilsTest.class);
+		suite.addTestSuite(GitBlitTest.class);
 		return new GitBlitSuite(suite);
 	}
-	
+
 	public static Repository getHelloworldRepository() throws Exception {
 		return new FileRepository(new File(REPOSITORIES, "helloworld.git"));
 	}
@@ -39,6 +63,11 @@
 			cloneOrFetch("nested/helloworld.git", "https://github.com/git/hello-world.git", true);
 			cloneOrFetch("ticgit.git", "https://github.com/jeffWelling/ticgit.git", true);
 		}
+		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);
 	}
 
 	private void cloneOrFetch(String toFolder, String fromUrl, boolean bare) throws Exception {

--
Gitblit v1.9.1