GroovyScriptEngineFactory implements SoapUIScriptEngineFactory, SoapUIScriptGenerator { public SoapUIScriptEngine createScriptEngine(ModelItem modelItem) { return new SoapUIGroovyScriptEngine(SoapUI.getSoapUICore().getExtensionClassLoader()); }  SoapUIScriptEngine createScriptEngine(ModelItem modelItem); SoapUIScriptGenerator createCodeGenerator(ModelItem modelItem); String createContextExpansion(String name, PropertyExpansion expansion); String createScriptAssertionForExists(XPathData xpathData); static final String ID; }
@Test public void supportsGroovy2() throws Exception { DefaultSoapUICore soapUICore = new DefaultSoapUICore(); DefaultSoapUICore.log = mock(Logger.class); SoapUI.setSoapUICore(soapUICore, true); GroovyScriptEngineFactory scriptEngineFactory = new GroovyScriptEngineFactory(); SoapUIScriptEngine scriptEngine = scriptEngineFactory.createScriptEngine(ModelItemFactory.makeWsdlProject()); scriptEngine.setScript("assert 0b10 == 2"); scriptEngine.run(); }