This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package test.com.inpaas.nashorn; | |
import javax.script.ScriptEngine; | |
import javax.script.ScriptEngineManager; | |
import javax.script.ScriptException; | |
import jdk.nashorn.api.scripting.ScriptObjectMirror; | |
import org.junit.Assert; | |
import org.junit.Before; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.LinkedHashMap; | |
import java.util.Map; | |
import javax.script.Bindings; | |
import javax.script.ScriptException; | |
public class ScriptEngineTest { | |
public static void main(String[] args) throws ScriptException { | |
javax.script.ScriptEngineManager engineManager = new javax.script.ScriptEngineManager(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var jts = []; | |
jts.push(java.lang.Boolean); | |
jts.push(java.lang.String); | |
jts.push(java.lang.Short); | |
jts.push(java.lang.Integer); | |
jts.push(java.lang.Long); | |
jts.push(java.lang.Double); | |
jts.push(Java.type("java.math.BigDecimal")); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package test.com.inpaas.http.wsdl; | |
import java.io.IOException; | |
import java.util.ArrayList; | |
import java.util.LinkedHashMap; | |
import java.util.LinkedHashSet; | |
import java.util.List; | |
import java.util.Set; | |
import com.fasterxml.jackson.core.JsonParseException; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var input = [ | |
{ "name": "File 1", "path": "Home/Folder A/Folder A-B" }, | |
{ "name": "File 2", "path": "Home/Folder C/Folder C-A/File 4.hist" }, | |
{ "name": "File 3", "path": "Home/Folder A/Folder A-B" }, | |
{ "name": "File 4", "path": "Home/Folder C/Folder C-A" }, | |
{ "name": "File 5", "path": "Home/Folder B" }, | |
{ "name": "File 6", "path": "Home/Folder C/Folder C-A/File 4.hist" }, | |
{ "name": "File 7", "path": "Home/Folder B/Folder B-B" }, | |
{ "name": "File 8", "path": "Home/Folder C/Folder C-A/File 4.hist" }, | |
{ "name": "File 9", "path": "Home/Folder B" }, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* LocalStorageFactory | |
* adds support for JSON objects in LocalStorage | |
* | |
* @author jvarandas | |
*/ | |
(function(global) { | |
var _cache = {}, _ls = {}, ls; | |
// if localStorage is not available, create a localStorage stub |