Class JavadocOutletTest
- java.lang.Object
-
- org.apache.torque.generator.outlet.java.JavadocOutletTest
-
public class JavadocOutletTest extends Object
-
-
Constructor Summary
Constructors Constructor Description JavadocOutletTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetUp()voidtestCompleteJavadoc()Tests that the javadoc contains both the body and the attributes and both are properly line wrapped.voidtestDoubleWrapAtDifferentAttributes()Checks that between different javadoc attributes, a double line wrap is inserted.voidtestDoubleWrapAtDifferentAttributesWithLineBreak()Checks that between different javadoc attributes where the first ends with a line break, a double line wrap is inserted.voidtestDoubleWrapAtNewAttribute()Checks that a new javadoc attribute causes a double line wrapvoidtestRemoveEndAllButFirstCharacterRemoved()Tests that removeEnd works if everything but the first character is removed.voidtestRemoveEndEmptyString()Tests that removeEnd works for an empty String.voidtestRemoveEndEverythingRemoved()Tests that removeEnd works if everything is removed.voidtestRemoveEndNothingRemoved()Tests that removeEnd works if nothing is removed.voidtestRemoveEndOnlyLastCharacterRemoved()Tests that removeEnd works if only the last character is removed.voidtestRemoveEndPartRemoved()Tests that removeEnd works if a part is removed.voidtestSetIndent()Checks that setIndent works as expected.voidtestSetLineBreak()Checks that setLineBreak works as expected.voidtestSetLineBreakIllegalInput()Checks that setLineBreak works as expected.voidtestSetWrapAfterCharacters()Checks that setWrapAfterCharacters works as expected.voidtestSingleWrapAtAttribute()Checks that a preceding \n or two same javadoc attribute cause a single line wrapvoidtestSingleWrapAtAttributeWithLineBreak()Checks that a preceding \n or two same javadoc attribute cause a single line wrapvoidtestSpaceAtEndRemoved()Checks that a space can cause a line break and the space is removed in the output.voidtestWrapAfterNotRemovedCharacters()Checks that a break-after character can cause a line break , and that a single space after such a break is removed.
-
-
-
Method Detail
-
setUp
public void setUp()
-
testCompleteJavadoc
public void testCompleteJavadoc() throws ExceptionTests that the javadoc contains both the body and the attributes and both are properly line wrapped.- Throws:
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.
-
-