Package fr.obeo.releng.targetplatform.resolved

Examples of fr.obeo.releng.targetplatform.resolved.ResolvedLocation


      targetDef.resolve(_mockMetadataRepositoryManager, _nullProgressMonitor);
      List<ResolvedLocation> _locations = targetDef.getLocations();
      int _size = _locations.size();
      Assert.assertEquals(1, _size);
      List<ResolvedLocation> _locations_1 = targetDef.getLocations();
      final ResolvedLocation loc = IterableExtensions.<ResolvedLocation>head(_locations_1);
      List<IInstallableUnit> _resolvedIUs = loc.getResolvedIUs();
      int _size_1 = _resolvedIUs.size();
      Assert.assertEquals(2, _size_1);
      List<IInstallableUnit> _resolvedIUs_1 = loc.getResolvedIUs();
      final Function1<IInstallableUnit, String> _function = new Function1<IInstallableUnit, String>() {
        public String apply(final IInstallableUnit it) {
          return it.getId();
        }
      };
      final String[] ids = ((String[])Conversions.unwrapArray(ListExtensions.<IInstallableUnit, String>map(_resolvedIUs_1, _function), String.class));
      List<IInstallableUnit> _resolvedIUs_2 = loc.getResolvedIUs();
      final Function1<IInstallableUnit, Version> _function_1 = new Function1<IInstallableUnit, Version>() {
        public Version apply(final IInstallableUnit it) {
          return it.getVersion();
        }
      };
View Full Code Here


      Assert.assertEquals("TP1", _name);
      List<ResolvedLocation> _locations = targetDef.getLocations();
      int _size = _locations.size();
      Assert.assertEquals(2, _size);
      List<ResolvedLocation> _locations_1 = targetDef.getLocations();
      ResolvedLocation _head = IterableExtensions.<ResolvedLocation>head(_locations_1);
      URI _uRI = _head.getURI();
      String _string = _uRI.toString();
      Assert.assertEquals("http://download.eclipse.org/modeling/emf/emf/updates/2.9.x/core/R201402030812/", _string);
      List<ResolvedLocation> _locations_2 = targetDef.getLocations();
      ResolvedLocation _get = _locations_2.get(1);
      URI _uRI_1 = _get.getURI();
      String _string_1 = _uRI_1.toString();
      Assert.assertEquals("http://download.eclipse.org/modeling/emf/compare/updates/releases/2.1/R201310031412/", _string_1);
      List<ResolvedLocation> _locations_3 = targetDef.getLocations();
      final Function1<ResolvedLocation, List<String>> _function = new Function1<ResolvedLocation, List<String>>() {
        public List<String> apply(final ResolvedLocation it) {
View Full Code Here

        }
      });
      NullProgressMonitor _nullProgressMonitor = new NullProgressMonitor();
      targetDef.resolve(_mockMetadataRepositoryManager, _nullProgressMonitor);
      List<ResolvedLocation> _locations = targetDef.getLocations();
      ResolvedLocation _get = _locations.get(0);
      URI _uRI = _get.getURI();
      String _string = _uRI.toString();
      Assert.assertEquals("http://download.eclipse.org/egit/updates-3.3", _string);
      List<ResolvedLocation> _locations_1 = targetDef.getLocations();
      ResolvedLocation _get_1 = _locations_1.get(1);
      URI _uRI_1 = _get_1.getURI();
      String _string_1 = _uRI_1.toString();
      Assert.assertEquals("http://download.eclipse.org/modeling/emf/emf/updates/2.9.x/core/R201402030812/", _string_1);
      List<ResolvedLocation> _locations_2 = targetDef.getLocations();
      ResolvedLocation _get_2 = _locations_2.get(2);
      URI _uRI_2 = _get_2.getURI();
      String _string_2 = _uRI_2.toString();
      Assert.assertEquals("http://download.eclipse.org/modeling/emf/compare/updates/releases/2.1/R201310031412/", _string_2);
      List<ResolvedLocation> _locations_3 = targetDef.getLocations();
      ResolvedLocation _get_3 = _locations_3.get(3);
      URI _uRI_3 = _get_3.getURI();
      String _string_3 = _uRI_3.toString();
      Assert.assertEquals("http://download.eclipse.org/tools/orbit/downloads/drops/R20130517111416/repository/", _string_3);
    } catch (Throwable _e) {
      throw Exceptions.sneakyThrow(_e);
    }
