use of com.artipie.asto.cache.FromStorageCache in project maven-adapter by artipie.
the class MavenProxyIT method setUp.
@BeforeEach
void setUp() throws Exception {
final JettyClientSlices slices = new JettyClientSlices();
slices.start();
this.storage = new InMemoryStorage();
this.server = new VertxSliceServer(MavenProxyIT.VERTX, new LoggingSlice(new MavenProxySlice(slices, URI.create("https://repo.maven.apache.org/maven2"), Authenticator.ANONYMOUS, new FromStorageCache(this.storage))));
this.port = this.server.start();
Testcontainers.exposeHostPorts(this.port);
this.cntn = new GenericContainer<>("maven:3.6.3-jdk-11").withCommand("tail", "-f", "/dev/null").withWorkingDirectory("/home/").withFileSystemBind(this.tmp.toString(), "/home");
this.cntn.start();
}
use of com.artipie.asto.cache.FromStorageCache in project maven-adapter by artipie.
the class MavenProxySliceITCase method setUp.
@BeforeEach
void setUp() throws Exception {
this.client.start();
this.storage = new InMemoryStorage();
this.server = new VertxSliceServer(MavenProxySliceITCase.VERTX, new LoggingSlice(new MavenProxySlice(this.client, URI.create("https://repo.maven.apache.org/maven2"), Authenticator.ANONYMOUS, new FromStorageCache(this.storage))));
this.port = this.server.start();
}
Aggregations