View | Details | Raw Unified | Return to bug 24711
Collapse All | Expand All

(-)src/testcases/org/apache/tools/ant/taskdefs/MacroDefTest.java (-1 / +35 lines)
Lines 136-140 Link Here
136
            "duplicatetextname2",
136
            "duplicatetextname2",
137
            "the attribute name \"text\" has already been used by the text element");
137
            "the attribute name \"text\" has already been used by the text element");
138
    }
138
    }
139
}
140
139
140
    public void testAttributeNoDescription() {
141
        expectBuildException(
142
            "attribute-no-description",
143
            "Required attribute requiredattribute not set");
144
    }
145
146
    public void testAttributeDescription1() {
147
        expectLog("attribute-description1", "@{requiredattribute}=A-OK!");
148
    }
149
150
    public void testAttributeDescription2() {
151
        expectBuildException(
152
            "attribute-description2",
153
            "Required attribute requiredattribute not set; "
154
                + "description=\"required attribute\"");
155
    }
156
157
    public void testElementNoDescription() {
158
        expectBuildException(
159
            "element-no-description",
160
            "Required nested element requiredelement not set");
161
    }
162
163
    public void testElementDescription1() {
164
        expectLog("element-description1", "A-OK!");
165
    }
166
167
    public void testElementDescription2() {
168
        expectBuildException(
169
            "element-description2",
170
            "Required nested element requiredelement missing; "
171
                + "description=\"nested element\"");
172
    }
173
}
174
 

Return to bug 24711