_builder_1.newLine();
_builder_1.append("}");
_builder_1.newLine();
org.eclipse.emf.common.util.URI _createURI_1 = org.eclipse.emf.common.util.URI.createURI("tmp:/tp2.tpd");
this.parser.parse(_builder_1, _createURI_1, resourceSet);
final ResolvedTargetPlatform targetDef = ResolvedTargetPlatform.create(tp1, this.indexBuilder);
MockMetadataRepositoryManager _mockMetadataRepositoryManager = new MockMetadataRepositoryManager(new IQueryResultProvider<IInstallableUnit>() {
public List<IInstallableUnit> listIUs(final URI location) {
List<IInstallableUnit> _xifexpression = null;
String _string = location.toString();
boolean _equals = "http://download.eclipse.org/tools/orbit/downloads/drops/R20130517111416/repository/".equals(_string);
if (_equals) {
Version _createOSGi = Version.createOSGi(10, 0, 0);
MockIU _mockIU = new MockIU("com.google.guava", _createOSGi);
Version _createOSGi_1 = Version.createOSGi(11, 0, 2);
MockIU _mockIU_1 = new MockIU("com.google.guava", _createOSGi_1);
Version _createOSGi_2 = Version.createOSGi(12, 0, 0);
MockIU _mockIU_2 = new MockIU("com.google.guava", _createOSGi_2);
_xifexpression = CollectionLiterals.<IInstallableUnit>newImmutableList(_mockIU, _mockIU_1, _mockIU_2);
} else {
return CollectionLiterals.<IInstallableUnit>emptyList();
}
return _xifexpression;
}
});
NullProgressMonitor _nullProgressMonitor = new NullProgressMonitor();
targetDef.resolve(_mockMetadataRepositoryManager, _nullProgressMonitor);
String _name = targetDef.getName();
Assert.assertEquals("TP1", _name);
List<ResolvedLocation> _locations = targetDef.getLocations();
int _size = _locations.size();
Assert.assertEquals(1, _size);
List<ResolvedLocation> _locations_1 = targetDef.getLocations();
final Function1<ResolvedLocation, List<String>> _function = new Function1<ResolvedLocation, List<String>>() {
public List<String> apply(final ResolvedLocation it) {
List<IInstallableUnit> _resolvedIUs = it.getResolvedIUs();
final Function1<IInstallableUnit, String> _function = new Function1<IInstallableUnit, String>() {
public String apply(final IInstallableUnit it) {
return it.getId();
}
};
return ListExtensions.<IInstallableUnit, String>map(_resolvedIUs, _function);
}
};
List<List<String>> _map = ListExtensions.<ResolvedLocation, List<String>>map(_locations_1, _function);
final String[] ids = ((String[])Conversions.unwrapArray(Iterables.<String>concat(_map), String.class));
List<ResolvedLocation> _locations_2 = targetDef.getLocations();
final Function1<ResolvedLocation, List<Version>> _function_1 = new Function1<ResolvedLocation, List<Version>>() {
public List<Version> apply(final ResolvedLocation it) {
List<IInstallableUnit> _resolvedIUs = it.getResolvedIUs();
final Function1<IInstallableUnit, Version> _function = new Function1<IInstallableUnit, Version>() {
public Version apply(final IInstallableUnit it) {