Search in sources :

Example 1 with WebStream

use of net.pms.dlna.WebStream in project UniversalMediaServer by UniversalMediaServer.

the class PlayerUtilTest method setUpClass.

@BeforeClass
public static void setUpClass() {
    // initialise the fixtures
    // XXX we need to call isValid to call checktype(), which is needed to initialise the format
    image = new RealFile(getNonExistingFile("test.jpg"));
    image.isValid();
    audio = new RealFile(getNonExistingFile("test.mp3"));
    audio.isValid();
    video = new RealFile(getNonExistingFile("test.mpg"));
    video.isValid();
    webImage = new WebStream("", "http://example.com/test.jpg", "", Format.IMAGE);
    webImage.isValid();
    webAudio = new WebStream("", "http://example.com/test.mp3", "", Format.AUDIO);
    webAudio.isValid();
    webVideo = new WebStream("", "http://example.com/test.mpg", "", Format.VIDEO);
    webVideo.isValid();
}
Also used : WebStream(net.pms.dlna.WebStream) RealFile(net.pms.dlna.RealFile) BeforeClass(org.junit.BeforeClass)

Aggregations

RealFile (net.pms.dlna.RealFile)1 WebStream (net.pms.dlna.WebStream)1 BeforeClass (org.junit.BeforeClass)1