I’m trying to setup my mxunit test. I have a simple app with some modules that have their own model with some ORM object.
I’m trying to setup the mxunit, but when I fire a simple test I get an error:
railo.runtime.exp.NativeException: User is not mapped [select count(*) from User]
The user entity is in modules/solitary/model
My Application.cfc in test folder is:
this.mappings["/baseApp"] = expandpath(’…/…/’);
this.mappings[’/solitary’] = this.mappings["/baseApp"] & “modules\solitary”;
//dump(this);abort;
this.ormEnabled = true;
this.datasource = “tropicalseo”;
this.ormSettings = {
cfclocation = [“model”,“solitary/model”],
dialect = “MySQL”,
dbcreate = “update”,
logSQL = true,
flushAtRequestEnd = false,
eventHandling = true,
eventhandler = “model.EventHandler”
};
//dump(this);abort;