@Test public void testSetText() throws IOException { final String text = "hi"; loremIpsum.setText(text); Assert.assertEquals(text, loremIpsum.getText()); Assert.assertEquals(1, loremIpsum.getNumParagraphs()); Assert.assertEquals(1, loremIpsum.getNumSentences()); Assert.assertEquals(1, loremIpsum.getNumWords()); }
public void setText(final String text_) throws IOException { Verify.notNull(text_, PARM_text); text = normalize(text_); paragraphs = text.split(REGEX_PARAGRAPHS); sentences = text.split(REGEX_SENTENCES); words = text.split(REGEX_WORDS); }
LoremIpsum { public void setText(final String text_) throws IOException { Verify.notNull(text_, PARM_text); text = normalize(text_); paragraphs = text.split(REGEX_PARAGRAPHS); sentences = text.split(REGEX_SENTENCES); words = text.split(REGEX_WORDS); } }
LoremIpsum { public void setText(final String text_) throws IOException { Verify.notNull(text_, PARM_text); text = normalize(text_); paragraphs = text.split(REGEX_PARAGRAPHS); sentences = text.split(REGEX_SENTENCES); words = text.split(REGEX_WORDS); } LoremIpsum();  LoremIpsum(final String text_); }
LoremIpsum { public void setText(final String text_) throws IOException { Verify.notNull(text_, PARM_text); text = normalize(text_); paragraphs = text.split(REGEX_PARAGRAPHS); sentences = text.split(REGEX_SENTENCES); words = text.split(REGEX_WORDS); } LoremIpsum();  LoremIpsum(final String text_); int getNumParagraphs(); int getNumSentences(); int getNumWords(); String getText(); String getParagraph(final int i_); String getSentence(final int i_); String getWord(final int i_); final void loadTextResource(); final void loadTextResource(final String resource_); static String normalize(final String text_); void setText(final String text_); }
LoremIpsum { public void setText(final String text_) throws IOException { Verify.notNull(text_, PARM_text); text = normalize(text_); paragraphs = text.split(REGEX_PARAGRAPHS); sentences = text.split(REGEX_SENTENCES); words = text.split(REGEX_WORDS); } LoremIpsum();  LoremIpsum(final String text_); int getNumParagraphs(); int getNumSentences(); int getNumWords(); String getText(); String getParagraph(final int i_); String getSentence(final int i_); String getWord(final int i_); final void loadTextResource(); final void loadTextResource(final String resource_); static String normalize(final String text_); void setText(final String text_); static final String LOREM_IPSUM_RESOURCE; }