Declaring the test object variable

The base configuration test data builder classes are declared in the gw.api.databuilder package. You can refer to this package for a complete list of builders.

To declare a new test object variable from a test data builder, use the following syntax:

var testObj = new dataBuilderClass()

The gw.api.databuilder package must be either imported using a uses statement or included as part of the builder class name. Both approaches are demonstrated in the following blocks of code:

uses gw.api.databuilder
var testUser = new UserContactBuilder()
...
var testUser = new gw.api.databuilder.UserContactBuilder()