예제 #1
0
  public void setUp() throws Exception {
    super.setUp();
    entry = VFS.createEmpty();

    if (!entry.hasProvider("node")) {
      // 			NodeFileSystemConfigBuilder.getInstance().setServer("61.250.201.78", 27017, "test",
      // "wname") ;
      NodeFileProvider nodeFileProvider = new NodeFileProvider();
      nodeFileProvider.setServerHost("61.250.201.157");
      nodeFileProvider.setPort("27017");
      nodeFileProvider.setDBName("test");
      nodeFileProvider.setWorkspaceName("wsname");
      entry.addProvider("node", nodeFileProvider);
    }
  }
예제 #2
0
 @Override
 protected void tearDown() throws Exception {
   entry = null;
   super.tearDown();
 }