use of org.commonjava.indy.promote.client.IndyPromoteClientModule in project indy by Commonjava.
the class AbstractPromotionManagerTest method setupRepos.
@Before
public void setupRepos() throws Exception {
final String changelog = "Setup " + name.getMethodName();
final IndyPromoteClientModule module = client.module(IndyPromoteClientModule.class);
System.out.printf("\n\n\n\nBASE-URL: %s\nPROMOTE-URL: %s\nRESUME-URL: %s\nROLLBACK-URL: %s\n\n\n\n", client.getBaseUrl(), module.promoteUrl(), module.resumeUrl(), module.rollbackUrl());
source = new HostedRepository("source");
client.stores().create(source, changelog, HostedRepository.class);
client.content().store(source.getKey().getType(), source.getName(), first, new ByteArrayInputStream("This is a test".getBytes()));
client.content().store(source.getKey().getType(), source.getName(), second, new ByteArrayInputStream("This is a test".getBytes()));
target = createTarget(changelog);
}
Aggregations