Package io.quarkus.dev.testing
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 Summary
Constructors Constructor Description TestScanningLock()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidlockForTests()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.static voidunlockForTests()
-
-
-
Method Detail
-
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()
-
-