Skip to content

Commit

Permalink
Issue #1547 - reset config and tenant after test
Browse files Browse the repository at this point in the history
Signed-off-by: Mike Schroeder <mschroed@us.ibm.com>
  • Loading branch information
michaelwschroeder committed Nov 16, 2020
1 parent 5f56740 commit 870e5d7
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

import java.util.List;

import org.testng.annotations.AfterClass;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;

Expand Down Expand Up @@ -71,6 +72,12 @@ void setup() throws FHIRException {
helper = new FHIRRestHelper(persistence);
}

@AfterClass
void tearDown() throws FHIRException {
FHIRConfiguration.setConfigHome("");
FHIRRequestContext.get().setTenantId("default");
}

/**
* Test a create with no profile specified but profile required.
*/
Expand Down

0 comments on commit 870e5d7

Please sign in to comment.