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

com.github.dreamhead.moco.config.MocoContextConfig Maven / Gradle / Ivy

Go to download

Moco is an easy setup stub framework, mainly focusing on testing and integration.

There is a newer version: 1.5.0
Show newest version
package com.github.dreamhead.moco.config;

import com.github.dreamhead.moco.MocoConfig;

import static com.github.dreamhead.moco.util.URLs.join;

public final class MocoContextConfig implements MocoConfig {
    private final String context;

    public MocoContextConfig(final String context) {
        this.context = context;
    }

    @Override
    public boolean isFor(final String id) {
        return URI_ID.equalsIgnoreCase(id);
    }

    @Override
    public String apply(final String uri) {
        return join(context, uri);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy