Author: ate
Date: Mon Jan 20 15:12:28 2014
New Revision: 1559729

URL: http://svn.apache.org/r1559729
Log:
more debugging to figure out why this test fails on Continuum but works locally 
on both Java 6 and 7

Modified:
    
commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml2/env/javascript/JSEvaluatorTest.java

Modified: 
commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml2/env/javascript/JSEvaluatorTest.java
URL: 
http://svn.apache.org/viewvc/commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml2/env/javascript/JSEvaluatorTest.java?rev=1559729&r1=1559728&r2=1559729&view=diff
==============================================================================
--- 
commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml2/env/javascript/JSEvaluatorTest.java
 (original)
+++ 
commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml2/env/javascript/JSEvaluatorTest.java
 Mon Jan 20 15:12:28 2014
@@ -181,10 +181,18 @@ public class JSEvaluatorTest {
     public void testStandardExpressions() throws Exception {
         for (TestItem item: SIMPLE_EXPRESSIONS) {
             Object eval = evaluator.eval(context,item.expression);
-            
System.out.println("testStandardExpressions:"+eval.getClass().getCanonicalName()+"="+eval.toString());
-            Assert.assertEquals("Invalid result: " + item.expression,
+            try {
+                Assert.assertEquals("Invalid result: " + item.expression,
                          item.result,
                          eval);
+            }
+            catch (Exception e) {
+                
System.out.println("testStandardExpressions:"+eval.getClass().getCanonicalName()+"="+eval.toString());
+                javax.script.ScriptEngineFactory factory = new 
javax.script.ScriptEngineManager().getEngineByName("JavaScript").getFactory();
+                System.out.println(factory.getEngineName()+" version: 
"+factory.getEngineVersion()+", languageVersion: 
"+factory.getLanguageVersion()+ " on " +
+                                   System.getProperty("java.vendor")+" 
"+System.getProperty("java.version")+": 
"+System.getProperty("java.vendor.url"));
+                throw e;
+            }
         }
     }
 


Reply via email to