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

io.quarkus.runtime.test.TestHttpEndpointProvider Maven / Gradle / Ivy

The newest version!
package io.quarkus.runtime.test;

import java.util.ArrayList;
import java.util.List;
import java.util.ServiceLoader;
import java.util.function.Function;

/**
 * Interface that can be used to integrate with the TestHTTPEndpoint infrastructure
 */
public interface TestHttpEndpointProvider {

    Function, String> endpointProvider();

    static List, String>> load() {
        List, String>> ret = new ArrayList<>();
        for (TestHttpEndpointProvider i : ServiceLoader.load(TestHttpEndpointProvider.class,
                Thread.currentThread().getContextClassLoader())) {
            ret.add(i.endpointProvider());
        }
        return ret;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy