Class TestScanningLock

java.lang.Object
io.quarkus.dev.testing.TestScanningLock

public class TestScanningLock extends Object
lock that is used to prevent scanning while the dev mode test is updating classes This prevents races in the continuous testing tests. It's not an ideal solution but it is the only one I can think of at the moment.
  • Constructor Details

    • TestScanningLock

      public TestScanningLock()
  • Method Details

    • lockForTests

      public static void lockForTests()
      There is a race when testing this, where you can see the intermediate empty state of the file, or where the file time changes twice. Dev mode tests hold this lock during modification to avoid the race.
    • unlockForTests

      public static void unlockForTests()