All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.cucumber.plugin.event.TestRunFinished Maven / Gradle / Ivy

There is a newer version: 7.20.1
Show newest version
package io.cucumber.plugin.event;

import org.apiguardian.api.API;

import java.time.Instant;
import java.util.Objects;

@API(status = API.Status.STABLE)
public final class TestRunFinished extends TimeStampedEvent {

    private final Result result;

    @Deprecated
    public TestRunFinished(Instant timeInstant) {
        super(timeInstant);
        this.result = null;
    }

    public TestRunFinished(Instant timeInstant, Result result) {
        super(timeInstant);
        this.result = Objects.requireNonNull(result);
    }

    public Result getResult() {
        return result;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy