예제 #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);
    }
  }
예제 #2
0
 public void testRequestWikiClass() throws Throwable {
   Class clas = request.requestWikiClasses(wikiName, classname);
   assertNotNull(clas);
 }