_builder.append("org.eclipse.emf.compare.rcp.ui.feature.group");
_builder.newLine();
_builder.append("}");
_builder.newLine();
final TargetPlatform tp = this.parser.parse(_builder);
final ResolvedTargetPlatform resolvedTargetPlatform = ResolvedTargetPlatform.create(tp, 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/egit/updates-3.3".equals(_string);
if (_equals) {
Version _createOSGi = Version.createOSGi(3, 3, 2);
MockIU _createFeature = MockIU.createFeature("org.eclipse.egit.feature.group", _createOSGi);
Version _createOSGi_1 = Version.createOSGi(3, 3, 2);
MockIU _createFeature_1 = MockIU.createFeature("org.eclipse.egit.mylyn.feature.group", _createOSGi_1);
_xifexpression = CollectionLiterals.<IInstallableUnit>newImmutableList(_createFeature, _createFeature_1);
} else {
List<IInstallableUnit> _xifexpression_1 = null;
String _string_1 = location.toString();
boolean _equals_1 = "http://download.eclipse.org/tools/orbit/downloads/drops/R20130517111416/repository/".equals(_string_1);
if (_equals_1) {
Version _createOSGi_2 = Version.createOSGi(10, 0, 0);
MockIU _createFeature_2 = MockIU.createFeature("com.google.guava", _createOSGi_2);
Version _createOSGi_3 = Version.createOSGi(11, 0, 2);
MockIU _createFeature_3 = MockIU.createFeature("com.google.guava", _createOSGi_3);
Version _createOSGi_4 = Version.createOSGi(12, 0, 0);
MockIU _createFeature_4 = MockIU.createFeature("com.google.guava", _createOSGi_4);
_xifexpression_1 = CollectionLiterals.<IInstallableUnit>newImmutableList(_createFeature_2, _createFeature_3, _createFeature_4);
} else {
List<IInstallableUnit> _xifexpression_2 = null;
String _string_2 = location.toString();
boolean _equals_2 = "http://download.eclipse.org/modeling/emf/compare/updates/releases/2.1/R201310031412/".equals(_string_2);
if (_equals_2) {
Version _createOSGi_5 = Version.createOSGi(5, 0, 0);
MockIU _createFeature_5 = MockIU.createFeature("org.eclipse.emf.compare.rcp.ui.feature.group", _createOSGi_5);
_xifexpression_2 = CollectionLiterals.<IInstallableUnit>newImmutableList(_createFeature_5);
} else {
return CollectionLiterals.<IInstallableUnit>emptyList();
}
_xifexpression_1 = _xifexpression_2;
}
_xifexpression = _xifexpression_1;
}
return _xifexpression;
}
});
NullProgressMonitor _nullProgressMonitor = new NullProgressMonitor();
final Diagnostic d = resolvedTargetPlatform.resolve(_mockMetadataRepositoryManager, _nullProgressMonitor);
int _severity = d.getSeverity();
Assert.assertEquals(Diagnostic.ERROR, _severity);
List<Diagnostic> _children = d.getChildren();
String _join = IterableExtensions.join(_children, ", ");
List<Diagnostic> _children_1 = d.getChildren();