public void testRead() { String filename = OpenCVTestRunner.getTempFileName("yml"); writeFile(filename, "%YAML:1.0\n"); matcher.read(filename); assertTrue(true); // BruteforceMatcher has no settings }
public void testWrite() { String filename = OpenCVTestRunner.getTempFileName("yml"); matcher.write(filename); String truth = "%YAML:1.0\n"; assertEquals(truth, readFile(filename)); }