Examples of load()


Examples of org.raptorjs.resources.packaging.PackageManifestJSONLoader.load()

    DependencyFactory includeFactory = new DependencyFactory();
    includeFactory.registerIncludeType("js", IncludeJSTest.class);
    PackageManifestJSONLoader loader = new PackageManifestJSONLoader(includeFactory);
    InputStream in = PackageManifestJSONLoaderTest.class.getResourceAsStream("/packaging/test/old-package.json");
    PackageManifest manifest = new PackageManifest();
    loader.load(manifest, in);
    this._testOldNew(manifest);
  }
 
  @Test
  public void testManifestLoaderNew1() throws JsonProcessingException, IOException {
View Full Code Here

Examples of org.renjin.base.BaseFrame.load()

   * </ol>
   *
   */
  public void init() throws IOException {
    BaseFrame baseFrame = (BaseFrame) session.getBaseEnvironment().getFrame();
    baseFrame.load(this);
   
    evaluate(FunctionCall.newCall(Symbol.get(".onLoad")), session.getBaseNamespaceEnv());
   
//    evalBaseResource("/org/renjin/library/base/R/Rprofile");
//   
View Full Code Here

Examples of org.renjin.compiler.runtime.PackageLoader.load()

   
    Class<PackageLoader> loaderClass = (Class<PackageLoader>) Class.forName("org.renjin.base.Loader");
    PackageLoader loader = loaderClass.newInstance();
   
    Environment baseEnv = topLevelContext.getEnvironment().getBaseEnvironment();
    loader.load(topLevelContext, baseEnv);
   
    assertThat(baseEnv.getVariable("xor").force(topLevelContext).getClass().getSimpleName(), equalTo("xor"));
    assertThat(eval("xor(TRUE,TRUE)"), equalTo(c(false)));
  }
 
View Full Code Here

Examples of org.rhq.augeas.AugeasProxy.load()

        AugeasConfigurationApache conf = new AugeasConfigurationApache(lensPath, configuration);
        AugeasTreeBuilderApache builder = new AugeasTreeBuilderApache();
        AugeasProxy augeas = new AugeasProxy(conf, builder);

        augeas.load();

        return augeas;
    }

    /**
 
View Full Code Here

Examples of org.rhq.cassandra.DeploymentOptions.load()

            // The out of box default for native_transport_max_threads is 128. We default
            // to 64 for dev/test environments so we need to update it here.
            deploymentOptions.setNativeTransportMaxThreads(128);

            deploymentOptions.load();

            List<String> errors = new ArrayList<String>();
            checkPerms(options.getOption(StorageProperty.SAVED_CACHES.property()), savedCachesDir, errors);
            checkPerms(options.getOption(StorageProperty.COMMITLOG.property()), commitlogDir, errors);
            checkPerms(options.getOption(StorageProperty.DATA.property()), dataDir, errors);
View Full Code Here

Examples of org.rhq.cassandra.util.ConfigEditor.load()

        assertEquals(log4jProps.getProperty("log4j.appender.R.File"), StorageInstaller.STORAGE_LOG_FILE_PATH,
            "The log file is wrong");

        File yamlFile = new File(confDir, "cassandra.yaml");
        ConfigEditor yamlEditor = new ConfigEditor(yamlFile);
        yamlEditor.load();

        assertEquals(yamlEditor.getInternodeAuthenticator(), "org.rhq.cassandra.auth.RhqInternodeAuthenticator",
            "Failed to set the internode_authenticator property in " + yamlFile);
        assertEquals(yamlEditor.getAuthenticator(), "org.apache.cassandra.auth.PasswordAuthenticator",
            "The authenticator property is wrong");
View Full Code Here

Examples of org.robotninjas.barge.log.RaftLog.load()

    RaftLog log = getLog();

    MDC.put("state", Raft.StateType.START.name());
    MDC.put("term", Long.toString(log.currentTerm()));
    MDC.put("self", log.self().toString());
    log.load();
    ctx.setState(this, FOLLOWER);
  }

  @Nonnull
  @Override
View Full Code Here

Examples of org.rs2lite.loader.WebAppletLoader.load()

        //Oops!
        if(world == 0)
          world = 1;
        WebAppletLoader loader = new WebAppletLoader(
            "http://world"+world+".runescape.com/,j0");
        loader.load();
        //Return the loaded applet
        return loader.newApplet();
      }
    });
  }
View Full Code Here

Examples of org.rssowl.core.connection.ConnectionManager.load()

    URL feedUrl = new URL("http://www.rssowl.org/rssowl2dg/tests/connection/authrequired/feed_rss.xml");
    IFeed feed = new Feed(feedUrl);
    AuthenticationRequiredException e = null;

    try {
      conManager.load(feed.getLink());
    } catch (AuthenticationRequiredException e1) {
      e = e1;
    }

    assertNotNull(e);
View Full Code Here

Examples of org.rssowl.core.internal.persist.dao.CachingDAO.load()

    System.gc();
    Owl.getPersistenceService().startup(new NullOperationMonitor());

    /* Assert Folders */
    CachingDAO dao = (CachingDAO) DynamicDAO.getDAO(IFolderDAO.class);
    root = (IFolder) dao.load(rootFolderId);
    assertNotNull(root);
    assertEquals("Root", root.getName());
    assertProperties(root);

    subRoot1 = (IFolder) dao.load(subRootFolder1Id);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.