/*
   * (non-Javadoc)
   *
   * @see com.ibm.watson.developercloud.WatsonServiceTest#setUp()
   */
  @Override
  @Before
  public void setUp() throws Exception {
    super.setUp();
    InputStream in = this.getClass().getClassLoader().getResourceAsStream("en.txt");
    englishText = getStringFromInputStream(in);

    in = this.getClass().getClassLoader().getResourceAsStream("es.txt");
    spanishText = getStringFromInputStream(in);
  }
Exemplo n.º 2
0
 /*
  * (non-Javadoc)
  *
  * @see com.ibm.watson.developer_cloud.WatsonServiceTest#setUp()
  */
 @Override
 @Before
 public void setUp() throws Exception {
   super.setUp();
   service = new ConceptInsights();
   service.setUsernameAndPassword(
       getValidProperty("concept_insights.username"),
       getValidProperty("concept_insights.password"));
   service.setEndPoint(getValidProperty("concept_insights.url"));
 }