ASF Bugzilla – Attachment 10133 Details for
Bug 24711
[PATCH] macrodef child elements should use their description attributes in error messages
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
new diffs to the MacroDef test case
MacroDefTest.java.diffs (text/plain), 1.40 KB, created by
Matt Benson
on 2004-01-28 23:42:54 UTC
(
hide
)
Description:
new diffs to the MacroDef test case
Filename:
MIME Type:
Creator:
Matt Benson
Created:
2004-01-28 23:42:54 UTC
Size:
1.40 KB
patch
obsolete
>--- src/testcases/org/apache/tools/ant/taskdefs/MacroDefTest.java 2004-01-28 17:40:00.000000000 -0600 >+++ macro/MacroDefTest.java 2004-01-28 17:02:51.000000000 -0600 >@@ -136,5 +136,39 @@ > "duplicatetextname2", > "the attribute name \"text\" has already been used by the text element"); > } >-} > >+ public void testAttributeNoDescription() { >+ expectBuildException( >+ "attribute-no-description", >+ "Required attribute requiredattribute not set"); >+ } >+ >+ public void testAttributeDescription1() { >+ expectLog("attribute-description1", "@{requiredattribute}=A-OK!"); >+ } >+ >+ public void testAttributeDescription2() { >+ expectBuildException( >+ "attribute-description2", >+ "Required attribute requiredattribute not set; " >+ + "description=\"required attribute\""); >+ } >+ >+ public void testElementNoDescription() { >+ expectBuildException( >+ "element-no-description", >+ "Required nested element requiredelement not set"); >+ } >+ >+ public void testElementDescription1() { >+ expectLog("element-description1", "A-OK!"); >+ } >+ >+ public void testElementDescription2() { >+ expectBuildException( >+ "element-description2", >+ "Required nested element requiredelement missing; " >+ + "description=\"nested element\""); >+ } >+} >+
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 24711
:
10067
|
10068
|
10069
|
10132
| 10133 |
10134
|
10135
|
10136
|
10137