Skip to content

Commit

Permalink
better debugging when running unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
chenson42 committed Nov 5, 2012
1 parent cefa36b commit f8b9033
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
Expand Up @@ -53,7 +53,7 @@ protected static ISymmetricEngine prepareRoot(String sql) {

public static IDatabasePlatform dropDatabaseTables(String databaseType, ISymmetricEngine engine) {

engine.uninstall();
engine.uninstall();

ISymmetricDialect dialect = engine.getSymmetricDialect();

Expand Down
3 changes: 2 additions & 1 deletion symmetric-client/src/test/resources/log4j.xml
Expand Up @@ -23,7 +23,6 @@
<category name="org.jumpmind.symmetric.io.data.writer">
<priority value="DEBUG" />
</category>
-->
<category name="org.jumpmind.db.alter">
<priority value="DEBUG" />
Expand All @@ -32,6 +31,8 @@
<category name="org.jumpmind.symmetric.io.data.writer.DefaultDatabaseWriterConflictResolver">
<priority value="DEBUG" />
</category>
-->

<category name="org.jumpmind.symmetric.ClientSymmetricEngine$PropertiesFactoryBean">
<priority value="ERROR" />
Expand Down
Expand Up @@ -114,7 +114,7 @@ abstract public class AbstractSymmetricEngine implements ISymmetricEngine {

protected ISecurityService securityService;

protected IParameterService parameterService;
protected ParameterService parameterService;

protected ISymmetricDialect symmetricDialect;

Expand Down Expand Up @@ -506,6 +506,9 @@ public synchronized boolean start(boolean startJobs) {


public synchronized void uninstall() {

log.warn("Attempting an uninstall of all SymmetricDS database objects from the database");

stop();

try {
Expand All @@ -532,6 +535,10 @@ public synchronized void uninstall() {

symmetricDialect.dropTablesAndDatabaseObjects();

parameterService.setDatabaseHasBeenInitialized(false);

log.warn("Finished uninstalling SymmetricDS database objects from the database");

}

public synchronized void stop() {
Expand Down

0 comments on commit f8b9033

Please sign in to comment.