APISonar


io.quarkus.maven.it.verifier.RunningInvoker.log

> io > quarkus > maven > it > verifier > RunningInvoker > log
io APIs quarkus APIs maven APIs it APIs verifier APIs RunningInvoker APIs log APIs

Example 1
private RunningInvoker running;

    public void testErrorMessageWhenNoTargetClasses() throws IOException, MavenInvocationException {
        testDir = initProject("projects/classic", "projects/project-no-classes");
        new File(testDir, "target").mkdirs();
        // Be sure we don't have classes.
        FileUtils.deleteQuietly(new File(testDir, "target/classes"));

        running = new RunningInvoker(testDir, false);
        MavenProcessInvocationResult result = running.execute(Collections.singletonList("quarkus:dev"), Collections.emptyMap());
        await().until(() -> result.getProcess() != null && !result.getProcess().isAlive());
        assertThat(running.log()).containsIgnoringCase("BUILD FAILURE");
    }