private void WhenGetTutorialIsCalled() throws Exception { tutorial = tutorialPresenter.GetTutorial( "testClassName", "test query", linesOfCode, wordInfoList, "blank source", oriWordInfoList); }
@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); }