コード例 #1
0
  public void testRead() {
    String filename = OpenCVTestRunner.getTempFileName("yml");
    writeFile(filename, "%YAML:1.0\n");

    matcher.read(filename);
    assertTrue(true); // BruteforceMatcher has no settings
  }
コード例 #2
0
  public void testWrite() {
    String filename = OpenCVTestRunner.getTempFileName("yml");

    matcher.write(filename);

    String truth = "%YAML:1.0\n";
    assertEquals(truth, readFile(filename));
  }