Package fr.obeo.releng.targetplatform

Examples of fr.obeo.releng.targetplatform.TargetPlatform


      _builder.append("target \"tp.a\"");
      _builder.newLine();
      _builder.append("include \"b.tpd\"");
      _builder.newLine();
      URI _createURI = URI.createURI("tmp:/a.tpd");
      final TargetPlatform tpa = this.parser.parse(_builder, _createURI, resourceSet);
      StringConcatenation _builder_1 = new StringConcatenation();
      _builder_1.append("target \"tp.b\"");
      _builder_1.newLine();
      _builder_1.append("include \"c.tpd\"");
      _builder_1.newLine();
      URI _createURI_1 = URI.createURI("tmp:/b.tpd");
      final TargetPlatform tpb = this.parser.parse(_builder_1, _createURI_1, resourceSet);
      StringConcatenation _builder_2 = new StringConcatenation();
      _builder_2.append("target \"tp.c\"");
      _builder_2.newLine();
      _builder_2.append("include \"a.tpd\"");
      _builder_2.newLine();
      URI _createURI_2 = URI.createURI("tmp:/c.tpd");
      final TargetPlatform tpc = this.parser.parse(_builder_2, _createURI_2, resourceSet);
      Resource _eResource = tpa.eResource();
      EList<Resource.Diagnostic> _errors = _eResource.getErrors();
      boolean _isEmpty = _errors.isEmpty();
      Assert.assertTrue(_isEmpty);
      TargetPlatformValidator _validator = tester.validator();
View Full Code Here


      _builder.append("\t");
      _builder.append("org.iu1");
      _builder.newLine();
      _builder.append("}");
      _builder.newLine();
      final TargetPlatform targetPlatform = this.parser.parse(_builder);
      Resource _eResource = targetPlatform.eResource();
      EList<Resource.Diagnostic> _errors = _eResource.getErrors();
      boolean _isEmpty = _errors.isEmpty();
      Assert.assertTrue(_isEmpty);
      TargetPlatformValidator _validator = tester.validator();
      EList<Location> _locations = targetPlatform.getLocations();
      Location _head = IterableExtensions.<Location>head(_locations);
      EList<IU> _ius = _head.getIus();
      IU _head_1 = IterableExtensions.<IU>head(_ius);
      _validator.checkIUIDAndRangeInRepository(_head_1);
      AssertableDiagnostics _diagnose = tester.diagnose();
View Full Code Here

      _builder.append("\t");
      _builder.append("org.iu2");
      _builder.newLine();
      _builder.append("}");
      _builder.newLine();
      final TargetPlatform targetPlatform = this.parser.parse(_builder);
      Resource _eResource = targetPlatform.eResource();
      EList<Resource.Diagnostic> _errors = _eResource.getErrors();
      boolean _isEmpty = _errors.isEmpty();
      Assert.assertTrue(_isEmpty);
      TargetPlatformValidator _validator = tester.validator();
      EList<Location> _locations = targetPlatform.getLocations();
      Location _head = IterableExtensions.<Location>head(_locations);
      EList<IU> _ius = _head.getIus();
      IU _head_1 = IterableExtensions.<IU>head(_ius);
      _validator.checkIUIDAndRangeInRepository(_head_1);
      AssertableDiagnostics _diagnose = tester.diagnose();
