[CVS spice] AnotherTestCase a little cleaner

paul-yCVjj/[email protected] 23 Sep 2005 01:22:09 -0000
Newsgroups gmane.comp.java.spice.cvs
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>spice/components/jervlet/src/test/org/codehaus/spice/jervlet/impl/pico</tt></b><span id="info"> on MAIN</span></td></tr>
<tr><td><tt><a href="#file1">AnotherTestCase.java</a></tt></td><td align="right" id="added">+8</td><td align="right" id="removed">-8</td><td nowrap="nowrap" align="center">1.5 -&gt; 1.6</td></tr>
</table>
<pre class="comment">
AnotherTestCase a little cleaner
</pre>
<hr /><a name="file1" /><div class="file">
<span class="pathname">spice/components/jervlet/src/test/org/codehaus/spice/jervlet/impl/pico<br /></span>
<div class="fileheader"><big><b>AnotherTestCase.java</b></big> <small id="info">1.5 -&gt; 1.6</small></div>
<pre class="diff"><small id="info">diff -u -r1.5 -r1.6
--- AnotherTestCase.java	22 Aug 2005 00:38:55 -0000	1.5
+++ AnotherTestCase.java	23 Sep 2005 01:22:09 -0000	1.6
@@ -18,7 +18,9 @@
</small></pre><pre class="diff" id="context"> 
 public class AnotherTestCase extends TestCase
 {
</pre><pre class="diff" id="removed">-    public void testJervletNanoContainerBuilderDecorationDelegate() throws Exception
</pre><pre class="diff" id="added">+    // This will not work because of http://jira.codehaus.org/browse/GROOVY-991
+    // when JSR-04 is released, try this test again.
+    public void doNot_testJervletNodeBuilderDecorationDelegate() throws Exception
</pre><pre class="diff" id="context">     {
         InputStream script = getClass().getResourceAsStream( "delegate.groovy" );
         PicoContainer pico = createContainer( new InputStreamReader( script ) );
</pre><pre class="diff"><small id="info">@@ -46,17 +48,15 @@
</small></pre><pre class="diff" id="context">             +
             "import org.picocontainer.defaults.DefaultPicoContainer\n" +
             "def pc = new DefaultPicoContainer()\n" +
</pre><pre class="diff" id="removed">-            "pc.registerComponentInstance(String.class, <span id="removedchars">\"Foo\"</span>)\n" +
</pre><pre class="diff" id="added">+            "pc.registerComponentInstance(String.class, <span id="addedchars">'Foo'</span>)\n" +
</pre><pre class="diff" id="context">             "def builder = new NanoGroovyWebContainerBuilder()\n" +
</pre><pre class="diff" id="removed">-            "def webServer = builder.picoEnabledWebServer(pico:pc, host:\"localhost\", port:8099) {\n"
-            +
-            "    webApp(warPath:\"foo/bar\")\n" +
</pre><pre class="diff" id="added">+            "def webServer = builder.picoEnabledWebServer(pico:pc, host:'localhost', port:8099) {\n" +
+            "    webApp(warPath:'foo/bar')\n" +
</pre><pre class="diff" id="context">             "    webApp {\n" +
</pre><pre class="diff" id="removed">-            "      servlet(context:\"/foo\", servletClass:\"foo.bar.AServlet\")\n" +
</pre><pre class="diff" id="added">+            "      servlet(context:'/foo', servletClass:'foo.bar.AServlet')\n" +
</pre><pre class="diff" id="context">             "    }\n" +
             "}\n" +
</pre><pre class="diff" id="removed">-            "webServer.start()\n"
-        );
</pre><pre class="diff" id="added">+            "//webServer.start()\n");
</pre><pre class="diff" id="context">         doGroovy( new InputStream()
         {
             public int read() throws IOException
</pre></div>
<center><small><a href="http://www.badgers-in-foil.co.uk/projects/cvsspam/" title="commit -&gt; email">CVSspam</a> 0.2.8</small></center>
</body></html>