Search in sources :

Example 1 with RepositorySessionMock

use of org.jboss.pnc.mock.repositorymanager.RepositorySessionMock in project pnc by project-ncl.

the class DestroyableEnvironmentMock method build.

public static DestroyableEnvironment build() {
    RepositorySession repositorySession = new RepositorySessionMock();
    Path workingDir = Paths.get("/root");
    return RunningEnvironment.createInstance("1", 8080, "localhost", "build/agent/url", "internal,build/agent/url", repositorySession, workingDir, () -> {
    }, new DebugData(false));
}
Also used : Path(java.nio.file.Path) DebugData(org.jboss.pnc.spi.builddriver.DebugData) RepositorySessionMock(org.jboss.pnc.mock.repositorymanager.RepositorySessionMock) RepositorySession(org.jboss.pnc.spi.repositorymanager.model.RepositorySession)

Aggregations

Path (java.nio.file.Path)1 RepositorySessionMock (org.jboss.pnc.mock.repositorymanager.RepositorySessionMock)1 DebugData (org.jboss.pnc.spi.builddriver.DebugData)1 RepositorySession (org.jboss.pnc.spi.repositorymanager.model.RepositorySession)1