Skip to content

Commit

Permalink
worked on code review coments
Browse files Browse the repository at this point in the history
  • Loading branch information
mayankkunwar committed Apr 17, 2020
1 parent bf17d29 commit 8d545e5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.assertFalse;

/**
* Test the RecoveryMonitor is verbose mode
Expand Down Expand Up @@ -80,7 +81,7 @@ public void testRecoveryMonitorWithFailure() throws Exception {
// check the output of the scan
assertEquals("ERROR", RecoveryMonitor.getResponse());
assertEquals("ERROR", RecoveryMonitor.getSystemOutput());
assertTrue(!xaRecoveryModule.isPeriodicWorkSuccessful());
assertFalse(xaRecoveryModule.isPeriodicWorkSuccessful());
} finally {
manager.terminate();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ public void start(Xid xid, int i) throws XAException {
// check the output of the scan
assertEquals("DONE", RecoveryMonitor.getResponse());
assertEquals("DONE", RecoveryMonitor.getSystemOutput());
assertFalse(!xaRecoveryModule.isPeriodicWorkSuccessful());
assertTrue(xaRecoveryModule.isPeriodicWorkSuccessful());
} finally {
manager.terminate();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public void testRecoveryMonitorWithFailure() throws Exception {

manager.scan();

assertTrue(!xaRecoveryModule.isPeriodicWorkSuccessful());
assertFalse(xaRecoveryModule.isPeriodicWorkSuccessful());
}

@Test
Expand Down Expand Up @@ -158,7 +158,7 @@ public void start(Xid xid, int i) throws XAException {

manager.scan();

assertFalse(!xaRecoveryModule.isPeriodicWorkSuccessful());
assertTrue(xaRecoveryModule.isPeriodicWorkSuccessful());
}

@Test
Expand Down

0 comments on commit 8d545e5

Please sign in to comment.