test_class.file: shedlock-core/src/test/java/net/javacrumbs/shedlock/core/LockAssertTest.java
test_class.identifier: LockAssertTest
test_case.body: @Test
      void assertShouldNotFailIfConfiguredForTests() {
          LockAssert.TestHelper.makeAllAssertsPass(true);
          LockAssert.assertLocked();
  
          LockAssert.TestHelper.makeAllAssertsPass(false);
          assertThatThrownBy(LockAssert::assertLocked).isInstanceOf(IllegalStateException.class);
      }
test_case.class_method_signature: LockAssertTest.assertShouldNotFailIfConfiguredForTests()
test_case.full_signature: @Test void assertShouldNotFailIfConfiguredForTests()
test_case.identifier: assertShouldNotFailIfConfiguredForTests
test_case.invocations: makeAllAssertsPass assertLocked makeAllAssertsPass isInstanceOf assertThatThrownBy
test_case.modifiers: @Test
test_case.parameters: ()
test_case.return: void
test_case.signature: void assertShouldNotFailIfConfiguredForTests()
focal_class.declarator: currentLockName = ThreadLocal.withInitial(() -> null)
focal_class.modifier: private static final
focal_class.original_string: private static final ThreadLocal<String> currentLockName = ThreadLocal.withInitial(() -> null);
focal_class.type: ThreadLocal<String>
focal_class.var_name: currentLockName
focal_class.file: shedlock-core/src/main/java/net/javacrumbs/shedlock/core/LockAssert.java
focal_class.identifier: LockAssert
focal_class.class_method_signature: LockAssert.startLock(String name)
focal_class.full_signature: static void startLock(String name)
focal_class.identifier: startLock
focal_class.modifiers: static
focal_class.parameters: (String name)
focal_class.return: void
focal_class.signature: void startLock(String name)
focal_class.class_method_signature: LockAssert.alreadyLockedBy(@NonNull String name)
focal_class.full_signature: static boolean alreadyLockedBy(@NonNull String name)
focal_class.identifier: alreadyLockedBy
focal_class.modifiers: static
focal_class.parameters: (@NonNull String name)
focal_class.return: boolean
focal_class.signature: boolean alreadyLockedBy(@NonNull String name)
focal_class.class_method_signature: LockAssert.endLock()
focal_class.full_signature: static void endLock()
focal_class.identifier: endLock
focal_class.modifiers: static
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void endLock()
focal_class.class_method_signature: LockAssert.assertLocked()
focal_class.full_signature: public static void assertLocked()
focal_class.identifier: assertLocked
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void assertLocked()
focal_method.body: public static void assertLocked() {
          if (currentLockName.get() == null) {
              throw new IllegalStateException("The task is not locked.");
          }
      }
focal_method.class_method_signature: LockAssert.assertLocked()
focal_method.full_signature: public static void assertLocked()
focal_method.identifier: assertLocked
focal_method.invocations: get
focal_method.modifiers: public static
focal_method.parameters: ()
focal_method.return: void
focal_method.signature: void assertLocked()