Example #1
0
  @Override
  protected void setUp() throws Exception {
    super.setUp();
    wikiName = TestResources.WIKI_NAME;
    url = TestResources.URL;
    classname = TestResources.CLASS_NAME;

    if (isSecured) {
      username = TestResources.USERNAME;
      password = TestResources.PASSWORD;
    }

    request = new Requests(url);

    if (isSecured) {
      request.setAuthentication(username, password);
    }
  }
Example #2
0
 public void testRequestWikiClass() throws Throwable {
   Class clas = request.requestWikiClasses(wikiName, classname);
   assertNotNull(clas);
 }