Klasse JavadocOutletTest
java.lang.Object
org.apache.torque.generator.outlet.java.JavadocOutletTest
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoid
setUp()
void
Tests that the javadoc contains both the body and the attributes and both are properly line wrapped.void
Checks that between different javadoc attributes, a double line wrap is inserted.void
Checks that between different javadoc attributes where the first ends with a line break, a double line wrap is inserted.void
Checks that a new javadoc attribute causes a double line wrapvoid
Tests that removeEnd works if everything but the first character is removed.void
Tests that removeEnd works for an empty String.void
Tests that removeEnd works if everything is removed.void
Tests that removeEnd works if nothing is removed.void
Tests that removeEnd works if only the last character is removed.void
Tests that removeEnd works if a part is removed.void
Checks that setIndent works as expected.void
Checks that setLineBreak works as expected.void
Checks that setLineBreak works as expected.void
Checks that setWrapAfterCharacters works as expected.void
Checks that a preceding \n or two same javadoc attribute cause a single line wrapvoid
Checks that a preceding \n or two same javadoc attribute cause a single line wrapvoid
Checks that a space can cause a line break and the space is removed in the output.void
Checks that a break-after character can cause a line break , and that a single space after such a break is removed.
-
Konstruktordetails
-
JavadocOutletTest
public JavadocOutletTest()
-
-
Methodendetails
-
setUp
public void setUp() -
testCompleteJavadoc
Tests that the javadoc contains both the body and the attributes and both are properly line wrapped.- Löst aus:
Exception
-
testWrapAfterNotRemovedCharacters
public void testWrapAfterNotRemovedCharacters()Checks that a break-after character can cause a line break , and that a single space after such a break is removed. The boundary cases maxLineLength + 1 and maxLineLength are checked. -
testSpaceAtEndRemoved
public void testSpaceAtEndRemoved()Checks that a space can cause a line break and the space is removed in the output. The boundary cases maxLineLength + 1 and maxLineLength are checked. -
testDoubleWrapAtNewAttribute
public void testDoubleWrapAtNewAttribute()Checks that a new javadoc attribute causes a double line wrap -
testDoubleWrapAtDifferentAttributes
public void testDoubleWrapAtDifferentAttributes()Checks that between different javadoc attributes, a double line wrap is inserted. -
testDoubleWrapAtDifferentAttributesWithLineBreak
public void testDoubleWrapAtDifferentAttributesWithLineBreak()Checks that between different javadoc attributes where the first ends with a line break, a double line wrap is inserted. -
testSingleWrapAtAttribute
public void testSingleWrapAtAttribute()Checks that a preceding \n or two same javadoc attribute cause a single line wrap -
testSingleWrapAtAttributeWithLineBreak
public void testSingleWrapAtAttributeWithLineBreak()Checks that a preceding \n or two same javadoc attribute cause a single line wrap -
testSetWrapAfterCharacters
public void testSetWrapAfterCharacters()Checks that setWrapAfterCharacters works as expected. -
testSetIndent
public void testSetIndent()Checks that setIndent works as expected. -
testSetLineBreak
public void testSetLineBreak()Checks that setLineBreak works as expected. -
testSetLineBreakIllegalInput
public void testSetLineBreakIllegalInput()Checks that setLineBreak works as expected. -
testRemoveEndEmptyString
public void testRemoveEndEmptyString()Tests that removeEnd works for an empty String. -
testRemoveEndEverythingRemoved
public void testRemoveEndEverythingRemoved()Tests that removeEnd works if everything is removed. -
testRemoveEndNothingRemoved
public void testRemoveEndNothingRemoved()Tests that removeEnd works if nothing is removed. -
testRemoveEndPartRemoved
public void testRemoveEndPartRemoved()Tests that removeEnd works if a part is removed. -
testRemoveEndAllButFirstCharacterRemoved
public void testRemoveEndAllButFirstCharacterRemoved()Tests that removeEnd works if everything but the first character is removed. -
testRemoveEndOnlyLastCharacterRemoved
public void testRemoveEndOnlyLastCharacterRemoved()Tests that removeEnd works if only the last character is removed.
-