use of com.hazelcast.simulator.worker.operations.ExecuteScriptOperation in project hazelcast-simulator by hazelcast.
the class ScriptExecutorTest method javascript.
@Test
public void javascript() {
ExecuteScriptOperation scriptOperation = new ExecuteScriptOperation("js:java.lang.System.out.println();", false);
StubPromise promise = new StubPromise();
scriptExecutor.execute(scriptOperation, promise);
promise.assertCompletesEventually();
assertTrue(promise.getAnswer() instanceof String);
}
Aggregations