@Test void assertShouldNotFailIfConfiguredForTests() { LockAssert.TestHelper.makeAllAssertsPass(true); LockAssert.assertLocked(); LockAssert.TestHelper.makeAllAssertsPass(false); assertThatThrownBy(LockAssert::assertLocked).isInstanceOf(IllegalStateException.class); }
public static void assertLocked() { if (currentLockName.get() == null) { throw new IllegalStateException("The task is not locked."); } }
LockAssert { public static void assertLocked() { if (currentLockName.get() == null) { throw new IllegalStateException("The task is not locked."); } } }
LockAssert { public static void assertLocked() { if (currentLockName.get() == null) { throw new IllegalStateException("The task is not locked."); } }  }
LockAssert { public static void assertLocked() { if (currentLockName.get() == null) { throw new IllegalStateException("The task is not locked."); } }  static void assertLocked(); }
LockAssert { public static void assertLocked() { if (currentLockName.get() == null) { throw new IllegalStateException("The task is not locked."); } }  static void assertLocked();  }