@Test public void testWrapDocumentModel() { DocumentModel doc = mock(DocumentModel.class); Object result = DocumentScriptingWrapper.wrap(doc, mapper); assertTrue(result instanceof DocumentScriptingWrapper); assertEquals(doc, ((DocumentScriptingWrapper) result).getDoc()); }
public Object wrap(Object unwrapped) { return DocumentScriptingWrapper.wrap(unwrapped, this); }
AutomationMapper implements Bindings { public Object wrap(Object unwrapped) { return DocumentScriptingWrapper.wrap(unwrapped, this); } }
AutomationMapper implements Bindings { public Object wrap(Object unwrapped) { return DocumentScriptingWrapper.wrap(unwrapped, this); } AutomationMapper(OperationContext ctx); }
AutomationMapper implements Bindings { public Object wrap(Object unwrapped) { return DocumentScriptingWrapper.wrap(unwrapped, this); } AutomationMapper(OperationContext ctx); static CompiledScript compile(Compilable compilable); void flush(); Object unwrap(Object wrapped); Object wrap(Object unwrapped); Object executeOperation(String opId, Object input, ScriptObjectMirror parameters); @Override int size(); @Override boolean isEmpty(); @Override boolean containsKey(Object key); @Override boolean containsValue(Object value); @Override Object get(Object key); @Override Object put(String key, Object value); @Override Object remove(Object key); @Override void putAll(Map<? extends String, ? extends Object> m); @Override void clear(); @Override Set<String> keySet(); @Override Collection<Object> values(); @Override Set<java.util.Map.Entry<String, Object>> entrySet(); @Override Object getOrDefault(Object key, Object defaultValue); @Override void forEach(BiConsumer<? super String, ? super Object> action); @Override void replaceAll(BiFunction<? super String, ? super Object, ? extends Object> function); @Override Object putIfAbsent(String key, Object value); @Override boolean remove(Object key, Object value); @Override boolean replace(String key, Object oldValue, Object newValue); @Override Object replace(String key, Object value); @Override Object computeIfAbsent(String key, Function<? super String, ? extends Object> mappingFunction); @Override Object computeIfPresent(String key,
            BiFunction<? super String, ? super Object, ? extends Object> remappingFunction); @Override Object compute(String key, BiFunction<? super String, ? super Object, ? extends Object> remappingFunction); @Override Object merge(String key, Object value,
            BiFunction<? super Object, ? super Object, ? extends Object> remappingFunction); }
AutomationMapper implements Bindings { public Object wrap(Object unwrapped) { return DocumentScriptingWrapper.wrap(unwrapped, this); } AutomationMapper(OperationContext ctx); static CompiledScript compile(Compilable compilable); void flush(); Object unwrap(Object wrapped); Object wrap(Object unwrapped); Object executeOperation(String opId, Object input, ScriptObjectMirror parameters); @Override int size(); @Override boolean isEmpty(); @Override boolean containsKey(Object key); @Override boolean containsValue(Object value); @Override Object get(Object key); @Override Object put(String key, Object value); @Override Object remove(Object key); @Override void putAll(Map<? extends String, ? extends Object> m); @Override void clear(); @Override Set<String> keySet(); @Override Collection<Object> values(); @Override Set<java.util.Map.Entry<String, Object>> entrySet(); @Override Object getOrDefault(Object key, Object defaultValue); @Override void forEach(BiConsumer<? super String, ? super Object> action); @Override void replaceAll(BiFunction<? super String, ? super Object, ? extends Object> function); @Override Object putIfAbsent(String key, Object value); @Override boolean remove(Object key, Object value); @Override boolean replace(String key, Object oldValue, Object newValue); @Override Object replace(String key, Object value); @Override Object computeIfAbsent(String key, Function<? super String, ? extends Object> mappingFunction); @Override Object computeIfPresent(String key,
            BiFunction<? super String, ? super Object, ? extends Object> remappingFunction); @Override Object compute(String key, BiFunction<? super String, ? super Object, ? extends Object> remappingFunction); @Override Object merge(String key, Object value,
            BiFunction<? super Object, ? super Object, ? extends Object> remappingFunction);  }