Examples of ISO


Examples of net.pms.formats.ISO

        format.ps3compatible(),  conf.isCompatible(info, format));

    // ISO: false
    info = new DLNAMediaInfo();
    info.setContainer("iso");
    format = new ISO();
    format.match("test.iso");
    assertEquals("isCompatible() gives same outcome as ps3compatible() for ISO",
        format.ps3compatible(),  conf.isCompatible(info, format));

    // JPG: true
View Full Code Here

Examples of net.pms.formats.ISO

  public void testFormatIdentifiers() {
    // Identifier tests based on the identifiers defined in getId() of each class
    assertEquals("DVRMS matches \"test.dvr\"", true, new DVRMS().match("test.dvr"));
    assertEquals("FLAC matches \"test.flac\"", true, new FLAC().match("test.flac"));
    assertEquals("GIF matches \"test.gif\"", true, new GIF().match("test.gif"));
    assertEquals("ISO matches \"test.iso\"", true, new ISO().match("test.iso"));
    assertEquals("JPG matches \"test.jpg\"", true, new JPG().match("test.jpg"));
    assertEquals("M4A matches \"test.wma\"", true, new M4A().match("test.wma"));
    assertEquals("MKV matches \"test.mkv\"", true, new MKV().match("test.mkv"));
    assertEquals("MP3 matches \"test.mp3\"", true, new MP3().match("test.mp3"));
    assertEquals("MPG matches \"test.mpg\"", true, new MPG().match("test.mpg"));
View Full Code Here

Examples of org.apache.cloudstack.storage.image.format.ISO

        ImageDataVO template = createForUpdate();
        template.setRemoved(new Date());

        ImageDataVO vo = findById(id);
        if (vo != null) {
            if (vo.getFormat().equalsIgnoreCase(new ISO().toString())) {
                _tagsDao.removeByIdAndType(id, TaggedResourceType.ISO);
            } else {
                _tagsDao.removeByIdAndType(id, TaggedResourceType.Template);
            }
        }
View Full Code Here

Examples of org.jclouds.cloudstack.domain.ISO

      assertFalse(response.isEmpty());
      long isoCount = response.size();
      assertTrue(isoCount >= 0);

      for (ISO iso : response) {
         ISO query = client.getISOClient().getISO(iso.getId());
         assertEquals(query.getId(), iso.getId());
      }
   }
View Full Code Here

Examples of org.jclouds.cloudstack.domain.ISO

      Optional<OSType> guestOSTypeOptional = Iterables.tryFind(client.getGuestOSClient().listOSTypes(), Predicates.notNull());
      Optional<Zone> zoneOptional = Iterables.tryFind(client.getZoneClient().listZones(available(true)), Predicates.notNull());
      if(guestOSTypeOptional.isPresent() && zoneOptional.isPresent()) {
         String osTypeId = guestOSTypeOptional.get().getId();
         String zoneId = zoneOptional.get().getId();
         ISO iso = client.getISOClient().registerISO(isoName, "", url, zoneId, RegisterISOOptions.Builder.isPublic(true).osTypeId(osTypeId));
             assertNotNull(iso);
             assertNotNull(iso.getId());
             assertEquals(iso.getName(), isoName);
      } else {
         String skipMessage = String.format("Cannot register the iso with url: %s", url);
         if(zoneOptional.isPresent())
             skipMessage += " without a valid zone";
         else
View Full Code Here

Examples of org.jclouds.cloudstack.domain.ISO

      assertFalse(response.isEmpty());
      long isoCount = response.size();
      assertTrue(isoCount >= 0);

      for (ISO iso : response) {
         ISO query = client.getISOApi().getISO(iso.getId());
         assertEquals(query.getId(), iso.getId());
      }
   }
View Full Code Here

Examples of org.jclouds.cloudstack.domain.ISO

      Optional<OSType> guestOSTypeOptional = Iterables.tryFind(client.getGuestOSApi().listOSTypes(), Predicates.notNull());
      Optional<Zone> zoneOptional = Iterables.tryFind(client.getZoneApi().listZones(available(true)), Predicates.notNull());
      if (guestOSTypeOptional.isPresent() && zoneOptional.isPresent()) {
         String osTypeId = guestOSTypeOptional.get().getId();
         String zoneId = zoneOptional.get().getId();
         ISO iso = client.getISOApi().registerISO(isoName, "", url, zoneId, RegisterISOOptions.Builder.isPublic(true).osTypeId(osTypeId));
             assertNotNull(iso);
             assertNotNull(iso.getId());
             assertEquals(iso.getName(), isoName);
      } else {
         String skipMessage = String.format("Cannot register the iso with url: %s", url);
         if (zoneOptional.isPresent())
             skipMessage += " without a valid zone";
         else
View Full Code Here

Examples of org.jclouds.cloudstack.domain.ISO

      assertFalse(response.isEmpty());
      long isoCount = response.size();
      assertTrue(isoCount >= 0);

      for (ISO iso : response) {
         ISO query = client.getISOClient().getISO(iso.getId());
         assertEquals(query.getId(), iso.getId());
      }
   }
View Full Code Here

Examples of org.jclouds.cloudstack.domain.ISO

      Optional<OSType> guestOSTypeOptional = Iterables.tryFind(client.getGuestOSClient().listOSTypes(), Predicates.notNull());
      Optional<Zone> zoneOptional = Iterables.tryFind(client.getZoneClient().listZones(available(true)), Predicates.notNull());
      if(guestOSTypeOptional.isPresent() && zoneOptional.isPresent()) {
         String osTypeId = guestOSTypeOptional.get().getId();
         String zoneId = zoneOptional.get().getId();
         ISO iso = client.getISOClient().registerISO(isoName, "", url, zoneId, RegisterISOOptions.Builder.isPublic(true).osTypeId(osTypeId));
             assertNotNull(iso);
             assertNotNull(iso.getId());
             assertEquals(iso.getName(), isoName);
      } else {
         String skipMessage = String.format("Cannot register the iso with url: %s", url);
         if(zoneOptional.isPresent())
             skipMessage += " without a valid zone";
         else
View Full Code Here

Examples of org.jclouds.cloudstack.domain.ISO

      assertFalse(response.isEmpty());
      long isoCount = response.size();
      assertTrue(isoCount >= 0);

      for (ISO iso : response) {
         ISO query = client.getISOApi().getISO(iso.getId());
         assertEquals(query.getId(), iso.getId());
      }
   }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.