-->\r
<target name="test" depends="compile" description="compiles Gitblit from source and runs unit tests">\r
\r
+ <!-- Generate the HelloworldKeys class from the hello-world.properties file -->\r
+ <mx:keys propertiesfile="${basedir}/src/test/data/hello-world.properties"\r
+ outputclass="com.gitblit.tests.HelloworldKeys"\r
+ todir="${basedir}/src/test/java" />\r
+\r
<!-- Compile unit tests -->\r
<mx:javac scope="test" />\r
\r
--- /dev/null
+commit.first=192cdede1cc81da7b393aeb7aba9f88998b04713
+commit.second=8caad51
+commit.fifth=55f6796044dc51f0bb9301f07920f0fb64c3d12c
+commit.fifteen=5ebfaca
+commit.added=192cded
+commit.changed=b2c50ce
+commit.deleted=8613bee10bde27a0fbaca66447cdc3f0f9483365
+users.byEmail=9
+users.byName=8
--- /dev/null
+/HelloworldKeys.java
public void testParentCommitDiff() throws Exception {\r
Repository repository = GitBlitSuite.getHelloworldRepository();\r
RevCommit commit = JGitUtils.getCommit(repository,\r
- "1d0c2933a4ae69c362f76797d42d6bd182d05176");\r
+ GitBlitSuite.helloworldSettings.getRequiredString(HelloworldKeys.commit.second));\r
String diff = DiffUtils.getCommitDiff(repository, commit, DiffComparator.SHOW_WHITESPACE, DiffOutputType.PLAIN, 3).content;\r
repository.close();\r
assertTrue(diff != null && diff.length() > 0);\r
public void testArbitraryCommitDiff() throws Exception {\r
Repository repository = GitBlitSuite.getHelloworldRepository();\r
RevCommit baseCommit = JGitUtils.getCommit(repository,\r
- "8baf6a833b5579384d9b9ceb8a16b5d0ea2ec4ca");\r
+ GitBlitSuite.helloworldSettings.getRequiredString(HelloworldKeys.commit.first));\r
RevCommit commit = JGitUtils.getCommit(repository,\r
- "1d0c2933a4ae69c362f76797d42d6bd182d05176");\r
+ GitBlitSuite.helloworldSettings.getRequiredString(HelloworldKeys.commit.second));\r
String diff = DiffUtils.getDiff(repository, baseCommit, commit, DiffComparator.SHOW_WHITESPACE, DiffOutputType.PLAIN, 3).content;\r
repository.close();\r
assertTrue(diff != null && diff.length() > 0);\r
public void testPlainFileDiff() throws Exception {\r
Repository repository = GitBlitSuite.getHelloworldRepository();\r
RevCommit commit = JGitUtils.getCommit(repository,\r
- "1d0c2933a4ae69c362f76797d42d6bd182d05176");\r
+ GitBlitSuite.helloworldSettings.getRequiredString(HelloworldKeys.commit.second));\r
String diff = DiffUtils.getDiff(repository, commit, "java.java", DiffComparator.SHOW_WHITESPACE, DiffOutputType.PLAIN, 3).content;\r
repository.close();\r
assertTrue(diff != null && diff.length() > 0);\r
public void testFilePatch() throws Exception {\r
Repository repository = GitBlitSuite.getHelloworldRepository();\r
RevCommit commit = JGitUtils.getCommit(repository,\r
- "1d0c2933a4ae69c362f76797d42d6bd182d05176");\r
+ GitBlitSuite.helloworldSettings.getRequiredString(HelloworldKeys.commit.second));\r
String patch = DiffUtils.getCommitPatch(repository, null, commit, "java.java");\r
repository.close();\r
assertTrue(patch != null && patch.length() > 0);\r
public void testArbitraryFilePatch() throws Exception {\r
Repository repository = GitBlitSuite.getHelloworldRepository();\r
RevCommit baseCommit = JGitUtils.getCommit(repository,\r
- "8baf6a833b5579384d9b9ceb8a16b5d0ea2ec4ca");\r
+ GitBlitSuite.helloworldSettings.getRequiredString(HelloworldKeys.commit.first));\r
RevCommit commit = JGitUtils.getCommit(repository,\r
- "1d0c2933a4ae69c362f76797d42d6bd182d05176");\r
+ GitBlitSuite.helloworldSettings.getRequiredString(HelloworldKeys.commit.second));\r
String patch = DiffUtils.getCommitPatch(repository, baseCommit, commit, "java.java");\r
repository.close();\r
assertTrue(patch != null && patch.length() > 0);\r
public void testArbitraryCommitPatch() throws Exception {\r
Repository repository = GitBlitSuite.getHelloworldRepository();\r
RevCommit baseCommit = JGitUtils.getCommit(repository,\r
- "8baf6a833b5579384d9b9ceb8a16b5d0ea2ec4ca");\r
+ GitBlitSuite.helloworldSettings.getRequiredString(HelloworldKeys.commit.first));\r
RevCommit commit = JGitUtils.getCommit(repository,\r
- "1d0c2933a4ae69c362f76797d42d6bd182d05176");\r
+ GitBlitSuite.helloworldSettings.getRequiredString(HelloworldKeys.commit.second));\r
String patch = DiffUtils.getCommitPatch(repository, baseCommit, commit, null);\r
repository.close();\r
assertTrue(patch != null && patch.length() > 0);\r
public void testBlame() throws Exception {\r
Repository repository = GitBlitSuite.getHelloworldRepository();\r
List<AnnotatedLine> lines = DiffUtils.blame(repository, "java.java",\r
- "1d0c2933a4ae69c362f76797d42d6bd182d05176");\r
+ GitBlitSuite.helloworldSettings.getRequiredString(HelloworldKeys.commit.second));\r
repository.close();\r
assertTrue(lines.size() > 0);\r
- assertEquals("c6d31dccf5cc75e8e46299fc62d38f60ec6d41e0", lines.get(0).commitId);\r
+ assertEquals(GitBlitSuite.helloworldSettings.getRequiredString(HelloworldKeys.commit.first), lines.get(0).commitId);\r
}\r
}\r
package com.gitblit.tests;\r
\r
import java.io.File;\r
+import java.io.FileInputStream;\r
+import java.io.FileOutputStream;\r
+import java.io.IOException;\r
import java.lang.reflect.Field;\r
import java.util.concurrent.Executors;\r
import java.util.concurrent.atomic.AtomicBoolean;\r
import java.util.concurrent.atomic.AtomicInteger;\r
+import java.util.zip.ZipEntry;\r
+import java.util.zip.ZipInputStream;\r
\r
import org.eclipse.jgit.api.Git;\r
import org.eclipse.jgit.lib.Repository;\r
import org.eclipse.jgit.lib.RepositoryCache.FileKey;\r
import org.eclipse.jgit.storage.file.FileRepositoryBuilder;\r
import org.eclipse.jgit.util.FS;\r
+import org.eclipse.jgit.util.FileUtils;\r
import org.junit.AfterClass;\r
import org.junit.BeforeClass;\r
import org.junit.runner.RunWith;\r
import org.junit.runners.Suite;\r
import org.junit.runners.Suite.SuiteClasses;\r
\r
+import com.gitblit.FileSettings;\r
import com.gitblit.GitBlitException;\r
import com.gitblit.GitBlitServer;\r
import com.gitblit.manager.IRepositoryManager;\r
\r
public static final File USERSCONF = new File("src/test/config/test-users.conf");\r
\r
+ private static final File AMBITION_REPO_SOURCE = new File("src/test/data/ambition.git");\r
+\r
+ private static final File TICGIT_REPO_SOURCE = new File("src/test/data/ticgit.git");\r
+\r
+ private static final File GITECTIVE_REPO_SOURCE = new File("src/test/data/gitective.git");\r
+\r
+ private static final File HELLOWORLD_REPO_SOURCE = new File("src/test/data/hello-world.git");\r
+\r
+ private static final File HELLOWORLD_REPO_PROPERTIES = new File("src/test/data/hello-world.properties");\r
+\r
+ public static final FileSettings helloworldSettings = new FileSettings(HELLOWORLD_REPO_PROPERTIES.getAbsolutePath());\r
+\r
static int port = 8280;\r
static int gitPort = 8300;\r
static int shutdownPort = 8281;\r
Thread.sleep(5000);\r
}\r
\r
+ public static void deleteRefChecksFolder() throws IOException {\r
+ File refChecks = new File(GitBlitSuite.REPOSITORIES, "refchecks");\r
+ if (refChecks.exists()) {\r
+ FileUtils.delete(refChecks, FileUtils.RECURSIVE | FileUtils.RETRY);\r
+ }\r
+ }\r
+\r
@BeforeClass\r
public static void setUp() throws Exception {\r
+ //"refchecks" folder is used in GitServletTest;\r
+ //need be deleted before Gitblit server instance is started\r
+ deleteRefChecksFolder();\r
startGitblit();\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/schacon/ticgit.git");\r
+ if (!HELLOWORLD_REPO_SOURCE.exists()) {\r
+ unzipRepository(HELLOWORLD_REPO_SOURCE.getPath() + ".zip", HELLOWORLD_REPO_SOURCE.getParentFile());\r
+ }\r
+ if (!TICGIT_REPO_SOURCE.exists()) {\r
+ unzipRepository(TICGIT_REPO_SOURCE.getPath() + ".zip", TICGIT_REPO_SOURCE.getParentFile());\r
+ }\r
+ if (!AMBITION_REPO_SOURCE.exists()) {\r
+ unzipRepository(AMBITION_REPO_SOURCE.getPath() + ".zip", AMBITION_REPO_SOURCE.getParentFile());\r
+ }\r
+ if (!GITECTIVE_REPO_SOURCE.exists()) {\r
+ unzipRepository(GITECTIVE_REPO_SOURCE.getPath() + ".zip", GITECTIVE_REPO_SOURCE.getParentFile());\r
+ }\r
+ cloneOrFetch("helloworld.git", HELLOWORLD_REPO_SOURCE.getAbsolutePath());\r
+ cloneOrFetch("ticgit.git", TICGIT_REPO_SOURCE.getAbsolutePath());\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
- cloneOrFetch("test/gitective.git", "https://github.com/kevinsawicki/gitective.git");\r
+ cloneOrFetch("test/helloworld.git", HELLOWORLD_REPO_SOURCE.getAbsolutePath());\r
+ cloneOrFetch("test/ambition.git", AMBITION_REPO_SOURCE.getAbsolutePath());\r
+ cloneOrFetch("test/gitective.git", GITECTIVE_REPO_SOURCE.getAbsolutePath());\r
\r
showRemoteBranches("ticgit.git");\r
automaticallyTagBranchTips("ticgit.git");\r
r.close();\r
}\r
}\r
+\r
+ private static void unzipRepository(String zippedRepo, File destDir) throws IOException {\r
+ System.out.print("Unzipping " + zippedRepo + "... ");\r
+ if (!destDir.exists()) {\r
+ destDir.mkdir();\r
+ }\r
+ byte[] buffer = new byte[1024];\r
+ ZipInputStream zis = new ZipInputStream(new FileInputStream(zippedRepo));\r
+ ZipEntry zipEntry = zis.getNextEntry();\r
+ while (zipEntry != null) {\r
+ File newFile = newFile(destDir, zipEntry);\r
+ if (zipEntry.isDirectory()) {\r
+ newFile.mkdirs();\r
+ }\r
+ else {\r
+ FileOutputStream fos = new FileOutputStream(newFile);\r
+ int len;\r
+ while ((len = zis.read(buffer)) > 0) {\r
+ fos.write(buffer, 0, len);\r
+ }\r
+ fos.close();\r
+ }\r
+ zipEntry = zis.getNextEntry();\r
+ }\r
+ zis.closeEntry();\r
+ zis.close(); \r
+ System.out.println("done.");\r
+ }\r
+\r
+ private static File newFile(File destinationDir, ZipEntry zipEntry) throws IOException {\r
+ File destFile = new File(destinationDir, zipEntry.getName());\r
+\r
+ String destDirPath = destinationDir.getCanonicalPath();\r
+ String destFilePath = destFile.getCanonicalPath();\r
+ //guards against writing files to the file system outside of the target folder\r
+ //to prevent Zip Slip exploit\r
+ if (!destFilePath.startsWith(destDirPath + File.separator)) {\r
+ throw new IOException("Entry is outside of the target dir: " + zipEntry.getName());\r
+ }\r
+\r
+ return destFile;\r
+ }\r
+\r
}\r
MockClientLogger clientLogger = new MockClientLogger();\r
List<ReceiveCommand> commands = new ArrayList<ReceiveCommand>();\r
commands.add(new ReceiveCommand(ObjectId\r
- .fromString("c18877690322dfc6ae3e37bb7f7085a24e94e887"), ObjectId\r
- .fromString("3fa7c46d11b11d61f1cbadc6888be5d0eae21969"), "refs/heads/master"));\r
+ .fromString(GitBlitSuite.helloworldSettings.getRequiredString(HelloworldKeys.commit.fifth)), ObjectId\r
+ .fromString(GitBlitSuite.helloworldSettings.getRequiredString(HelloworldKeys.commit.deleted)), "refs/heads/master"));\r
commands.add(new ReceiveCommand(ObjectId\r
- .fromString("c18877690322dfc6ae3e37bb7f7085a24e94e887"), ObjectId\r
- .fromString("3fa7c46d11b11d61f1cbadc6888be5d0eae21969"), "refs/heads/master2"));\r
+ .fromString(GitBlitSuite.helloworldSettings.getRequiredString(HelloworldKeys.commit.fifth)), ObjectId\r
+ .fromString(GitBlitSuite.helloworldSettings.getRequiredString(HelloworldKeys.commit.deleted)), "refs/heads/master2"));\r
\r
RepositoryModel repository = repositories().getRepositoryModel("helloworld.git");\r
repository.customFields = new HashMap<String,String>();\r
MockClientLogger clientLogger = new MockClientLogger();\r
List<ReceiveCommand> commands = new ArrayList<ReceiveCommand>();\r
commands.add(new ReceiveCommand(ObjectId\r
- .fromString("c18877690322dfc6ae3e37bb7f7085a24e94e887"), ObjectId\r
- .fromString("3fa7c46d11b11d61f1cbadc6888be5d0eae21969"), "refs/heads/master"));\r
+ .fromString(GitBlitSuite.helloworldSettings.getRequiredString(HelloworldKeys.commit.fifth)), ObjectId\r
+ .fromString(GitBlitSuite.helloworldSettings.getRequiredString(HelloworldKeys.commit.deleted)), "refs/heads/master"));\r
commands.add(new ReceiveCommand(ObjectId\r
- .fromString("c18877690322dfc6ae3e37bb7f7085a24e94e887"), ObjectId\r
- .fromString("3fa7c46d11b11d61f1cbadc6888be5d0eae21969"), "refs/heads/master2"));\r
+ .fromString(GitBlitSuite.helloworldSettings.getRequiredString(HelloworldKeys.commit.fifth)), ObjectId\r
+ .fromString(GitBlitSuite.helloworldSettings.getRequiredString(HelloworldKeys.commit.deleted)), "refs/heads/master2"));\r
\r
RepositoryModel repository = repositories().getRepositoryModel("helloworld.git");\r
repository.mailingLists.add("list@helloworld.git");\r
MockClientLogger clientLogger = new MockClientLogger();\r
List<ReceiveCommand> commands = new ArrayList<ReceiveCommand>();\r
commands.add(new ReceiveCommand(ObjectId\r
- .fromString("c18877690322dfc6ae3e37bb7f7085a24e94e887"), ObjectId\r
- .fromString("3fa7c46d11b11d61f1cbadc6888be5d0eae21969"), "refs/heads/master"));\r
+ .fromString(GitBlitSuite.helloworldSettings.getRequiredString(HelloworldKeys.commit.fifth)), ObjectId\r
+ .fromString(GitBlitSuite.helloworldSettings.getRequiredString(HelloworldKeys.commit.deleted)), "refs/heads/master"));\r
commands.add(new ReceiveCommand(ObjectId\r
- .fromString("c18877690322dfc6ae3e37bb7f7085a24e94e887"), ObjectId\r
- .fromString("3fa7c46d11b11d61f1cbadc6888be5d0eae21969"), "refs/heads/master2"));\r
+ .fromString(GitBlitSuite.helloworldSettings.getRequiredString(HelloworldKeys.commit.fifth)), ObjectId\r
+ .fromString(GitBlitSuite.helloworldSettings.getRequiredString(HelloworldKeys.commit.deleted)), "refs/heads/master2"));\r
\r
RepositoryModel repository = repositories().getRepositoryModel("helloworld.git");\r
repository.mailingLists.add("list@helloworld.git");\r
MockClientLogger clientLogger = new MockClientLogger();\r
List<ReceiveCommand> commands = new ArrayList<ReceiveCommand>();\r
commands.add(new ReceiveCommand(ObjectId.zeroId(), ObjectId\r
- .fromString("3fa7c46d11b11d61f1cbadc6888be5d0eae21969"), "refs/heads/master"));\r
+ .fromString(GitBlitSuite.helloworldSettings.getRequiredString(HelloworldKeys.commit.deleted)), "refs/heads/master"));\r
\r
RepositoryModel repository = new RepositoryModel("ex@mple.git", "", "admin", new Date());\r
\r
MockClientLogger clientLogger = new MockClientLogger();\r
List<ReceiveCommand> commands = new ArrayList<ReceiveCommand>();\r
commands.add(new ReceiveCommand(ObjectId.zeroId(), ObjectId\r
- .fromString("3fa7c46d11b11d61f1cbadc6888be5d0eae21969"), "refs/tags/v1.0"));\r
+ .fromString(GitBlitSuite.helloworldSettings.getRequiredString(HelloworldKeys.commit.deleted)), "refs/tags/v1.0"));\r
\r
RepositoryModel repository = new RepositoryModel("ex@mple.git", "", "admin", new Date());\r
\r
MockClientLogger clientLogger = new MockClientLogger();\r
List<ReceiveCommand> commands = new ArrayList<ReceiveCommand>();\r
commands.add(new ReceiveCommand(ObjectId\r
- .fromString("c18877690322dfc6ae3e37bb7f7085a24e94e887"), ObjectId\r
- .fromString("3fa7c46d11b11d61f1cbadc6888be5d0eae21969"), "refs/heads/master"));\r
+ .fromString(GitBlitSuite.helloworldSettings.getRequiredString(HelloworldKeys.commit.fifth)), ObjectId\r
+ .fromString(GitBlitSuite.helloworldSettings.getRequiredString(HelloworldKeys.commit.deleted)), "refs/heads/master"));\r
\r
RepositoryModel repository = new RepositoryModel("ex@mple.git", "", "admin", new Date());\r
\r
MockClientLogger clientLogger = new MockClientLogger();\r
List<ReceiveCommand> commands = new ArrayList<ReceiveCommand>();\r
ReceiveCommand command = new ReceiveCommand(ObjectId\r
- .fromString("3fa7c46d11b11d61f1cbadc6888be5d0eae21969"), ObjectId.zeroId(),\r
+ .fromString(GitBlitSuite.helloworldSettings.getRequiredString(HelloworldKeys.commit.deleted)), ObjectId.zeroId(),\r
"refs/heads/master");\r
commands.add(command);\r
\r
MockClientLogger clientLogger = new MockClientLogger();\r
List<ReceiveCommand> commands = new ArrayList<ReceiveCommand>();\r
commands.add(new ReceiveCommand(ObjectId\r
- .fromString("3fa7c46d11b11d61f1cbadc6888be5d0eae21969"), ObjectId.zeroId(),\r
+ .fromString(GitBlitSuite.helloworldSettings.getRequiredString(HelloworldKeys.commit.deleted)), ObjectId.zeroId(),\r
"refs/heads/other"));\r
\r
RepositoryModel repository = new RepositoryModel("ex@mple.git", "", "admin", new Date());\r
MockClientLogger clientLogger = new MockClientLogger();\r
List<ReceiveCommand> commands = new ArrayList<ReceiveCommand>();\r
ReceiveCommand command = new ReceiveCommand(ObjectId\r
- .fromString("3fa7c46d11b11d61f1cbadc6888be5d0eae21969"), ObjectId.zeroId(),\r
+ .fromString(GitBlitSuite.helloworldSettings.getRequiredString(HelloworldKeys.commit.deleted)), ObjectId.zeroId(),\r
"refs/tags/v1.0");\r
commands.add(command);\r
\r
MockClientLogger clientLogger = new MockClientLogger();\r
List<ReceiveCommand> commands = new ArrayList<ReceiveCommand>();\r
commands.add(new ReceiveCommand(ObjectId\r
- .fromString("c18877690322dfc6ae3e37bb7f7085a24e94e887"), ObjectId\r
- .fromString("3fa7c46d11b11d61f1cbadc6888be5d0eae21969"), "refs/heads/master"));\r
+ .fromString(GitBlitSuite.helloworldSettings.getRequiredString(HelloworldKeys.commit.fifth)), ObjectId\r
+ .fromString(GitBlitSuite.helloworldSettings.getRequiredString(HelloworldKeys.commit.deleted)), "refs/heads/master"));\r
\r
RepositoryModel repository = new RepositoryModel("ex@mple.git", "", "admin", new Date());\r
\r
MockClientLogger clientLogger = new MockClientLogger();\r
List<ReceiveCommand> commands = new ArrayList<ReceiveCommand>();\r
commands.add(new ReceiveCommand(ObjectId\r
- .fromString("c18877690322dfc6ae3e37bb7f7085a24e94e887"), ObjectId\r
- .fromString("3fa7c46d11b11d61f1cbadc6888be5d0eae21969"), "refs/heads/master"));\r
+ .fromString(GitBlitSuite.helloworldSettings.getRequiredString(HelloworldKeys.commit.fifth)), ObjectId\r
+ .fromString(GitBlitSuite.helloworldSettings.getRequiredString(HelloworldKeys.commit.deleted)), "refs/heads/master"));\r
\r
RepositoryModel repository = new RepositoryModel("ex@mple.git", "", "admin", new Date());\r
\r
Date firstChange = JGitUtils.getFirstChange(repository, null);\r
repository.close();\r
assertNotNull("Could not get first commit!", commit);\r
- assertEquals("Incorrect first commit!", "f554664a346629dc2b839f7292d06bad2db4aece",\r
+ assertEquals("Incorrect first commit!",\r
+ GitBlitSuite.helloworldSettings.getRequiredString(HelloworldKeys.commit.first),\r
commit.getName());\r
assertTrue(firstChange.equals(new Date(commit.getCommitTime() * 1000L)));\r
}\r
public void testFilesInCommit() throws Exception {\r
Repository repository = GitBlitSuite.getHelloworldRepository();\r
RevCommit commit = JGitUtils.getCommit(repository,\r
- "1d0c2933a4ae69c362f76797d42d6bd182d05176");\r
+ GitBlitSuite.helloworldSettings.getRequiredString(HelloworldKeys.commit.fifteen));\r
List<PathChangeModel> paths = JGitUtils.getFilesInCommit(repository, commit);\r
\r
- commit = JGitUtils.getCommit(repository, "af0e9b2891fda85afc119f04a69acf7348922830");\r
+ commit = JGitUtils.getCommit(repository, GitBlitSuite.helloworldSettings.getRequiredString(HelloworldKeys.commit.deleted));\r
List<PathChangeModel> deletions = JGitUtils.getFilesInCommit(repository, commit);\r
\r
commit = JGitUtils.getFirstCommit(repository, null);\r
public void testRevLogRange() throws Exception {\r
Repository repository = GitBlitSuite.getHelloworldRepository();\r
List<RevCommit> commits = JGitUtils.getRevLog(repository,\r
- "fbd14fa6d1a01d4aefa1fca725792683800fc67e",\r
- "85a0e4087b8439c0aa6b1f4f9e08c26052ab7e87");\r
+ GitBlitSuite.helloworldSettings.getRequiredString(HelloworldKeys.commit.second),\r
+ GitBlitSuite.helloworldSettings.getRequiredString(HelloworldKeys.commit.fifteen));\r
repository.close();\r
assertEquals(14, commits.size());\r
}\r
List<Metric> byEmail = MetricUtils.getAuthorMetrics(repository, null, true);\r
List<Metric> byName = MetricUtils.getAuthorMetrics(repository, null, false);\r
repository.close();\r
- assertEquals("No author metrics found!", 9, byEmail.size());\r
- assertEquals("No author metrics found!", 8, byName.size());\r
+ assertEquals("No author metrics found!", GitBlitSuite.helloworldSettings.getInteger(HelloworldKeys.users.byEmail, -1), byEmail.size());\r
+ assertEquals("No author metrics found!", GitBlitSuite.helloworldSettings.getInteger(HelloworldKeys.users.byName, -1), byName.size());\r
}\r
}
\ No newline at end of file