File test/de/jandankert/jscriptbox/CacheTest.java
Last commit: Sat May 30 23:22:58 2026 +0200 Jan Dankert Refactoring package openrat->jandankert because the maven artefact is in namespace de.jandankert
1 package de.jandankert.jscriptbox; 2 3 import de.jandankert.jscriptbox.executor.ScriptInterpreter; 4 import junit.framework.TestCase; 5 6 public class CacheTest extends TestCase { 7 8 public void testCachedCode() throws Exception { 9 ScriptInterpreter interpreter = new ScriptInterpreter(); 10 11 interpreter.prepareCode(""" 12 return "Hello, World"; 13 """); 14 assertEquals("Hello, World", interpreter.run()); 15 assertEquals("Hello, World", interpreter.run()); 16 } 17 18 19 }
Downloadtest/de/jandankert/jscriptbox/CacheTest.java
History Sat, 30 May 2026 23:22:58 +0200 Jan Dankert Refactoring package openrat->jandankert because the maven artefact is in namespace de.jandankert