public void customize()

in src/main/java/org/apache/sling/junit/teleporter/customizers/LaunchpadCustomizer.java [42:67]


    public void customize(TeleporterRule t, String options) {
        // Used to test the options mechanism
        if (TeleporterOptionsTest.OPTIONS.equals(options)) {
            throw new TeleporterOptionsTest.OptionsException(options);
        }

        // Setup Sling and the ClientSideTeleporter
        try {
            H.setUp();
        } catch (Exception e) {
            fail("HttpTest setup failed: " + e);
        }
        final ClientSideTeleporter cst = (ClientSideTeleporter) t;
        cst.setBaseUrl(HttpTest.HTTP_BASE_URL);
        cst.setTestReadyTimeoutSeconds(testReadyTimeout);
        cst.includeDependencyPrefix("org.apache.sling.launchpad.webapp");

        // Get the testservices classes from that bundle, importing them
        cst.includeDependencyPrefix("org.apache.sling.launchpad.testservices");
        cst.excludeDependencyPrefix(org.apache.sling.launchpad.testservices.events.EventsCounter.class
                .getPackage()
                .getName());
        cst.excludeDependencyPrefix(org.apache.sling.launchpad.testservices.exported.StringTransformer.class.getName());

        cst.setServerCredentials("admin", "admin");
    }