From 3ff35a30aaa86a23e282f623da77fd35d5372d27 Mon Sep 17 00:00:00 2001 From: Rick Balsano Date: Wed, 5 Feb 2014 18:39:32 -0500 Subject: [PATCH] Always clear migration.factory property. --- .../util/migration/DistributedAutoPatchRollbackTest.java | 4 ++++ .../jdbc/DistributedJdbcMigrationLauncherFactoryTest.java | 1 + 2 files changed, 5 insertions(+) diff --git a/src/test/java/com/tacitknowledge/util/migration/DistributedAutoPatchRollbackTest.java b/src/test/java/com/tacitknowledge/util/migration/DistributedAutoPatchRollbackTest.java index 0bcb602..2addcf3 100644 --- a/src/test/java/com/tacitknowledge/util/migration/DistributedAutoPatchRollbackTest.java +++ b/src/test/java/com/tacitknowledge/util/migration/DistributedAutoPatchRollbackTest.java @@ -140,6 +140,10 @@ protected void setUp() throws Exception currentPatchInfoStore = MockBuilder.getPatchInfoStore(12); } + protected void tearDown() throws Exception { + System.clearProperty("migration.factory"); + super.tearDown(); + } /** * Make sure that the task loading works correctly * diff --git a/src/test/java/com/tacitknowledge/util/migration/jdbc/DistributedJdbcMigrationLauncherFactoryTest.java b/src/test/java/com/tacitknowledge/util/migration/jdbc/DistributedJdbcMigrationLauncherFactoryTest.java index 971f280..9b8c693 100644 --- a/src/test/java/com/tacitknowledge/util/migration/jdbc/DistributedJdbcMigrationLauncherFactoryTest.java +++ b/src/test/java/com/tacitknowledge/util/migration/jdbc/DistributedJdbcMigrationLauncherFactoryTest.java @@ -96,6 +96,7 @@ protected void setUp() throws Exception */ protected void tearDown() throws Exception { + System.clearProperty("migration.factory"); super.tearDown(); }