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

org.visallo.web.routes.search.SearchRouteTestBase Maven / Gradle / Ivy

There is a newer version: 4.0.0
Show newest version
package org.visallo.web.routes.search;

import org.mockito.Mock;
import org.vertexium.Authorizations;
import org.vertexium.Visibility;
import org.visallo.core.model.directory.DirectoryRepository;
import org.visallo.core.model.search.SearchRepository;
import org.visallo.web.routes.RouteTestBase;

import java.io.IOException;

public abstract class SearchRouteTestBase extends RouteTestBase {
    protected Authorizations authorizations;
    protected Visibility visibility;

    @Mock
    protected DirectoryRepository directoryRepository;

    @Mock
    protected SearchRepository searchRepository;

    @Override
    protected void before() throws IOException {
        super.before();

        visibility = new Visibility("");
        authorizations = graph.createAuthorizations("");
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy