Skip to content

Commit

Permalink
clean up history before running history test
Browse files Browse the repository at this point in the history
  • Loading branch information
chenson42 committed Jan 23, 2008
1 parent 3bf084e commit 4bebf49
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
Expand Up @@ -85,6 +85,8 @@ public class Constants {

public static final String OUTGOING_BATCH_SERVICE = "outgoingBatchService";

public static final String OUTGOING_BATCH_HISTORY_SERVICE = "outgoingBatchHistoryService";

public static final String PURGE_SERVICE = "purgeService";

public static final String JDBC = "jdbcTemplate";
Expand Down
Expand Up @@ -26,7 +26,9 @@
import java.sql.Statement;

import org.jumpmind.symmetric.AbstractDatabaseTest;
import org.jumpmind.symmetric.common.Constants;
import org.jumpmind.symmetric.service.IOutgoingBatchHistoryService;
import org.jumpmind.symmetric.service.IPurgeService;
import org.springframework.dao.DataAccessException;
import org.springframework.jdbc.core.ConnectionCallback;
import org.testng.Assert;
Expand All @@ -36,16 +38,19 @@
public class OutgoingBatchHistoryServiceTest extends AbstractDatabaseTest
{
private IOutgoingBatchHistoryService historyService;
private IPurgeService purgeService;

@BeforeTest(groups="continuous")
protected void setUp() {
historyService = (IOutgoingBatchHistoryService) getBeanFactory().getBean("outgoingBatchHistoryService");
historyService = (IOutgoingBatchHistoryService) getBeanFactory().getBean(Constants.OUTGOING_BATCH_HISTORY_SERVICE);
purgeService = (IPurgeService) getBeanFactory().getBean(Constants.PURGE_SERVICE);
cleanSlate("sym_outgoing_batch_hist");
}

@Test(groups="continuous")
public void test()
{
{
purgeService.purge();
historyService.created(1, 5);
historyService.sent(1);
historyService.ok(1);
Expand Down

0 comments on commit 4bebf49

Please sign in to comment.