Package uk.ac.manchester.spinnaker.alloc
Class ForTestingOnly.Utils
java.lang.Object
uk.ac.manchester.spinnaker.alloc.ForTestingOnly.Utils
- Enclosing class:
- ForTestingOnly
public abstract static class ForTestingOnly.Utils extends Object
Utilities for checking the promises relating to the annotation.
-
Method Summary
Modifier and Type Method Description static void
checkForTestClassOnStack()
A simple test for whether there are classes annotated with@SpringBootTest
on the stack at the point it is called.
-
Method Details
-
checkForTestClassOnStack
public static void checkForTestClassOnStack()A simple test for whether there are classes annotated with@SpringBootTest
on the stack at the point it is called. Moderately expensive, but it only guards stuff that should be used on test paths, so that isn't important.- Throws:
Error
- if not called from the right place; it's a serious security failure and wrong programming.
-