Package net.pms.formats

Examples of net.pms.formats.TIF


    assertNotNull("Renderer named \"Playstation 3\" found.", conf);

    // Construct JPG information
    DLNAMediaInfo info = new DLNAMediaInfo();
    info.setContainer("tiff");
    Format format = new TIF();
    format.match("test.tiff");
    assertEquals("PS3 is compatible with TIFF", true,
        conf.isCompatible(info, format));
  }
View Full Code Here


      // Null string
    assertEquals("MP3 does not match null", false, new MP3().match(null));

    // Mixed case
    assertEquals("TIFF matches \"tEsT.TiFf\"", true, new TIF().match("tEsT.TiFf"));

    // Starting with identifier instead of ending
    assertEquals("TIFF does not match \"tiff.test\"", false, new TIF().match("tiff.test"));

    // Substring
    assertEquals("TIFF does not match \"not.tiff.but.mp3\"", false, new TIF().match("not.tiff.but.mp3"));
    }
View Full Code Here

    assertEquals("MP3 matches \"test.mp3\"", true, new MP3().match("test.mp3"));
    assertEquals("MPG matches \"test.mpg\"", true, new MPG().match("test.mpg"));
    assertEquals("OGG matches \"test.ogg\"", true, new OGG().match("test.ogg"));
    assertEquals("PNG matches \"test.png\"", true, new PNG().match("test.png"));
    assertEquals("RAW matches \"test.arw\"", true, new RAW().match("test.arw"));
    assertEquals("TIF matches \"test.tiff\"", true, new TIF().match("test.tiff"));
    assertEquals("WAV matches \"test.wav\"", true, new WAV().match("test.wav"));
    assertEquals("WEB matches \"http\"", true, new WEB().match("http://test.org/"));
  }
View Full Code Here

TOP

Related Classes of net.pms.formats.TIF

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.