type
HxTest
abstract class HxTest : HaystackTest
HxTest is a base class for writing Haxall tests which provide access to a booted runtime instance.  Annotate test methods which require a runtime with HxRuntimeTest.  This class uses the hxd implementation for its runtime.
@HxRuntimeTest
Void testBasics()
{
  x := addRec(["dis":"It works!"])
  y := rt.db.readById(x.id)
  verifyEq(y.dis, "It works!")
}
methods
| addLib | 
 Add a library and all its depdenencies to the runtime.  | 
|---|---|
| addRec | 
 Add a record to   | 
| commit | 
 Convenience for commit to   | 
| eval | 
 Evaluate an Axon expression using a super user context.  | 
| makeContext | 
 Create a new context with the given user.  | 
| read | 
 Convenience for   | 
| readById | 
 Convenience for   | 
| rt | 
 Test runtime if   | 
| setup | 
 If   | 
| teardown | 
 If   | 
Slot Details
addLib
addRec
commit
eval
makeContext
read
readById
rt
 HxRuntime? rt(Bool checked := true)
Test runtime if @HxRuntimeTest configured on test method