Methods Summary |
---|
public void | setup()
isoFile = new IsoFile(Channels.newChannel(PathTest.class.getResourceAsStream("/multiTrack.3gp")));
|
public void | testComponentMatcher()
Assert.assertTrue(Path.component.matcher("abcd").matches());
Assert.assertTrue(Path.component.matcher("xml ").matches());
Assert.assertTrue(Path.component.matcher("xml [1]").matches());
Assert.assertTrue(Path.component.matcher("..").matches());
|
public void | testGetParent()
Box b1 = isoFile.getMovieBox().getBoxes(TrackBox.class).get(1).getSampleTableBox().getTimeToSampleBox();
Assert.assertEquals(isoFile.getMovieBox().getBoxes(TrackBox.class).get(1).getSampleTableBox(), Path.getPath(b1, ".."));
|
public void | testRoundTrip()
Box b1 = isoFile.getMovieBox().getBoxes(TrackBox.class).get(1).getSampleTableBox().getTimeToSampleBox();
String p = Path.createPath(b1);
Box b2 = Path.getPath(isoFile, p);
Assert.assertSame(b1, b2);
|