methodCalled1 = true;
return player;
}
};
MockControl scriptCtrl = MockClassControl.createControl(GroovyScriptEngine.class, new Class[] { String.class }, new String[] { new String("file://") });
final GroovyScriptEngine eng = (GroovyScriptEngine) scriptCtrl.getMock();
eng.getParentClassLoader();
scriptCtrl.setDefaultReturnValue(null);
eng.loadScriptByName("player.Impl");
scriptCtrl.setReturnValue(player.getClass());
scriptCtrl.replay();
MudObjectAttendant attend = new MudObjectAttendant() {
protected InputStream createFileInputStream(File playerFile) throws FileNotFoundException {