use of org.forgerock.guava.common.base.Function in project OpenAM by OpenRock.
the class SmsRouteTreeLeafTest method setup.
@BeforeClass
public void setup() {
Router router = new Router();
Function<String, Boolean> handlesFunction = new Function<String, Boolean>() {
@Nullable
@Override
public Boolean apply(String serviceName) {
return "SERVICE_NAME".equals(serviceName);
}
};
routeTree = new SmsRouteTreeLeaf(Collections.<MatchingResourcePath, CrestAuthorizationModule>emptyMap(), null, router, handlesFunction, null, resourcePath(""));
}
Aggregations