예제 #1
0
  /** @param args */
  public static void main(String[] args) {
    // Initialize the Log4j environment.
    String logXML = "log4j.xml";
    if (args.length > 0) {
      logXML = args[0];
    }
    //    logger.initLogger(logXML);
    // initialize connection
    String connXML = "";
    if (args.length > 1) connXML = args[1];
    varCon = new TestConnections(connXML, logger);
    VMForm vmdata = new VMForm();
    try {
      vmdata.setDBConnection(varCon.openConnection());
      CurationServlet cdeserv = new CurationServlet();
      cdeserv.setConn(varCon.openConnection());
      vmdata.setCurationServlet(cdeserv);
    } catch (SQLException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
    }
    TestVM testvm = new TestVM();
    //    logger.start();
    //    logger.info("started vm test");

    //    if (args.length >2)
    //      VMpropFile = args[2];
    VMpropFile = "/Users/ag/demo/cdecurate/src/gov/nih/nci/cadsr/cdecurate/test/TestVMCase.xml";

    // load properties with prop file name from input parameter
    //  if (args.length >2)
    //    testvm.loadProp(args[2]);

    // call the search method
    //  testvm.doSearchVMValues(vmdata);

    // call the validate method
    testvm.doValidateValues(vmdata);
    //  testvm.getConceptDerivation();

    //  testvm.switchCaseEx(2);
    // end the logger
    //    logger.end();
  }