_builder.newLine();
_builder.append("}");
_builder.newLine();
org.eclipse.emf.common.util.URI _createURI = org.eclipse.emf.common.util.URI.createURI("tmp:/tp1.tpd");
final TargetPlatform tp1 = this.parser.parse(_builder, _createURI, 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/modeling/emf/compare/updates/releases/2.1/R201310031412/".equals(_string);
if (_equals) {
Version _createOSGi = Version.createOSGi(1, 0, 0);
MockIU _mockIU = new MockIU("org.eclipse.emf.compare.rcp.ui.feature.group", _createOSGi);
Version _createOSGi_1 = Version.createOSGi(1, 0, 0);
MockIU _mockIU_1 = new MockIU("org.eclipse.emf.compare.ide.ui.feature.group", _createOSGi_1);
_xifexpression = CollectionLiterals.<IInstallableUnit>newImmutableList(_mockIU, _mockIU_1);
} 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) {