Convert some of your entities to interfaces to allow DI to swap them out. For instance, now I have:
interface IRecord
{
...
public void setAttribute(String property, String value);
public String getAttribute(String property);
...
}
and then I have RecordEx extends Record implements IRecord
and on the server/for my test cases, I can have RecordImpl implements IRecord. (and it's really just a map)
Now I am able to test more without using Selenium or GWTTest case, or other such frameworks, and I am able to leverage the speed and functionality of test frameworks that don't require a browser.
It would be nice if some of this was supported natively.
interface IRecord
{
...
public void setAttribute(String property, String value);
public String getAttribute(String property);
...
}
and then I have RecordEx extends Record implements IRecord
and on the server/for my test cases, I can have RecordImpl implements IRecord. (and it's really just a map)
Now I am able to test more without using Selenium or GWTTest case, or other such frameworks, and I am able to leverage the speed and functionality of test frameworks that don't require a browser.
It would be nice if some of this was supported natively.