Esempio n. 1
0
 @Override
 public void setUp() throws Exception {
   try {
     super.setUp();
   } catch (Exception e) {
     // ignore if we fail during setup due OSGi issue
     canTest = false;
   }
 }
Esempio n. 2
0
  @Override
  public void doPreSetup() throws Exception {
    super.doPreSetup();
    final String webPort = System.getProperty("fcrepo.dynamic.test.port", "8080");

    final String basePath = "http://localhost:" + webPort + "/fcrepo/rest";
    final String subPath = post(basePath);
    final String jmsPort = System.getProperty("fcrepo.dynamic.jms.port", "61616");

    for (int i = 0; i < 10; ++i) {
      post(basePath);
      post(subPath);
    }
  }