mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-12 00:15:44 +01:00
skip mercurial unit tests if HgRepositoryHandler is not configured
This commit is contained in:
@@ -37,7 +37,6 @@ package sonia.scm.repository;
|
|||||||
|
|
||||||
import sonia.scm.io.DefaultFileSystem;
|
import sonia.scm.io.DefaultFileSystem;
|
||||||
import sonia.scm.store.StoreFactory;
|
import sonia.scm.store.StoreFactory;
|
||||||
import sonia.scm.util.Util;
|
|
||||||
|
|
||||||
import static org.junit.Assert.*;
|
import static org.junit.Assert.*;
|
||||||
import static org.junit.Assume.*;
|
import static org.junit.Assume.*;
|
||||||
@@ -94,7 +93,7 @@ public class HgRepositoryHandlerTest extends SimpleRepositoryHandlerTestBase
|
|||||||
handler.getConfig().setRepositoryDirectory(directory);
|
handler.getConfig().setRepositoryDirectory(directory);
|
||||||
|
|
||||||
// skip tests if hg not in path
|
// 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");
|
System.out.println("WARNING could not find hg, skipping test");
|
||||||
assumeTrue(false);
|
assumeTrue(false);
|
||||||
|
|||||||
@@ -35,7 +35,6 @@ package sonia.scm.web.cgi;
|
|||||||
|
|
||||||
//~--- non-JDK imports --------------------------------------------------------
|
//~--- non-JDK imports --------------------------------------------------------
|
||||||
|
|
||||||
import java.util.logging.Level;
|
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user