[CVS nanning] Testing damagecontrol
Jon Tirsen <[email protected]> Sat, 7 Feb 2004 09:10:15 -0600
| Newsgroups | gmane.comp.java.nanning.devel |
|---|---|
| Message-ID | <[email protected]> |
<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</tt></b> on <span id="info">MAIN</span></td></tr>
<tr><td><tt><a href="#file1">.cvsignore</a></tt></td><td align="right" id="added">+2</td><td align="right" id="removed">-2</td><td nowrap="nowrap" align="center">1.7 -> 1.8</td></tr>
<tr class="alt"><td><tt>src/main/org/codehaus/nanning/<a href="#file2">Invocation.java</a></tt></td><td align="right" id="added">+4</td><td align="right" id="removed">-4</td><td nowrap="nowrap" align="center">1.1 -> 1.2</td></tr>
<tr><td><tt> /<a href="#file3">Mixin.java</a></tt></td><td align="right" id="added">+4</td><td align="right" id="removed">-4</td><td nowrap="nowrap" align="center">1.4 -> 1.5</td></tr>
<tr class="alt"><td><tt>src/test/org/codehaus/nanning/<a href="#file4">MockInterceptor.java</a></tt></td><td align="right" id="added">+6</td><td align="right" id="removed">-6</td><td nowrap="nowrap" align="center">1.1 -> 1.2</td></tr>
<tr><td></td><td align="right" id="added">+16</td><td align="right" id="removed">-16</td><td></td></tr>
</table>
<small id="info">4 modified files</small><br />
<pre class="comment">
Testing damagecontrol
</pre>
<hr /><a name="file1" /><div class="file">
<span class="pathname">nanning<br /></span>
<div class="fileheader"><big><b>.cvsignore</b></big> <small id="info">1.7 -> 1.8</small></div>
<pre class="diff"><small id="info">diff -u -r1.7 -r1.8
--- .cvsignore 7 Feb 2004 15:08:59 -0000 1.7
+++ .cvsignore 7 Feb 2004 15:10:15 -0000 1.8
@@ -1,7 +1,7 @@
</small></pre><pre class="diff" id="context"> target
</pre><pre class="diff" id="removed">-*.ipr
-*.iws
</pre><pre class="diff" id="context"> *.log*
junit*
.classpath
.project
</pre><pre class="diff" id="added">+*.ipr
+*.iws
</pre></div>
<hr /><a name="file2" /><div class="file">
<span class="pathname">nanning/src/main/org/codehaus/nanning<br /></span>
<div class="fileheader"><big><b>Invocation.java</b></big> <small id="info">1.1 -> 1.2</small></div>
<pre class="diff"><small id="info">diff -u -r1.1 -r1.2
--- Invocation.java 4 Jul 2003 10:53:59 -0000 1.1
+++ Invocation.java 7 Feb 2004 15:10:15 -0000 1.2
@@ -12,10 +12,10 @@
</small></pre><pre class="diff" id="context"> /**
* Description of the current invocation, given to an interceptor upon method-call.
*
</pre><pre class="diff" id="removed">- * <!-- $Id: Invocation.java,v 1.1 2003/07/04 10:53:59 lecando Exp $ -->
</pre><pre class="diff" id="added">+ * <!-- $Id: Invocation.java,v 1.2 2004/02/07 15:10:15 tirsen Exp $ -->
</pre><pre class="diff" id="context"> *
</pre><pre class="diff" id="removed">- * @author $Author: lecando $
- * @version $Revision: 1.1 $
</pre><pre class="diff" id="added">+ * @author $Author: tirsen $
+ * @version $Revision: 1.2 $
</pre><pre class="diff" id="context"> */
public interface Invocation {
/**
</pre><pre class="diff"><small id="info">@@ -59,7 +59,7 @@
</small></pre><pre class="diff" id="context"> *
* @return the total number of interceptors in the chain.
*/
</pre><pre class="diff" id="removed">- int get<span id="removedchars">f</span>InterceptorCount();
</pre><pre class="diff" id="added">+ int getInterceptorCount();
</pre><pre class="diff" id="context">
/**
* Gets the interceptors at the specified index.
</pre></div>
<hr /><a name="file3" /><div class="file">
<span class="pathname">nanning/src/main/org/codehaus/nanning<br /></span>
<div class="fileheader"><big><b>Mixin.java</b></big> <small id="info">1.4 -> 1.5</small></div>
<pre class="diff"><small id="info">diff -u -r1.4 -r1.5
--- Mixin.java 5 Sep 2003 07:56:43 -0000 1.4
+++ Mixin.java 7 Feb 2004 15:10:15 -0000 1.5
@@ -34,10 +34,10 @@
</small></pre><pre class="diff" id="context"> }
</code></pre>
*
</pre><pre class="diff" id="removed">- * <!-- $Id: Mixin.java,v 1.4 2003/09/05 07:56:43 lecando Exp $ -->
</pre><pre class="diff" id="added">+ * <!-- $Id: Mixin.java,v 1.5 2004/02/07 15:10:15 tirsen Exp $ -->
</pre><pre class="diff" id="context"> *
</pre><pre class="diff" id="removed">- * @author $Author: lecando $
- * @version $Revision: 1.4 $
</pre><pre class="diff" id="added">+ * @author $Author: tirsen $
+ * @version $Revision: 1.5 $
</pre><pre class="diff" id="context"> */
public class Mixin implements Serializable {
static final long serialVersionUID = 7386027290257587762L;
</pre><pre class="diff"><small id="info">@@ -173,7 +173,7 @@
</small></pre><pre class="diff" id="context"> return interceptors.previousIndex();
}
</pre><pre class="diff" id="removed">- public int get<span id="removedchars">f</span>InterceptorCount() {
</pre><pre class="diff" id="added">+ public int getInterceptorCount() {
</pre><pre class="diff" id="context"> return getInterceptorsForMethod(method).size();
}
</pre></div>
<hr /><a name="file4" /><div class="file">
<span class="pathname">nanning/src/test/org/codehaus/nanning<br /></span>
<div class="fileheader"><big><b>MockInterceptor.java</b></big> <small id="info">1.1 -> 1.2</small></div>
<pre class="diff"><small id="info">diff -u -r1.1 -r1.2
--- MockInterceptor.java 4 Jul 2003 10:54:00 -0000 1.1
+++ MockInterceptor.java 7 Feb 2004 15:10:15 -0000 1.2
@@ -13,10 +13,10 @@
</small></pre><pre class="diff" id="context"> /**
* TODO document MockInterceptor
*
</pre><pre class="diff" id="removed">- * <!-- $Id: MockInterceptor.java,v 1.1 2003/07/04 10:54:00 lecando Exp $ -->
</pre><pre class="diff" id="added">+ * <!-- $Id: MockInterceptor.java,v 1.2 2004/02/07 15:10:15 tirsen Exp $ -->
</pre><pre class="diff" id="context"> *
</pre><pre class="diff" id="removed">- * @author $Author: lecando $
- * @version $Revision: 1.1 $
</pre><pre class="diff" id="added">+ * @author $Author: tirsen $
+ * @version $Revision: 1.2 $
</pre><pre class="diff" id="context"> */
public class MockInterceptor implements MethodInterceptor {
private Object expectTarget;
</pre><pre class="diff"><small id="info">@@ -61,13 +61,13 @@
</small></pre><pre class="diff" id="context">
Assert.assertSame(this, invocation.getInterceptor(invocation.getCurrentIndex()));
</pre><pre class="diff" id="removed">- // check that getfInterceptorCount is correct
- actualNumberOfInterceptors = invocation.getfInterceptorCount();
</pre><pre class="diff" id="added">+ // check that getInterceptorCount is correct
+ actualNumberOfInterceptors = invocation.getInterceptorCount();
</pre><pre class="diff" id="context"> invocation.getInterceptor(actualNumberOfInterceptors - 1); // should work...
try {
invocation.getInterceptor(actualNumberOfInterceptors); // should not work...
///CLOVER:OFF
</pre><pre class="diff" id="removed">- Assert.fail("Invocation.get<span id="removedchars">f</span>InterceptorCount doesn't work.");
</pre><pre class="diff" id="added">+ Assert.fail("Invocation.getInterceptorCount doesn't work.");
</pre><pre class="diff" id="context"> ///CLOVER:ON
} catch (Exception shouldHappen) {
}
</pre></div>
</body></html>