Skip to content

Commit

Permalink
SYMMETRICDS-280 - Added some verification unit tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
chenson42 committed Jun 4, 2010
1 parent bd403b6 commit 57598b2
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
Expand Up @@ -35,6 +35,7 @@
import org.jumpmind.symmetric.db.mysql.MySqlDbDialect;
import org.jumpmind.symmetric.db.oracle.OracleDbDialect;
import org.jumpmind.symmetric.db.postgresql.PostgreSqlDbDialect;
import org.jumpmind.symmetric.load.csv.CsvLoader;
import org.jumpmind.symmetric.test.TestConstants;
import org.jumpmind.symmetric.transport.TransportUtils;
import org.junit.Assert;
Expand All @@ -47,6 +48,12 @@ public class DataLoaderTest extends AbstractDataLoaderTest {
public DataLoaderTest() throws Exception {
}

@Test
public void verifyProxyInterface() {
IDataLoader service = getDataLoader();
Assert.assertNotSame(CsvLoader.class, service.getClass());
}

@Test
public void testInsertExisting() throws Exception {
String[] values = { getNextId(), "string2", "string not null2", "char2", "char not null2",
Expand Down
Expand Up @@ -37,6 +37,7 @@
import org.jumpmind.symmetric.load.AbstractDataLoaderTest;
import org.jumpmind.symmetric.model.IncomingBatch;
import org.jumpmind.symmetric.model.Node;
import org.jumpmind.symmetric.service.IDataLoaderService;
import org.jumpmind.symmetric.service.IParameterService;
import org.jumpmind.symmetric.test.TestConstants;
import org.jumpmind.symmetric.transport.internal.InternalIncomingTransport;
Expand All @@ -53,6 +54,12 @@ public DataLoaderServiceTest() throws Exception {
super();
}

@Test
public void verifyProxyInterface() {
IDataLoaderService service = getSymmetricEngine().getDataLoaderService();
Assert.assertNotSame(DataLoaderService.class, service.getClass());
}

@Test
public void testIncomingBatch() throws Exception {
String[] insertValues = new String[TEST_COLUMNS.length];
Expand Down
Expand Up @@ -7,6 +7,7 @@

import org.jumpmind.symmetric.ext.IHeartbeatListener;
import org.jumpmind.symmetric.model.Node;
import org.jumpmind.symmetric.service.IDataService;
import org.jumpmind.symmetric.test.AbstractDatabaseTest;
import org.jumpmind.symmetric.util.AppUtils;
import org.junit.Test;
Expand All @@ -17,6 +18,12 @@ public DataServiceTest() throws Exception {
super();
}

@Test
public void verifyProxyInterface() {
IDataService service = getSymmetricEngine().getDataService();
Assert.assertNotSame(DataLoaderService.class, service.getClass());
}

@Test
public void testGetHeartbeatListeners() throws Exception {
DataService ds = new DataService();
Expand Down

0 comments on commit 57598b2

Please sign in to comment.