SOLR-3260: Add one more exception ignore for JVMs without Rhino

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1303818 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
James Dyer 2012-03-22 14:56:40 +00:00
parent 33645d3764
commit fca2253a55
1 changed files with 3 additions and 1 deletions

View File

@ -85,7 +85,9 @@ public class TestScriptTransformer extends AbstractDataImportHandlerTestCase {
sep.init(context);
sep.applyTransformer(map);
assertEquals(map.get("name"), "Hello Scott");
} catch (DataImportHandlerException e) {
} catch (DataImportHandlerException e) {
assumeFalse("This JVM does not have Rhino installed. Test Skipped.", e
.getMessage().startsWith("Cannot load Script Engine for language"));
throw e;
}
}