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

com.github.dreamhead.moco.internal.InternalApis 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.internal;

import com.github.dreamhead.moco.RequestMatcher;
import com.github.dreamhead.moco.util.URLs;

import static com.github.dreamhead.moco.Moco.by;
import static com.github.dreamhead.moco.Moco.match;
import static com.github.dreamhead.moco.Moco.or;
import static com.github.dreamhead.moco.Moco.uri;

public final class InternalApis {
    public static RequestMatcher context(final String context) {
        return or(by(uri(context)), match(uri(URLs.join(context, ".*"))));
    }

    private InternalApis() {
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy