<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:syn="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/">
  <channel rdf:about="http://blog.gmane.org/gmane.comp.java.jmock.devel">
    <title>gmane.comp.java.jmock.devel</title>
    <link>http://blog.gmane.org/gmane.comp.java.jmock.devel</link>
    <description/>
    <syn:updatePeriod>hourly</syn:updatePeriod>
    <syn:updateFrequency>1</syn:updateFrequency>
    <syn:updateBase>1901-01-01T00:00+00:00</syn:updateBase>
    <items>
      <rdf:Seq>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.java.jmock.devel/156"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.java.jmock.devel/152"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.java.jmock.devel/149"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.java.jmock.devel/147"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.java.jmock.devel/146"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.java.jmock.devel/145"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.java.jmock.devel/144"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.java.jmock.devel/141"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.java.jmock.devel/139"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.java.jmock.devel/109"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.java.jmock.devel/107"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.java.jmock.devel/101"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.java.jmock.devel/100"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.java.jmock.devel/99"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.java.jmock.devel/97"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.java.jmock.devel/97"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.java.jmock.devel/94"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.java.jmock.devel/94"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.java.jmock.devel/93"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.java.jmock.devel/93"/>
      </rdf:Seq>
    </items>
    <image rdf:resource="http://gmane.org/img/gmane-25t.png"/>
    <textinput rdf:resource=""/>
  </channel>
  <image rdf:about="http://gmane.org/img/gmane-25t.png">
    <title>Gmane</title>
    <url>http://gmane.org/img/gmane-25t.png</url>
    <link>http://gmane.org</link>
  </image>
  <item rdf:about="http://comments.gmane.org/gmane.comp.java.jmock.devel/156">
    <title>[jira] Created: (JMOCK-205) Deprecate the 'one' method in favour of 'oneOf'</title>
    <link>http://comments.gmane.org/gmane.comp.java.jmock.devel/156</link>
    <description>Deprecate the 'one' method in favour of 'oneOf'
-----------------------------------------------

                 Key: JMOCK-205
                 URL: http://jira.codehaus.org/browse/JMOCK-205
             Project: jMock
          Issue Type: New Feature
          Components: Library
            Reporter: Nat Pryce
            Priority: Trivial




