Class LineCounterTests.CurrentLineNumberTests

    • Constructor Detail

      • CurrentLineNumberTests

        public CurrentLineNumberTests()
    • Method Detail

      • getNewLine

        protected abstract java.lang.String getNewLine()
      • shouldBeDeterminedFromText

        public void shouldBeDeterminedFromText()
      • shouldBeOneForBlankText

        public void shouldBeOneForBlankText()
      • shouldCountANewLineAtTheEndOfTheText

        public void shouldCountANewLineAtTheEndOfTheText()
      • shouldCountBlankLinesAtTheEndOfTheText

        public void shouldCountBlankLinesAtTheEndOfTheText()
      • shouldCountBlankLinesInTheMiddleOfText

        public void shouldCountBlankLinesInTheMiddleOfText()
      • getCurrentLineNumberFor

        protected int getCurrentLineNumberFor​(java.lang.String text)