skip mercurial unit tests if HgRepositoryHandler is not configured

This commit is contained in:
Sebastian Sdorra
2011-05-04 08:11:53 +02:00
parent dca48497c2
commit ff7e01a4dc
2 changed files with 1 additions and 3 deletions

View File

@@ -37,7 +37,6 @@ package sonia.scm.repository;
import sonia.scm.io.DefaultFileSystem;
import sonia.scm.store.StoreFactory;
import sonia.scm.util.Util;
import static org.junit.Assert.*;
import static org.junit.Assume.*;
@@ -94,7 +93,7 @@ public class HgRepositoryHandlerTest extends SimpleRepositoryHandlerTestBase
handler.getConfig().setRepositoryDirectory(directory);
// skip tests if hg not in path
if (Util.isEmpty(handler.getConfig().getHgBinary()))
if (! handler.isConfigured())
{
System.out.println("WARNING could not find hg, skipping test");
assumeTrue(false);

View File

@@ -35,7 +35,6 @@ package sonia.scm.web.cgi;
//~--- non-JDK imports --------------------------------------------------------
import java.util.logging.Level;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;