@Test public void testwrapText8() { String originalText = " "; String wrappedText = DocInputDecorator.wrapText(originalText); String expectedText = " "; assertEquals(expectedText, wrappedText); }
@Test public void testwrapText10() { String originalText = "Defines the layout of data dictionariesDefines the layout of data dictionariesss DefinesthelayoutofdatadictionariesDefinesthelayoutofdatadictionariesss"; String wrappedText = DocInputDecorator.wrapText(originalText); String expectedText = "Defines the layout of data dictionariesDefines the layout of data\ndictionariesss\nDefinesthelayoutofdatadictionariesDefinesthelayoutofdatadictionariesss"; assertEquals(expectedText, wrappedText); }
@Test public void testwrapText1() { String originalText = "Defines the layout of data dictionariesDefines the layout of data dictionaries and the alternate indices for all files"; String wrappedText = DocInputDecorator.wrapText(originalText); String expectedText = "Defines the layout of data dictionariesDefines the layout of data dictionaries\nand the alternate indices for all files"; assertEquals(expectedText, wrappedText); }
@Test public void testwrapText2() { String originalText = "Defines the layout of data dictionariesDefines the layout of data dictionariesss"; String wrappedText = DocInputDecorator.wrapText(originalText); String expectedText = "Defines the layout of data dictionariesDefines the layout of data dictionariesss"; assertEquals(expectedText, wrappedText); assertTrue(wrappedText.length() == 80); }