View Full Code Here

        }
      });
      NullProgressMonitor _nullProgressMonitor = new NullProgressMonitor();
      targetDef.resolve(_mockMetadataRepositoryManager, _nullProgressMonitor);
      List<ResolvedLocation> _locations = targetDef.getLocations();
      ResolvedLocation _get = _locations.get(0);
      URI _uRI = _get.getURI();
      String _string = _uRI.toString();
      Assert.assertEquals("http://mbarbero.github.io/fr.obeo.releng.targetplatform/p2/latest/", _string);
      List<ResolvedLocation> _locations_1 = targetDef.getLocations();
      ResolvedLocation _get_1 = _locations_1.get(1);
      URI _uRI_1 = _get_1.getURI();
      String _string_1 = _uRI_1.toString();
      Assert.assertEquals("http://download.eclipse.org/egit/updates-3.3", _string_1);
      List<ResolvedLocation> _locations_2 = targetDef.getLocations();
      ResolvedLocation _get_2 = _locations_2.get(2);
      URI _uRI_2 = _get_2.getURI();
      String _string_2 = _uRI_2.toString();
      Assert.assertEquals("http://download.eclipse.org/sirius/updates/releases/0.9.0/kepler", _string_2);
      List<ResolvedLocation> _locations_3 = targetDef.getLocations();
      ResolvedLocation _get_3 = _locations_3.get(3);
      URI _uRI_3 = _get_3.getURI();
      String _string_3 = _uRI_3.toString();
      Assert.assertEquals("http://download.eclipse.org/modeling/emf/emf/updates/2.9.x/core/R201402030812/", _string_3);
      List<ResolvedLocation> _locations_4 = targetDef.getLocations();
      ResolvedLocation _get_4 = _locations_4.get(4);
      URI _uRI_4 = _get_4.getURI();
      String _string_4 = _uRI_4.toString();
      Assert.assertEquals("http://download.eclipse.org/modeling/emf/compare/updates/releases/2.1/R201310031412/", _string_4);
      List<ResolvedLocation> _locations_5 = targetDef.getLocations();
      ResolvedLocation _get_5 = _locations_5.get(5);
      URI _uRI_5 = _get_5.getURI();
      String _string_5 = _uRI_5.toString();
      Assert.assertEquals("http://download.eclipse.org/tools/orbit/downloads/drops/R20130517111416/repository/", _string_5);
    } catch (Throwable _e) {
      throw Exceptions.sneakyThrow(_e);
    }
View Full Code Here

        }
      });
      NullProgressMonitor _nullProgressMonitor = new NullProgressMonitor();
      targetDef.resolve(_mockMetadataRepositoryManager, _nullProgressMonitor);
      List<ResolvedLocation> _locations = targetDef.getLocations();
      ResolvedLocation _get = _locations.get(0);
      URI _uRI = _get.getURI();
      String _string = _uRI.toString();
      Assert.assertEquals("http://download.eclipse.org/tools/orbit/downloads/drops/R20130517111416/repository/", _string);
      List<ResolvedLocation> _locations_1 = targetDef.getLocations();
      ResolvedLocation _get_1 = _locations_1.get(1);
      URI _uRI_1 = _get_1.getURI();
      String _string_1 = _uRI_1.toString();
      Assert.assertEquals("http://download.eclipse.org/sirius/updates/releases/0.9.0/kepler", _string_1);
      List<ResolvedLocation> _locations_2 = targetDef.getLocations();
      ResolvedLocation _get_2 = _locations_2.get(2);
      URI _uRI_2 = _get_2.getURI();
      String _string_2 = _uRI_2.toString();
      Assert.assertEquals("http://mbarbero.github.io/fr.obeo.releng.targetplatform/p2/latest/", _string_2);
      List<ResolvedLocation> _locations_3 = targetDef.getLocations();
      ResolvedLocation _get_3 = _locations_3.get(3);
      URI _uRI_3 = _get_3.getURI();
      String _string_3 = _uRI_3.toString();
      Assert.assertEquals("http://download.eclipse.org/egit/updates-3.3", _string_3);
      List<ResolvedLocation> _locations_4 = targetDef.getLocations();
      ResolvedLocation _get_4 = _locations_4.get(4);
      URI _uRI_4 = _get_4.getURI();
      String _string_4 = _uRI_4.toString();
      Assert.assertEquals("http://download.eclipse.org/modeling/emf/emf/updates/2.9.x/core/R201402030812/", _string_4);
      List<ResolvedLocation> _locations_5 = targetDef.getLocations();
      ResolvedLocation _get_5 = _locations_5.get(5);
      URI _uRI_5 = _get_5.getURI();
      String _string_5 = _uRI_5.toString();
      Assert.assertEquals("http://download.eclipse.org/modeling/emf/compare/updates/releases/2.1/R201310031412/", _string_5);
    } catch (Throwable _e) {
      throw Exceptions.sneakyThrow(_e);
    }
View Full Code Here

        }
      });
      NullProgressMonitor _nullProgressMonitor = new NullProgressMonitor();
      targetDef.resolve(_mockMetadataRepositoryManager, _nullProgressMonitor);
      List<ResolvedLocation> _locations = targetDef.getLocations();
      ResolvedLocation _get = _locations.get(0);
      URI _uRI = _get.getURI();
      String _string = _uRI.toString();
      Assert.assertEquals("http://download.eclipse.org/tools/orbit/downloads/drops/R20130517111416/repository/", _string);
      List<ResolvedLocation> _locations_1 = targetDef.getLocations();
      ResolvedLocation _get_1 = _locations_1.get(1);
      URI _uRI_1 = _get_1.getURI();
      String _string_1 = _uRI_1.toString();
      Assert.assertEquals("http://download.eclipse.org/sirius/updates/releases/0.9.0/kepler", _string_1);
      List<ResolvedLocation> _locations_2 = targetDef.getLocations();
      ResolvedLocation _get_2 = _locations_2.get(2);
      URI _uRI_2 = _get_2.getURI();
      String _string_2 = _uRI_2.toString();
      Assert.assertEquals("http://mbarbero.github.io/fr.obeo.releng.targetplatform/p2/latest/", _string_2);
      List<ResolvedLocation> _locations_3 = targetDef.getLocations();
      ResolvedLocation _get_3 = _locations_3.get(3);
      URI _uRI_3 = _get_3.getURI();
      String _string_3 = _uRI_3.toString();
      Assert.assertEquals("http://download.eclipse.org/egit/updates-3.3", _string_3);
      List<ResolvedLocation> _locations_4 = targetDef.getLocations();
      ResolvedLocation _get_4 = _locations_4.get(4);
      URI _uRI_4 = _get_4.getURI();
      String _string_4 = _uRI_4.toString();
      Assert.assertEquals("http://download.eclipse.org/modeling/emf/emf/updates/2.9.x/core/R201402030812/", _string_4);
      List<ResolvedLocation> _locations_5 = targetDef.getLocations();
      ResolvedLocation _get_5 = _locations_5.get(5);
      URI _uRI_5 = _get_5.getURI();
      String _string_5 = _uRI_5.toString();
      Assert.assertEquals("http://download.eclipse.org/modeling/emf/compare/updates/releases/2.1/R201310031412/", _string_5);
    } catch (Throwable _e) {
      throw Exceptions.sneakyThrow(_e);
    }
View Full Code Here

TOP

Related Classes of fr.obeo.releng.targetplatform.resolved.ResolvedLocation

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.