コード例 #1
0
  private void GivenValidMultipleWordInfoList() {

    wordInfo = new WordInfo();
    wordInfo.wordToBeBlanked = "out";
    wordInfo.lineNumber = 3;
    wordInfo.columnNumber = 7;
    wordInfo.blankType = BlankType.Text;
    wordInfoList.add(wordInfo);
    wordInfo = new WordInfo();
    wordInfo.wordToBeBlanked = "static";
    wordInfo.blankType = BlankType.Text;
    wordInfo.lineNumber = 2;
    wordInfo.columnNumber = 7;
    wordInfoList.add(wordInfo);
  }
コード例 #2
0
 private void GivenValidWordInfoList() {
   wordInfo.wordToBeBlanked = "out";
   wordInfo.lineNumber = 3;
   wordInfo.columnNumber = 7;
   wordInfo.blankType = BlankType.Text;
   wordInfoList.add(wordInfo);
 }
コード例 #3
0
 @Test
 public final void GetTutorialReturnsNullOnPassingInvalidParams() throws Exception {
   wordInfo.wordToBeBlanked = "new";
   wordInfo.lineNumber = 2;
   wordInfo.blankType = BlankType.Text;
   wordInfo.columnNumber = 10;
   wordInfoList.add(wordInfo);
   tutorial =
       tutorialPresenter.GetTutorial(
           "sampleName", "query", linesOfCode, wordInfoList, "blank source", oriWordInfoList);
   assertEquals(null, tutorial);
 }