View Full Code Here

      _builder.append("\t");
      _builder.append("org.iu3");
      _builder.newLine();
      _builder.append("}");
      _builder.newLine();
      final TargetPlatform targetPlatform = this.parser.parse(_builder);
      Resource _eResource = targetPlatform.eResource();
      EList<Resource.Diagnostic> _errors = _eResource.getErrors();
      boolean _isEmpty = _errors.isEmpty();
      Assert.assertTrue(_isEmpty);
      EList<Location> _locations = targetPlatform.getLocations();
      Location _head = IterableExtensions.<Location>head(_locations);
      EList<IU> _ius = _head.getIus();
      final Procedure1<IU> _function = new Procedure1<IU>() {
        public void apply(final IU it) {
          TargetPlatformValidator _validator = tester.validator();
View Full Code Here

      _builder.append("\t");
      _builder.append("org.iu1 [1.0.0,2)");
      _builder.newLine();
      _builder.append("}");
      _builder.newLine();
      final TargetPlatform targetPlatform = this.parser.parse(_builder);
      Resource _eResource = targetPlatform.eResource();
      EList<Resource.Diagnostic> _errors = _eResource.getErrors();
      boolean _isEmpty = _errors.isEmpty();
      Assert.assertTrue(_isEmpty);
      EList<Location> _locations = targetPlatform.getLocations();
      Location _head = IterableExtensions.<Location>head(_locations);
      EList<IU> _ius = _head.getIus();
      final Procedure1<IU> _function = new Procedure1<IU>() {
        public void apply(final IU it) {
          TargetPlatformValidator _validator = tester.validator();
View Full Code Here

      _builder.append("\t");
      _builder.append("org.iu1 [1.2.1,1.2.3)");
      _builder.newLine();
      _builder.append("}");
      _builder.newLine();
      final TargetPlatform targetPlatform = this.parser.parse(_builder);
      Resource _eResource = targetPlatform.eResource();
      EList<Resource.Diagnostic> _errors = _eResource.getErrors();
      boolean _isEmpty = _errors.isEmpty();
      Assert.assertTrue(_isEmpty);
      EList<Location> _locations = targetPlatform.getLocations();
      Location _head = IterableExtensions.<Location>head(_locations);
      EList<IU> _ius = _head.getIus();
      final Procedure1<IU> _function = new Procedure1<IU>() {
        public void apply(final IU it) {
          TargetPlatformValidator _validator = tester.validator();
View Full Code Here

      _builder.newLine();
      _builder.append("location \"location2\" {");
      _builder.newLine();
      _builder.append("}");
      _builder.newLine();
      final TargetPlatform targetPlatform = this.parser.parse(_builder);
      Resource _eResource = targetPlatform.eResource();
      EList<Resource.Diagnostic> _errors = _eResource.getErrors();
      boolean _isEmpty = _errors.isEmpty();
      Assert.assertTrue(_isEmpty);
      EList<Location> _locations = targetPlatform.getLocations();
      final Procedure1<Location> _function = new Procedure1<Location>() {
        public void apply(final Location it) {
          TargetPlatformValidator _validator = tester.validator();
          _validator.checkLocationURI(it);
        }
View Full Code Here

      _builder.newLine();
      _builder.append("location \"emptyRepository\" {");
      _builder.newLine();
      _builder.append("}");
      _builder.newLine();
      final TargetPlatform targetPlatform = this.parser.parse(_builder);
      Resource _eResource = targetPlatform.eResource();
      EList<Resource.Diagnostic> _errors = _eResource.getErrors();
      boolean _isEmpty = _errors.isEmpty();
      Assert.assertTrue(_isEmpty);
      EList<Location> _locations = targetPlatform.getLocations();
      final Procedure1<Location> _function = new Procedure1<Location>() {
        public void apply(final Location it) {
          TargetPlatformValidator _validator = tester.validator();
          _validator.checkLocationURI(it);
        }
View Full Code Here

      _builder.newLine();
      _builder.append("location \"badLocation\" {");
      _builder.newLine();
      _builder.append("}");
      _builder.newLine();
      final TargetPlatform targetPlatform = this.parser.parse(_builder);
      Resource _eResource = targetPlatform.eResource();
      EList<Resource.Diagnostic> _errors = _eResource.getErrors();
      boolean _isEmpty = _errors.isEmpty();
      Assert.assertTrue(_isEmpty);
      EList<Location> _locations = targetPlatform.getLocations();
      final Procedure1<Location> _function = new Procedure1<Location>() {
        public void apply(final Location it) {
          TargetPlatformValidator _validator = tester.validator();
          _validator.checkLocationURI(it);
        }
View Full Code Here

      StringConcatenation _builder = new StringConcatenation();
      _builder.append("target \"a target platform\"");
      _builder.newLine();
      _builder.append("environment macosx COCOA x86_64 JavaSE-1.6 fr_FR");
      _builder.newLine();
      final TargetPlatform targetPlatform = this.parser.parse(_builder);
      Resource _eResource = targetPlatform.eResource();
      EList<Resource.Diagnostic> _errors = _eResource.getErrors();
      boolean _isEmpty = _errors.isEmpty();
      Assert.assertTrue(_isEmpty);
      TargetPlatformValidator _validator = tester.validator();
      Environment _environment = targetPlatform.getEnvironment();
      _validator.checkEnvironment(_environment);
      AssertableDiagnostics _diagnose = tester.diagnose();
      Iterable<Diagnostic> _allDiagnostics = _diagnose.getAllDiagnostics();
      Iterable<AbstractValidationDiagnostic> _filter = Iterables.<AbstractValidationDiagnostic>filter(_allDiagnostics, AbstractValidationDiagnostic.class);
      final List<AbstractValidationDiagnostic> diagnotics = IterableExtensions.<AbstractValidationDiagnostic>toList(_filter);
View Full Code Here

TOP

Related Classes of fr.obeo.releng.targetplatform.TargetPlatform

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.