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

io.quarkus.test.bootstrap.Service Maven / Gradle / Ivy

package io.quarkus.test.bootstrap;

import java.lang.reflect.Field;
import java.util.List;
import java.util.Map;
import java.util.Optional;

import org.junit.jupiter.api.extension.ExtensionContext;

import io.quarkus.test.configuration.Configuration;
import io.quarkus.test.utils.LogsVerifier;

public interface Service extends ExtensionContext.Store.CloseableResource {

    String getScenarioId();

    String getName();

    String getDisplayName();

    Configuration getConfiguration();

    Map getProperties();

    default Optional getProperty(String property) {
        return Optional.ofNullable(getProperty(property, null));
    }

    String getProperty(String property, String defaultValue);

    List getLogs();

    ServiceContext register(String serviceName, ScenarioContext context);

    void init(ManagedResourceBuilder resource);

    void start();

    void stop();

    @Override
    void close();

    boolean isRunning();

    LogsVerifier logs();

    Service withProperty(String key, String value);

    default boolean isAutoStart() {
        return true;
    }

    default void validate(Field field) {

    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy