use of org.eclipse.tycho.repository.p2base.metadata.ImmutableInMemoryMetadataRepository 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