Skip to content
Snippets Groups Projects
Commit 33ab49e6 authored by felmer's avatar felmer
Browse files

make tests more robust

parent e939346a
No related branches found
No related tags found
No related merge requests found
......@@ -12,6 +12,7 @@ import org.testng.annotations.Test;
import ch.systemsx.cisd.common.logging.BufferedAppender;
import ch.systemsx.cisd.common.spring.ExposablePropertyPlaceholderConfigurer;
import ch.systemsx.cisd.openbis.generic.shared.Constants;
import ch.systemsx.cisd.openbis.util.LogRecordingUtils;
//@Test(groups = "db")
public class DAOFactoryTest extends AbstractDAOTest
......@@ -24,7 +25,7 @@ public class DAOFactoryTest extends AbstractDAOTest
@BeforeMethod
public void setUpLogRecorder()
{
logRecorder = new BufferedAppender(null, Level.INFO, ".*\\." + DAOFactory.class.getSimpleName());
logRecorder = LogRecordingUtils.createRecorder(null, Level.INFO, ".*\\." + DAOFactory.class.getSimpleName());
}
@Test(priority = -1, groups = "project-samples")
......
......@@ -38,6 +38,7 @@ import org.testng.annotations.Test;
import ch.systemsx.cisd.common.logging.BufferedAppender;
import ch.systemsx.cisd.openbis.generic.shared.dto.SamplePE;
import ch.systemsx.cisd.openbis.util.LogRecordingUtils;
/**
* @author Franz-Josef Elmer
......@@ -65,7 +66,7 @@ public class DefaultFullTextIndexerTest extends AssertJUnit
@BeforeMethod
public final void setUp()
{
logRecorder = new BufferedAppender("%-5p %c - %m%n", Level.INFO);
logRecorder = LogRecordingUtils.createRecorder("%-5p %c - %m%n", Level.INFO);
context = new Mockery();
criteria = context.mock(Criteria.class);
session = context.mock(FullTextSession.class);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment