* @author Ben Yu
*/
public class DefaultSourceLocatorTest extends TestCase {
public void testLocate_onlyOneLineBreakCharacter() {
DefaultSourceLocator locator = new DefaultSourceLocator("\n");
Location location = locator.locate(0);
assertEquals(new Location(1, 1), location);
assertEquals(location, locator.locate(0));
assertEquals(new Location(2, 1), locator.locate(1));
}