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); }
private void GivenValidWordInfoList() { wordInfo.wordToBeBlanked = "out"; wordInfo.lineNumber = 3; wordInfo.columnNumber = 7; wordInfo.blankType = BlankType.Text; wordInfoList.add(wordInfo); }
@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); }