software engineering
Software engineering, patterns, programming.







Subscribe to "software engineering" in Radio UserLand.

Click to see the XML version of this web page.

Click here to send an email to the editor of this weblog.
 

 

Thursday, October 14, 2004
 

Testing code blocks (thanks jMock). I've done this by tweaking my Radio inline CSS to add styles created by htmlize.el and copying the generated HTML.

/*  Copyright (c) 2000-2004 jMock.org
 */
package org.jmock.core;


/**
 * An object that stubs the behaviour of a invokedMethod invocation on
 * behalf of an {@link org.jmock.core.Invokable} object.
 */
public interface Stub
        extends SelfDescribing
{
    /**
     * Processes the invocation.
     *
     * @param invocation The invocation to stub.
     * @return The result of the invocation, if not throwing an exception.
     *         Must return <code>null</code> if the invocation is of a
     *         invokedMethod with a void return type.
     * @throws Throwable An exception to be thrown to the caller, if not
     *         returning a value.  A checked exception thrown from this
     *         invokedMethod must be in the <code>throws</code> list of
     *         the invokedObject invokedMethod.
     */
    Object invoke( Invocation invocation ) throws Throwable;
}

11:06:26 AM    comment []


Click here to visit the Radio UserLand website. © Copyright 2005 Nick Sieger.
Last update: 2/3/05; 11:00:59 PM.
This theme is based on the SoundWaves (blue) Manila theme.
October 2004
Sun Mon Tue Wed Thu Fri Sat
          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31            
Sep   Nov