[CVS nanning] fixed bug in attributes with argument type being inner class
Jon Tirsen <[email protected]> Wed, 13 Aug 2003 04:15:24 -0500
| Newsgroups | gmane.comp.java.nanning.devel |
|---|---|
| Message-ID | <200308130915.h7D9FOA32712__15092.3852030703$1060765844@codehaus.org> |
<html>
<head>
<style><!--
body {background-color:#ffffff;}
.file {border:1px solid #eeeeee;margin-top:1em;margin-bottom:1em;}
.pathname {font-family:monospace; float:right;}
.fileheader {margin-bottom:.5em;}
.diff {margin:0;}
.tasklist {padding:4px;border:1px dashed #000000;margin-top:1em;}
.tasklist ul {margin-top:0;margin-bottom:0;}
tr.alt {background-color:#eeeeee}
#added {background-color:#ddffdd;}
#addedchars {background-color:#99ff99;font-weight:bolder;}
tr.alt #added {background-color:#ccf7cc;}
#removed {background-color:#ffdddd;}
#removedchars {background-color:#ff9999;font-weight:bolder;}
tr.alt #removed {background-color:#f7cccc;}
#info {color:#888888;}
#context {background-color:#eeeeee;}
td {padding-left:.3em;padding-right:.3em;}
tr.head {border-bottom-width:1px;border-bottom-style:solid;}
tr.head td {padding:0;padding-top:.2em;}
.task {background-color:#ffff00;}
.comment {padding:4px;border:1px dashed #000000;background-color:#ffffdd}
.error {color:red;}
hr {border-width:0px;height:2px;background:black;}
--></style>
</head>
<body>
<table cellspacing="0" cellpadding="0" border="0" rules="cols">
<tr class="head"><td colspan="4">Commit in <b><tt>nanning/src/test/org/codehaus/nanning/attribute</tt></b> on <span id="info">MAIN</span></td></tr>
<tr><td><tt><a href="#file1">ClassPropertiesHelperTest.java</a></tt></td><td align="right" id="added">+15</td><td align="right" id="removed">-9</td><td nowrap="nowrap" align="center">1.1 -> 1.2</td></tr>
</table>
<pre class="comment">
fixed bug in attributes with argument type being inner class
</pre>
<hr /><a name="file1" /><div class="file">
<span class="pathname">nanning/src/test/org/codehaus/nanning/attribute<br /></span>
<div class="fileheader"><big><b>ClassPropertiesHelperTest.java</b></big> <small id="info">1.1 -> 1.2</small></div>
<pre class="diff"><small id="info">diff -u -r1.1 -r1.2
--- ClassPropertiesHelperTest.java 4 Jul 2003 10:54:00 -0000 1.1
+++ ClassPropertiesHelperTest.java 13 Aug 2003 09:15:24 -0000 1.2
@@ -29,9 +29,11 @@
</small></pre><pre class="diff" id="context"> assertEquals("value", classPropertiesHelper.properties.getProperty("class.attribute"));
}
</pre><pre class="diff" id="removed">- void method(double[] doubles) {}
- void method(Double[] doubles) {}
- void method(int[] ints) {}
</pre><pre class="diff" id="added">+ void methodWithArray(double[] doubles) {}
+ void methodWithArray(Double[] doubles) {}
+ void methodWithArray(int[] ints) {}
+ public static class InnerClass {}
+ void methodWithInnerClassArgument(InnerClass arg) {}
</pre><pre class="diff" id="context">
public void testMethodSignature() throws NoSuchMethodException {
assertEquals("method()", ClassPropertiesHelper.methodSignature(AttributesTest.method));
</pre><pre class="diff"><small id="info">@@ -40,12 +42,16 @@
</small></pre><pre class="diff" id="context"> assertEquals("method(String,String)", ClassPropertiesHelper.methodSignature(AttributesTest.argMethod));
assertEquals("method(String)", ClassPropertiesHelper.methodSignature(AttributesTest.arrayArgMethod));
assertEquals("method(String)", ClassPropertiesHelper.methodSignature(AttributesTest.arrayArgMethod));
</pre><pre class="diff" id="removed">- assertEquals("method(double)", ClassPropertiesHelper.methodSignature(
- ClassPropertiesHelperTest.class.getDeclaredMethod("method", new Class[] { double[].class })));
- assertEquals("method(Double)", ClassPropertiesHelper.methodSignature(
- ClassPropertiesHelperTest.class.getDeclaredMethod("method", new Class[] { Double[].class })));
- assertEquals("method(int)", ClassPropertiesHelper.methodSignature(
- ClassPropertiesHelperTest.class.getDeclaredMethod("method", new Class[] { int[].class })));
</pre><pre class="diff" id="added">+ assertEquals("methodWithArray(double)", ClassPropertiesHelper.methodSignature(
+ ClassPropertiesHelperTest.class.getDeclaredMethod("methodWithArray", new Class[] { double[].class })));
+ assertEquals("methodWithArray(Double)", ClassPropertiesHelper.methodSignature(
+ ClassPropertiesHelperTest.class.getDeclaredMethod("methodWithArray", new Class[] { Double[].class })));
+ assertEquals("methodWithArray(int)", ClassPropertiesHelper.methodSignature(
+ ClassPropertiesHelperTest.class.getDeclaredMethod("methodWithArray", new Class[] { int[].class })));
+ assertEquals("methodWithArray(int)", ClassPropertiesHelper.methodSignature(
+ ClassPropertiesHelperTest.class.getDeclaredMethod("methodWithArray", new Class[] { int[].class })));
+ assertEquals("methodWithInnerClassArgument(InnerClass)", ClassPropertiesHelper.methodSignature(
+ ClassPropertiesHelperTest.class.getDeclaredMethod("methodWithInnerClassArgument", new Class[] { InnerClass.class })));
</pre><pre class="diff" id="context"> }
public void testGetClassName() {
</pre></div>
</body></html>