*/\r
package com.gitblit.tests;\r
\r
+import java.io.File;\r
import java.util.List;\r
\r
import org.eclipse.jgit.lib.Repository;\r
import com.gitblit.FileSettings;\r
import com.gitblit.models.RepositoryModel;\r
import com.gitblit.models.UserModel;\r
+import com.gitblit.utils.FileUtils;\r
\r
public class GitBlitTest extends GitblitUnitTest {\r
\r
assertEquals(5, settings().getInteger("realm.userService", 5));\r
\r
assertTrue(settings().getBoolean("git.enableGitServlet", false));\r
- assertEquals("src/test/config/test-users.conf", settings().getString("realm.userService", null));\r
+ File userDir = new File(System.getProperty("user.dir"));\r
+ File userService = new File(settings().getString("realm.userService", null));\r
+ assertEquals("src/test/config/test-users.conf", FileUtils.getRelativePath(userDir, userService));\r
assertEquals(5, settings().getInteger("realm.minPasswordLength", 0));\r
List<String> mdExtensions = settings().getStrings("web.markdownExtensions");\r
assertTrue(mdExtensions.size() > 0);\r