Package fr.obeo.releng.targetplatform.tests

Examples of fr.obeo.releng.targetplatform.tests.MockMetadataRepositoryManager


      _builder_2.append("location \"http://download.eclipse.org/sirius/updates/releases/0.9.0/kepler\"");
      _builder_2.newLine();
      org.eclipse.emf.common.util.URI _createURI_2 = org.eclipse.emf.common.util.URI.createURI("tmp:/tp3.tpd");
      this.parser.parse(_builder_2, _createURI_2, resourceSet);
      final ResolvedTargetPlatform targetDef = ResolvedTargetPlatform.create(tp1, this.indexBuilder);
      MockMetadataRepositoryManager _mockMetadataRepositoryManager = new MockMetadataRepositoryManager(new IQueryResultProvider<IInstallableUnit>() {
        public List<IInstallableUnit> listIUs(final URI location) {
          return CollectionLiterals.<IInstallableUnit>emptyList();
        }
      });
      NullProgressMonitor _nullProgressMonitor = new NullProgressMonitor();
View Full Code Here


      _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) {
View Full Code Here

  }
 
  public Object getService(final String serviceName) {
    boolean _equals = IMetadataRepositoryManager.SERVICE_NAME.equals(serviceName);
    if (_equals) {
      return new MockMetadataRepositoryManager(this.resultProvider);
    }
    return null;
  }
View Full Code Here

TOP

Related Classes of fr.obeo.releng.targetplatform.tests.MockMetadataRepositoryManager

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.