Examples of NCBOClient


Examples of edu.scripps.genewiki.sync.NCBOClient

  @BeforeClass
  public static void setUp() throws Exception {
    snp    = Files.toString(new File("/etc/gwsync/tests/Rs6311.wiki"), Charset.forName("UTF-8"));
    gene   = Files.toString(new File("/etc/gwsync/tests/a1at.wiki"), Charset.forName("UTF-8"));
    ncbo   = new NCBOClient();
  }
View Full Code Here

Examples of edu.scripps.genewiki.sync.NCBOClient

    }
  }

  @Test
  public void testInvalidAPIKey() {
    NCBOClient ncbo2 = new NCBOClient("123", "file:/etc/gwsync/doid.owl");
    try {
      System.err.println("|----Testing Invalid API Key ----|");
      ncbo2.annotate(text);
      fail("Should have thrown exception for invalid API key.");
    } catch (HttpResponseException e) {
      System.err.println("|-----------End test-------------|");
    } finally {
      ncbo2.close();
    }
  }
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.