ASF Bugzilla – Attachment 10136 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]
test case; handle text description
MacroDefTest.java.diffs (text/plain), 1.60 KB, created by
Matt Benson
on 2004-01-28 23:56:30 UTC
(
hide
)
Description:
test case; handle text description
Filename:
MIME Type:
Creator:
Matt Benson
Created:
2004-01-28 23:56:30 UTC
Size:
1.60 KB
patch
obsolete
>--- src/testcases/org/apache/tools/ant/taskdefs/MacroDefTest.java 2004-01-28 17:54:25.000000000 -0600 >+++ macro/MacroDefTest.java 2004-01-28 17:53:21.000000000 -0600 >@@ -136,5 +136,45 @@ > "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\""); >+ } >+ public void testTextDescription() { >+ expectBuildException( >+ "text-description", >+ "Required text missing; " >+ + "description=\"nested text\""); >+ } >+} >+
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