</description>
    <dc:creator>Nat Pryce (JIRA</dc:creator>
    <dc:date>2008-09-15T20:34:48</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.java.jmock.devel/152">
    <title>[jira] Created: (JMOCK-204) Documentation does not use the oneOf method</title>
    <link>http://comments.gmane.org/gmane.comp.java.jmock.devel/152</link>
    <description>Documentation does not use the oneOf method
-------------------------------------------

                 Key: JMOCK-204
                 URL: http://jira.codehaus.org/browse/JMOCK-204
             Project: jMock
          Issue Type: Bug
          Components: Documentation, Library
    Affects Versions: 2.5.0, 2.5.1
            Reporter: Justin Wesley
            Priority: Minor


The CardinalityClause interface should have the 'oneOf' method since the 'one' method is expected to be deprecated according to the documentation in Expectations. These methods should also be annotated as deprecated.

The documentation should also be changed to reflect this change in API. I noticed 'one' is referenced in the sections 'Getting Started', 'Cookbook', and 'Cheat Sheet'.

</description>
    <dc:creator>Nat Pryce (JIRA</dc:creator>
    <dc:date>2008-09-15T20:30:48</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.java.jmock.devel/149">
    <title>[jira] Created: (JMOCK-203) CardinalityClause does not include new oneOf method</title>
    <link>http://comments.gmane.org/gmane.comp.java.jmock.devel/149</link>
    <description>CardinalityClause does not include new oneOf method
---------------------------------------------------

                 Key: JMOCK-203
                 URL: http://jira.codehaus.org/browse/JMOCK-203
             Project: jMock
          Issue Type: Bug
          Components: Documentation, Library
    Affects Versions: 2.5.1, 2.5.0
            Reporter: Justin Wesley
            Priority: Minor


The CardinalityClause interface should have the 'oneOf' method since the 'one' method is expected to be deprecated according to the documentation in Expectations. These methods should also be annotated as deprecated.

The documentation should also be changed to reflect this change in API. I noticed 'one' is referenced in the sections 'Getting Started', 'Cookbook', and 'Cheat Sheet'.

</description>
    <dc:creator>Justin Wesley (JIRA</dc:creator>
    <dc:date>2008-09-15T16:24:48</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.java.jmock.devel/147">
    <title>[jira] Created: (JMOCK-202) Unsatisfied expectations are not correctly captured with JUnit4's &lt; at &gt;Test(expected=AssertionError.class) in JMock 2.5.0-RC1+</title>
    <link>http://comments.gmane.org/gmane.comp.java.jmock.devel/147</link>
    <description>Unsatisfied expectations are not correctly captured with JUnit4's &lt; at &gt;Test(expected=AssertionError.class) in JMock 2.5.0-RC1+
--------------------------------------------------------------------------------------------------------------------------

                 Key: JMOCK-202
                 URL: http://jira.codehaus.org/browse/JMOCK-202
             Project: jMock
          Issue Type: Bug
    Affects Versions: 2.5.1, 2.5.0, 2.5.0-RC1
         Environment: JMock 2.5.0-RC1+
JUnit 4.4
Java 1.5.0_16
Ubuntu Linux 8.0.4
kernel 2.6.24-19-generic
            Reporter: Steven Cummings
         Attachments: JMockBugTest.java

This was working up through version 2.4.0. I am testing some custom matchers with JMock by writing expectations that I expect to be unsatisfied when the test completes, and therefore I expect an AssertionError. From JMock 2.5.0-RC1 and on, &lt; at &gt;RunWith(JMock.class) causes &lt; at &gt;Test(expected=AssertionError.class) to fail to capture the resulting exception.

When I say JMock 2.5.0-RC1+, I mean I could reproduce the problem with versions 2.5.0-RC1, 2.5.0, 2.5.0.1, and 2.5.1.

</description>
    <dc:creator>Steven Cummings (JIRA</dc:creator>
    <dc:date>2008-09-02T18:22:48</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.java.jmock.devel/146">
    <title>a() and an()</title>
    <link>http://comments.gmane.org/gmane.comp.java.jmock.devel/146</link>
    <description>---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email
</description>
    <dc:creator>snackbox-KvP5wT2u2U0&lt; at &gt;public.gmane.org</dc:creator>
    <dc:date>2008-08-29T20:27:52</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.java.jmock.devel/145">
    <title>[jira] Created: (JMOCK-201) Allow ClassImposteriser to be extended</title>
    <link>http://comments.gmane.org/gmane.comp.java.jmock.devel/145</link>
    <description>Allow ClassImposteriser to be extended
--------------------------------------

                 Key: JMOCK-201
                 URL: http://jira.codehaus.org/browse/JMOCK-201
             Project: jMock
          Issue Type: Improvement
          Components: Library
    Affects Versions: 2.5.1
            Reporter: Corporate Gadfly


I had a need to imposterise concrete classes (from 3rd-party jars) with final toString() method.

For background, please see discussion at:
http://www.nabble.com/Re%3A-mocking-concrete-classes-with-final-toString-method-p18509146.html
In that thread, Nat had advised one of the options as being "write your own Imposteriser".

So, for my needs I ended up writing ClassImposteriserAllowingFinalToString. It would be great if ClassImposteriser could be made easier to extend. As it is, it has a lot of private methods and properties and I pretty much had to rewrite my own imposteriser from scratch (essentially duplicating the private pieces of ClassImposteriser). If ClassImposteriser was extension friendly, I would probably need to do minimal work by writing my own imposterise() and canImposterise() methods. This way I would also be safeguarded against future bug-fixes that may happen in ClassImposteriser.

Cheers and thanks in advance.

</description>
    <dc:creator>Corporate Gadfly (JIRA</dc:creator>
    <dc:date>2008-08-29T16:32:48</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.java.jmock.devel/144">
    <title>2.5.1 Released</title>
    <link>http://comments.gmane.org/gmane.comp.java.jmock.devel/144</link>
    <description>We've just released jMock 2.5.1, a bug-fix release that improves error messages.

The changelog is at:

http://jira.codehaus.org/secure/ReleaseNote.jspa?projectId=10336&amp;styleName=Html&amp;version=14527

--Nat

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



</description>
    <dc:creator>Nat Pryce</dc:creator>
    <dc:date>2008-08-24T10:20:55</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.java.jmock.devel/141">
    <title>[jira] Created: (JMOCK-200) JMock does not report actual invocations when the mockery is not satisfied</title>
    <link>http://comments.gmane.org/gmane.comp.java.jmock.devel/141</link>
    <description>JMock does not report actual invocations when the mockery is not satisfied
--------------------------------------------------------------------------

                 Key: JMOCK-200
                 URL: http://jira.codehaus.org/browse/JMOCK-200
             Project: jMock
          Issue Type: Bug
          Components: Library
    Affects Versions: 2.5.0
            Reporter: Nat Pryce
            Priority: Minor




</description>
    <dc:creator>Nat Pryce (JIRA</dc:creator>
    <dc:date>2008-08-24T00:02:26</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.java.jmock.devel/139">
    <title>[jira] Created: (JMOCK-199) Upgrade to CGLIB 2.2</title>
    <link>http://comments.gmane.org/gmane.comp.java.jmock.devel/139</link>
    <description>Upgrade to CGLIB 2.2
--------------------

                 Key: JMOCK-199
                 URL: http://jira.codehaus.org/browse/JMOCK-199
             Project: jMock
          Issue Type: Improvement
          Components: Library
    Affects Versions: 2.5.0
            Reporter: Nat Pryce
             Fix For: 2.6.0




</description>
    <dc:creator>Nat Pryce (JIRA</dc:creator>
    <dc:date>2008-08-13T22:23:27</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.java.jmock.devel/109">
    <title>Build of revisions after 1193 fail</title>
    <link>http://comments.gmane.org/gmane.comp.java.jmock.devel/109</link>
    <description>
Hi

I'm trying to build from source but all (tried) revisions after r1193 fail

(output from r1280 build)
$ ant
Buildfile: build.xml

clean:
   [delete] Deleting directory /home/marcos/jmock/trunk/jmock2/build

dir.build:
    [mkdir] Created dir: /home/marcos/jmock/trunk/jmock2/build

compile:
    [mkdir] Created dir: /home/marcos/jmock/trunk/jmock2/build/classes
    [javac] Compiling 175 source files to
/home/marcos/jmock/trunk/jmock2/build/classes
    [javac]
/home/marcos/jmock/trunk/jmock2/src/org/jmock/lib/concurrent/DeterministicScheduler.java:28:
org.jmock.lib.concurrent.DeterministicScheduler is not abstract and does not
override abstract method &lt;T&gt;invokeAny(java.util.Collection&lt;? extends
java.util.concurrent.Callable&lt;T&gt;&gt;,long,java.util.concurrent.TimeUnit) in
java.util.concurrent.ExecutorService
    [javac] public class DeterministicScheduler implements
ScheduledExecutorService {
    [javac]        ^
    [javac] 1 error

BUILD FAILED
/home/marcos/jmock/trunk/jmock2/build.xml:60: Compile failed; see the
compiler error output for details.

(output from r1194 build)
$ ant
Buildfile: build.xml

clean:
   [delete] Deleting directory /home/marcos/jmock/trunk/jmock2/build

dir.build:
    [mkdir] Created dir: /home/marcos/jmock/trunk/jmock2/build

compile:
    [mkdir] Created dir: /home/marcos/jmock/trunk/jmock2/build/classes
    [javac] Compiling 159 source files to
/home/marcos/jmock/trunk/jmock2/build/classes
    [javac]
/home/marcos/jmock/trunk/jmock2/src/org/jmock/lib/concurrent/SynchronousScheduledExecutor.java:23:
org.jmock.lib.concurrent.SynchronousScheduledExecutor is not abstract and
does not override abstract method &lt;T&gt;invokeAny(java.util.Collection&lt;?
extends
java.util.concurrent.Callable&lt;T&gt;&gt;,long,java.util.concurrent.TimeUnit) in
java.util.concurrent.ExecutorService
    [javac] public class SynchronousScheduledExecutor implements
ScheduledExecutorService {
    [javac]        ^
    [javac] 1 error

BUILD FAILED
/home/marcos/jmock/trunk/jmock2/build.xml:59: Compile failed; see the
compiler error output for details.

</description>
    <dc:creator>MSanchez</dc:creator>
    <dc:date>2008-08-04T21:14:43</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.java.jmock.devel/107">
    <title>[jira] Created: (JMOCK-198) Allow assert of State-Machine</title>
    <link>http://comments.gmane.org/gmane.comp.java.jmock.devel/107</link>
    <description>Allow assert of State-Machine
-----------------------------

                 Key: JMOCK-198
                 URL: http://jira.codehaus.org/browse/JMOCK-198
             Project: jMock
          Issue Type: Improvement
          Components: Library
    Affects Versions: 2.5.0
            Reporter: Marcos Sanchez
            Priority: Trivial


Asserting a state-machine's state requires the internal API (not obvious, clear or documented) as in
     assertTrue(stateMachine.is("desired-state").isActive());
     assertTrue(stateMachine.isNot("undesirable-state").isActive())

I suggest the creation of a become("state") counterpart. Maybe something like isCurrently("state") &amp; isNotCurrently("state") which wrap the internal API, such that we get
     assertTrue(stateMachine.isCurrently("state"));
     assertTrue(stateMachine.isNotCurrently("state"));

</description>
    <dc:creator>Marcos Sanchez (JIRA</dc:creator>
    <dc:date>2008-08-04T18:19:26</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.java.jmock.devel/101">
    <title>[jira] Created: (JMOCK-197) Mocking a static nested class causes a net.sf.cglib.core.CodeGenerationException to be thrown.</title>
    <link>http://comments.gmane.org/gmane.comp.java.jmock.devel/101</link>
    <description>Mocking a static nested class causes a net.sf.cglib.core.CodeGenerationException to be thrown.
----------------------------------------------------------------------------------------------

                 Key: JMOCK-197
                 URL: http://jira.codehaus.org/browse/JMOCK-197
             Project: jMock
          Issue Type: Bug
    Affects Versions: 1.2.0
            Reporter: Ryan C. Payne


In some code that I have inherited I have a class with a static nested class. In the past (jMock 1.1.0) I was able to successfully mock this static nested class. After upgrading to jMock 1.2.0, this no longer works. I end up getting the following exception:
net.sf.cglib.core.CodeGenerationException: java.lang.IllegalAccessError--&gt;tried to access method org.jmock.codegen.com.mycompany.core.util.DataPage$DataPageDefinition$$EnhancerByCGLIB$$3417fee6.CGLIB$setPageNumber$6(I)V from class org.jmock.codegen.org.jmock.codegen.com.mycompany.core.util.DataPage$DataPageDefinition$$EnhancerByCGLIB$$3417fee6$$FastClassByCGLIB$$e9f65fd5
at net.sf.cglib.core.ReflectUtils.newInstance(ReflectUtils.java:235)
at net.sf.cglib.core.ReflectUtils.newInstance(ReflectUtils.java:220)
at net.sf.cglib.proxy.Enhancer.createUsingReflection(Enhancer.java:636)
at net.sf.cglib.proxy.Enhancer.firstInstance(Enhancer.java:538)
at net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:225)
at net.sf.cglib.proxy.Enhancer.createHelper(Enhancer.java:377)
at net.sf.cglib.proxy.Enhancer.create(Enhancer.java:304)
at org.jmock.cglib.CGLIBCoreMock.&lt;init&gt;(CGLIBCoreMock.java:63)
at org.jmock.cglib.CGLIBCoreMock.&lt;init&gt;(CGLIBCoreMock.java:46)
at org.jmock.cglib.CGLIBCoreMock.&lt;init&gt;(CGLIBCoreMock.java:35)
at org.jmock.cglib.MockObjectTestCase.newCoreMock(MockObjectTestCase.java:33)
at org.jmock.MockObjectTestCase.mock(MockObjectTestCase.java:67)
at org.jmock.MockObjectTestCase.mock(MockObjectTestCase.java:55)
at com.mycompany.core.persistence.hbm.HBMBaseDAOTest.testLimitResultSet(HBMBaseDAOTest.java:117)
Caused by: java.lang.IllegalAccessError: tried to access method org.jmock.codegen.com.mycompany.core.util.DataPage$DataPageDefinition$$EnhancerByCGLIB$$3417fee6.CGLIB$setPageNumber$6(I)V from class org.jmock.codegen.org.jmock.codegen.com.mycompany.core.util.DataPage$DataPageDefinition$$EnhancerByCGLIB$$3417fee6$$FastClassByCGLIB$$e9f65fd5
at org.jmock.codegen.org.jmock.codegen.com.mycompany.core.util.DataPage$DataPageDefinition$$EnhancerByCGLIB$$3417fee6$$FastClassByCGLIB$$e9f65fd5.invoke(&lt;generated&gt;)
at net.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:167)
at org.jmock.cglib.CGLIBCoreMock.intercept(CGLIBCoreMock.java:79)
at org.jmock.codegen.com.mycompany.core.util.DataPage$DataPageDefinition$$EnhancerByCGLIB$$3417fee6.setPageNumber(&lt;generated&gt;)
at com.mycompany.core.util.DataPage$DataPageDefinition.&lt;init&gt;(DataPage.java:280)
at com.mycompany.core.util.DataPage$DataPageDefinition.&lt;init&gt;(DataPage.java:267)
at org.jmock.codegen.com.mycompany.core.util.DataPage$DataPageDefinition$$EnhancerByCGLIB$$3417fee6.&lt;init&gt;(&lt;generated&gt;)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at net.sf.cglib.core.ReflectUtils.newInstance(ReflectUtils.java:228)
... 58 more

Research led me to the following:
  http://www.gg3721.com/list/50/44427.html 
and the followup
  http://www.gg3721.com/list/50/44774.html

</description>
    <dc:creator>Ryan C. Payne (JIRA</dc:creator>
    <dc:date>2008-07-30T01:44:27</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.java.jmock.devel/100">
    <title>[jira] Created: (JMOCK-196) patch to maven packaging to generate source jars with source</title>
    <link>http://comments.gmane.org/gmane.comp.java.jmock.devel/100</link>
    <description>patch to maven packaging to generate source jars with source
------------------------------------------------------------

                 Key: JMOCK-196
                 URL: http://jira.codehaus.org/browse/JMOCK-196
             Project: jMock
          Issue Type: Improvement
          Components: Maven Packaging
    Affects Versions: 2.5.0
            Reporter: peter royal
            Assignee: Mauro Talevi
             Fix For: Chore (ASAP)
         Attachments: jmock-source-jars.diff

see attached patch.

it separates out the source/classes from the original jar and treats them as "generated sources" for maven, so then the -sources jar created has the right stuff.

</description>
    <dc:creator>peter royal (JIRA</dc:creator>
    <dc:date>2008-07-24T04:51:26</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.java.jmock.devel/99">
    <title>[Codehaus] Subscription confirmation for dev-sXN/XchZ9OexIXFVlbCvtR2eb7JE58TQ&lt; at &gt;public.gmane.org</title>
    <link>http://comments.gmane.org/gmane.comp.java.jmock.devel/99</link>
    <description>
Hello gcjjd-dev-new&lt; at &gt;m.gmane.org

You have successfully subscribed to dev-sXN/XchZ9OexIXFVlbCvtR2eb7JE58TQ&lt; at &gt;public.gmane.org using this email address.

Thanks,

Codehaus Support
</description>
    <dc:creator>Codehaus Xircles</dc:creator>
    <dc:date>2008-07-22T03:12:03</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.java.jmock.devel/97">
    <title>more syntactic sugar</title>
    <link>http://comments.gmane.org/gmane.comp.java.jmock.devel/97</link>
    <description>Working on an example, it struck me we should consider some sugar for  
the most common cases:
   one(T) -&gt; exactly(1).of(T)
   returning() -&gt; will(returnValue())
   throwing() -&gt; will(throwException())

e.g.

mockery.expects(new InAnyOrder() {{
   allowing(connection).createStatement(); returning(statement);

   one(statement).executeQuery(with(startsWith("select next")));  
returning(resultSet);
   one(resultSet).next(); returning(true);
   one(resultSet).getInt("next"); returning(99);
   one(statement).close();
}});

hmmm, at that point do we just offer?

mockery.expects(new InAnyOrder() {{
   allowing(connection).createStatement(); returning(statement);

   statement.executeQuery(with(startsWith("select next"))); returning 
(resultSet);
   resultSet.next(); returning(true);
   resultSet.getInt("next"); returning(99);
   statement.close();
}});

which takes us to being a better implemented EasyMock

mockery.expects(new InAnyOrder() {{
   allowing( connection.createStatement() ).returning(statement);

   one( statement.executeQuery(with(startsWith("select  
next"))) ).returning(resultSet);
   one( resultSet.next() ).returning(true);
   one( resultSet.getInt("next") ).returning(99);
   one().of(statement).close();
}});

Hmmm.

S.


---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email


</description>
    <dc:creator>Steve Freeman</dc:creator>
    <dc:date>2006-10-12T16:02:20</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.java.jmock.devel/97">
    <title>more syntactic sugar</title>
    <link>http://comments.gmane.org/gmane.comp.java.jmock.devel/97</link>
    <description>Working on an example, it struck me we should consider some sugar for  
the most common cases:
   one(T) -&gt; exactly(1).of(T)
   returning() -&gt; will(returnValue())
   throwing() -&gt; will(throwException())

e.g.

mockery.expects(new InAnyOrder() {{
   allowing(connection).createStatement(); returning(statement);

   one(statement).executeQuery(with(startsWith("select next")));  
returning(resultSet);
   one(resultSet).next(); returning(true);
   one(resultSet).getInt("next"); returning(99);
   one(statement).close();
}});

hmmm, at that point do we just offer?

mockery.expects(new InAnyOrder() {{
   allowing(connection).createStatement(); returning(statement);

   statement.executeQuery(with(startsWith("select next"))); returning 
(resultSet);
   resultSet.next(); returning(true);
   resultSet.getInt("next"); returning(99);
   statement.close();
}});

which takes us to being a better implemented EasyMock

mockery.expects(new InAnyOrder() {{
   allowing( connection.createStatement() ).returning(statement);

   one( statement.executeQuery(with(startsWith("select  
next"))) ).returning(resultSet);
   one( resultSet.next() ).returning(true);
   one( resultSet.getInt("next") ).returning(99);
   one().of(statement).close();
}});

Hmmm.

S.


---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email


</description>
    <dc:creator>Steve Freeman</dc:creator>
    <dc:date>2006-10-12T16:02:20</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.java.jmock.devel/94">
    <title>org.jmock.internal leaks to client tests?</title>
    <link>http://comments.gmane.org/gmane.comp.java.jmock.devel/94</link>
    <description>More fun with JMock 2.  org.jmock.internal is listed as "use at your own 
risk", but I find it hard to write useful tests without the allowing(), 
etc methods of ExpectationGroupBuilder.  Should the API shift some?  Thanks,

    David Saff

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email


</description>
    <dc:creator>David Saff</dc:creator>
    <dc:date>2006-10-11T15:14:07</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.java.jmock.devel/94">
    <title>org.jmock.internal leaks to client tests?</title>
    <link>http://comments.gmane.org/gmane.comp.java.jmock.devel/94</link>
    <description>More fun with JMock 2.  org.jmock.internal is listed as "use at your own 
risk", but I find it hard to write useful tests without the allowing(), 
etc methods of ExpectationGroupBuilder.  Should the API shift some?  Thanks,

    David Saff

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email


</description>
    <dc:creator>David Saff</dc:creator>
    <dc:date>2006-10-11T15:14:07</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.java.jmock.devel/93">
    <title>jmock/hamcrest classpath confusion</title>
    <link>http://comments.gmane.org/gmane.comp.java.jmock.devel/93</link>
    <description>I downloaded the jmock2 and hamcrest projects, imported them into 
Eclipse, and made my project dependent on both.  Originally, I put 
hamcrest first on the classpath, which confused the compiler, because 
hamcrest includes a jmock-1.x.jar on its classpath, and the JMock 1 
definition of Invocation was trumping the JMock 2 definition of 
Invocation.  Is this something to solve in hamcrest, or just something 
to note in the JMock 2 README?

Thanks,

    David Saff

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email


</description>
    <dc:creator>David Saff</dc:creator>
    <dc:date>2006-10-11T15:04:20</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.java.jmock.devel/93">
    <title>jmock/hamcrest classpath confusion</title>
    <link>http://comments.gmane.org/gmane.comp.java.jmock.devel/93</link>
    <description>I downloaded the jmock2 and hamcrest projects, imported them into 
Eclipse, and made my project dependent on both.  Originally, I put 
hamcrest first on the classpath, which confused the compiler, because 
hamcrest includes a jmock-1.x.jar on its classpath, and the JMock 1 
definition of Invocation was trumping the JMock 2 definition of 
Invocation.  Is this something to solve in hamcrest, or just something 
to note in the JMock 2 README?

Thanks,

    David Saff

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email


</description>
    <dc:creator>David Saff</dc:creator>
    <dc:date>2006-10-11T15:04:20</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.java.jmock.devel/74">
    <title>More jMock 2 progress</title>
    <link>http://comments.gmane.org/gmane.comp.java.jmock.devel/74</link>
    <description>jMock 2 now has the following, additional features:

- You can specify complex ordering constraints by nesting "InAnyOrder"
  and "InThisOrder" blocks

- You can use a jMock 1 style to specify expectations that are more
  flexible than can be captured by real method calls, such as allowing
  calls to any bean getter or to any mock object of a given type.

- Error messages have been improved.


However, we need some alpha testers to help drive out the corner cases
and tough bugs and give us feedback on the API.  So, if you're
interested please check it out of CVS and play around with it: the
correct CVS location is on the www.jmock.org site.  Read the
acceptance tests for examples of how to use it.

--Nat.

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email


</description>
    <dc:creator>Nat Pryce</dc:creator>
    <dc:date>2006-09-22T12:19:39</dc:date>
  </item>
  <textinput rdf:about="http://search.gmane.org/?group=$group=gmane.comp.java.jmock.devel">
    <title>Search Engine</title>
    <description>Search the mailing list at Gmane</description>
    <name>query</name>
    <link>http://search.gmane.org/?group=$group=gmane.comp.java.jmock.devel</link>
  </textinput>
</rdf:RDF>
