package org.mp4parser.tools;
import junit.framework.Assert;
import org.junit.Before;
import org.junit.Test;
import org.mp4parser.IsoFile;
import java.io.FileInputStream;
import java.io.IOException;
public class PathTest {
IsoFile isoFile;
@Before
public void setup() throws IOException {
isoFile = new IsoFile(new FileInputStream(PathTest.class.getProtectionDomain().getCodeSource().getLocation().getFile() + "/multiTrack.3gp").getChannel());
}
@Test
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());
}
}