@Test public void a_lpha_brav_o_IS_NOT_recognized_for_start_a_end_o() { FormattedTextFinder finderToTest = new FormattedTextFinder("a","o"); String text = "a lpha brav o"; TestStringScanner scanner = new TestStringScanner(text); boolean found = finderToTest.isFound(scanner); assertFalse(found); assertEquals(0,scanner.pos); }
public boolean isFound(PlainJavaCharacterScanner adapter) { if (TRACE_MODE) { adapter.startTracing(); } boolean isFound = find(adapter); if (!isFound) { adapter.rewind(); } return isFound; }
FormattedTextFinder { public boolean isFound(PlainJavaCharacterScanner adapter) { if (TRACE_MODE) { adapter.startTracing(); } boolean isFound = find(adapter); if (!isFound) { adapter.rewind(); } return isFound; } }
FormattedTextFinder { public boolean isFound(PlainJavaCharacterScanner adapter) { if (TRACE_MODE) { adapter.startTracing(); } boolean isFound = find(adapter); if (!isFound) { adapter.rewind(); } return isFound; } FormattedTextFinder(String start, String end); }
FormattedTextFinder { public boolean isFound(PlainJavaCharacterScanner adapter) { if (TRACE_MODE) { adapter.startTracing(); } boolean isFound = find(adapter); if (!isFound) { adapter.rewind(); } return isFound; } FormattedTextFinder(String start, String end); boolean isFound(PlainJavaCharacterScanner adapter); }
FormattedTextFinder { public boolean isFound(PlainJavaCharacterScanner adapter) { if (TRACE_MODE) { adapter.startTracing(); } boolean isFound = find(adapter); if (!isFound) { adapter.rewind(); } return isFound; } FormattedTextFinder(String start, String end); boolean isFound(PlainJavaCharacterScanner adapter);  }