type
HxTest
abstract class HxTest : HaystackTest
HxTest is a base class for writing Haxall tests which provide access to a booted project instance. Annotate test methods which require a project with HxTestProj. This class uses the hxd implementation for its project.
@HxTestProj
Void testBasics()
{
x := addRec(["dis":"It works!"])
y := rt.db.readById(x.id)
verifyEq(y.dis, "It works!")
}
methods
| addExt |
Convenience to add extension lib with optional setting and return it |
|---|---|
| addFunc |
Convenience for |
| addLib |
Add a library and all its depdenencies to the project. |
| 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. |
| proj |
Test project if |
| read |
Convenience for |
| readById |
Convenience for |
| setup |
If |
| sys |
Get system if |
| teardown |
If |