Пример #1
0
  @BeforeClass
  public static void setUpClass() throws Exception {
    HARNESS_SCRIPT_CACHE.put(-1, new HashMap<String, Script>());
    HARNESS_SCRIPT_CACHE.put(0, new HashMap<String, Script>());
    HARNESS_SCRIPT_CACHE.put(9, new HashMap<String, Script>());

    CTX_FACTORY.setLanguageVersion(Context.VERSION_ES6);
    TestUtils.setGlobalContextFactory(CTX_FACTORY);
  }
Пример #2
0
 @AfterClass
 public static void tearDownClass() throws Exception {
   TestUtils.setGlobalContextFactory(null);
 }