com.github.dreamhead.moco.internal.InternalApis Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of moco-core Show documentation
Show all versions of moco-core Show documentation
Moco is an easy setup stub framework, mainly focusing on testing and integration.
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() {
}
}