use of org.eclipse.tycho.repository.module.PublishingRepositoryImpl in project tycho by eclipse.
the class PublishProductToolTest method before.
@Before
public void before() throws Exception {
File projectDirectory = tempManager.newFolder("projectDir");
outputRepository = new PublishingRepositoryImpl(p2Context.getAgent(), new ReactorProjectIdentitiesStub(projectDirectory));
interpolatorMock = mock(Interpolator.class);
when(interpolatorMock.interpolate(anyString())).thenAnswer(new Answer<String>() {
@Override
public String answer(InvocationOnMock invocation) throws Throwable {
// by default don't expand anything
return (String) invocation.getArguments()[0];
}
});
}
use of org.eclipse.tycho.repository.module.PublishingRepositoryImpl in project tycho by eclipse.
the class PublisherServiceTest method initSubject.
@Before
public void initSubject() throws Exception {
File projectDirectory = tempManager.newFolder("projectDir");
LinkedHashSet<IInstallableUnit> installableUnits = new LinkedHashSet<>();
installableUnits.add(InstallableUnitUtil.createFeatureIU("org.eclipse.example.original_feature", "1.0.0"));
IMetadataRepository context = new ImmutableInMemoryMetadataRepository(installableUnits);
// TODO these publishers don't produce artifacts, so we could run without file system
outputRepository = new PublishingRepositoryImpl(p2Context.getAgent(), new ReactorProjectIdentitiesStub(projectDirectory));
PublisherActionRunner publisherRunner = new PublisherActionRunner(context, DEFAULT_ENVIRONMENTS, logVerifier.getLogger());
subject = new PublisherServiceImpl(publisherRunner, DEFAULT_QUALIFIER, outputRepository);
}
Aggregations