Hi,
I am trying to use

public class LauncherIT {

    @ClassRule
    public static CrankstartSetup crankstartSetup = new
CrankstartSetup().withModelResources(
            "/crankstart-model.txt",
            "/provisioning-model/base.txt",
            "/provisioning-model/jobs-runtime.txt",
            "/provisioning-model/crankstart-test-support.txt");

...


in a Junit test, but the crankstartSetup.before() is not called, hence the
crankstart never starts.

Running org.apache.sling.crankstart.launcher.BasicLauncherIT in the same
environment (IntelliJ) the before() is called.

The maven project containing the code is at [1], largely copied from
BasicLauncherIT.

any pointers ?

Best Regards
Ian



1
https://github.com/ieb/sling/blob/jobs_28/contrib/extensions/jobs/it/src/test/java/org/apache/sling/jobs/it/LauncherIT.java

Reply via email to