Skip to content

Commit

Permalink
Remove all copy/paste leftovers from the handlereg project
Browse files Browse the repository at this point in the history
  • Loading branch information
steinarb committed Sep 25, 2020
1 parent f4e51f8 commit 4f3679d
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ class AuthserviceLiquibaseTest {
@Test
void testCreateSchema() throws Exception {
Connection connection = createConnection();
AuthserviceLiquibase handleregLiquibase = new AuthserviceLiquibase();
handleregLiquibase.createInitialSchema(connection);
handleregLiquibase.updateSchema(connection);
AuthserviceLiquibase authserviceLiquibase = new AuthserviceLiquibase();
authserviceLiquibase.createInitialSchema(connection);
authserviceLiquibase.updateSchema(connection);
String username = "jad";
String password = "1ad";
String salt = "pepper";
Expand Down Expand Up @@ -76,17 +76,17 @@ void testCreateSchema() throws Exception {
void testForceReleaseLocks() throws Exception {
LogService logservice = new MockLogService();
Connection connection = createConnection();
AuthserviceLiquibase handleregLiquibase = new AuthserviceLiquibase();
boolean success = handleregLiquibase.forceReleaseLocks(connection, logservice);
AuthserviceLiquibase authserviceLiquibase = new AuthserviceLiquibase();
boolean success = authserviceLiquibase.forceReleaseLocks(connection, logservice);
assertTrue(success);
}

@Test
void testForceReleaseLocksWithFailure() throws Exception {
LogService logservice = new MockLogService();
Connection connection = mock(Connection.class);
AuthserviceLiquibase handleregLiquibase = new AuthserviceLiquibase();
boolean success = handleregLiquibase.forceReleaseLocks(connection, logservice);
AuthserviceLiquibase authserviceLiquibase = new AuthserviceLiquibase();
boolean success = authserviceLiquibase.forceReleaseLocks(connection, logservice);
assertFalse(success);
}

Expand Down

0 comments on commit 4f3679d

Please sign in to comment.