You can subscribe to this list here.
2001 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(13) |
Aug
(151) |
Sep
(21) |
Oct
(6) |
Nov
(70) |
Dec
(8) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2002 |
Jan
(47) |
Feb
(66) |
Mar
(23) |
Apr
(115) |
May
(24) |
Jun
(53) |
Jul
(10) |
Aug
(279) |
Sep
(84) |
Oct
(149) |
Nov
(138) |
Dec
(52) |
2003 |
Jan
(22) |
Feb
(20) |
Mar
(29) |
Apr
(106) |
May
(170) |
Jun
(122) |
Jul
(70) |
Aug
(64) |
Sep
(27) |
Oct
(71) |
Nov
(49) |
Dec
(9) |
2004 |
Jan
(7) |
Feb
(38) |
Mar
(3) |
Apr
(9) |
May
(22) |
Jun
(4) |
Jul
(1) |
Aug
(2) |
Sep
(2) |
Oct
|
Nov
(15) |
Dec
(2) |
2005 |
Jan
(1) |
Feb
(1) |
Mar
|
Apr
(1) |
May
(28) |
Jun
(3) |
Jul
(11) |
Aug
(5) |
Sep
(1) |
Oct
(5) |
Nov
(2) |
Dec
(3) |
2006 |
Jan
(8) |
Feb
(3) |
Mar
(8) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Jeff M. <cus...@us...> - 2002-04-30 17:03:14
|
Update of /cvsroot/mockobjects/mockobjects-java/src/j2ee/common/com/mockobjects/mail In directory usw-pr-cvs1:/tmp/cvs-serv20775/src/j2ee/common/com/mockobjects/mail Added Files: MockService.java MockSession.java MockTransport.java Log Message: Added alt.java packages --- NEW FILE: MockService.java --- package com.mockobjects.mail; import javax.mail.URLName; import javax.mail.event.ConnectionListener; import com.mockobjects.*; import alt.javax.mail.Service; public class MockService extends MockObject implements Service { private final ExpectationCounter myCloseCalls = new ExpectationCounter("close"); private final ExpectationValue myHost = new ExpectationValue("host"); private final ExpectationValue myPort = new ExpectationValue("port"); private final ExpectationValue myUser = new ExpectationValue("user"); private final ExpectationValue myPassword = new ExpectationValue("password"); public void setExpectedCloseCalls(int aNumberOfCalls){ myCloseCalls.setExpected(aNumberOfCalls); } public void close(){ myCloseCalls.inc(); } public void connect(){ notImplemented(); } public void connect(String aHost, int aPort, String aUser, String aPassword){ myHost.setActual(aHost); myPort.setActual(aPort); myUser.setActual(aUser); myPassword.setActual(aPassword); } public void connect(String aHost, String aUser, String aPassword){ notImplemented(); } public boolean isConnected(){ notImplemented(); return false; } public URLName getURLName(){ notImplemented(); return null; } public void addConnectionListener(ConnectionListener connectionListener){ notImplemented(); } public void removeConnectionListener(ConnectionListener connectionListener){ notImplemented(); } } --- NEW FILE: MockSession.java --- package com.mockobjects.mail; import com.mockobjects.*; import javax.mail.Authenticator; import javax.mail.Provider; import javax.mail.URLName; import javax.mail.PasswordAuthentication; import alt.javax.mail.Transport; import alt.javax.mail.Session; import javax.mail.Address; import javax.mail.Store; import javax.mail.Folder; import java.util.*; public class MockSession extends MockObject implements Session { private final ExpectationValue myDebug = new ExpectationValue("debug"); private final ExpectationValue myTransportName = new ExpectationValue("transport name"); private Transport myTransport; public Session getInstance(Properties props, Authenticator authenticator){ notImplemented(); return null; } public Session getInstance(Properties props){ notImplemented(); return null; } public Session getDefaultInstance(Properties props, Authenticator authenticator){ notImplemented(); return null; } public Session getDefaultInstance(Properties props){ notImplemented(); return null; } public void setExpectedDebug(boolean aDebug){ myDebug.setActual(aDebug); } public void setDebug(boolean aDebug){ myDebug.setActual(aDebug); } public boolean getDebug(){ notImplemented(); return false; } public Provider getProviders()[]{ notImplemented(); return null; } public Provider getProvider(String name){ notImplemented(); return null; } public void setProvider(Provider provider){ notImplemented(); } public Transport getTransport(){ notImplemented(); return null; } public void setExpectedTransport(String aTransportName){ myTransportName.setExpected(aTransportName); } public void setupGetTransport(Transport aTransport){ myTransport = aTransport; } public Transport getTransport(String aTransportName){ myTransportName.setActual(aTransportName); return myTransport; } public Transport getTransport(Address address){ notImplemented(); return null; } public Transport getTransport(Provider provider){ notImplemented(); return null; } public Transport getTransport(URLName url){ notImplemented(); return null; } public Store getStore(){ notImplemented(); return null; } public Store getStore(String name){ notImplemented(); return null; } public Store getStore(URLName url){ notImplemented(); return null; } public Store getStore(Provider provider){ notImplemented(); return null; } public Folder getFolder(){ notImplemented(); return null; } public Folder getFolder(Store store){ notImplemented(); return null; } public Folder getFolder(URLName url){ notImplemented(); return null; } public void setPasswordAuthentication(URLName url, PasswordAuthentication passwordAuthentication){ notImplemented(); } public PasswordAuthentication getPasswordAuthentication(URLName url){ notImplemented(); return null; } public PasswordAuthentication requestPasswordAuthentication(java.net.InetAddress address, int port, String protocol, String prompt, String defaultUserName){ notImplemented(); return null; } public Properties getProperties(){ notImplemented(); return null; } public String getProperty(String name){ notImplemented(); return null; } public javax.mail.Session getWrappedSession(){ notImplemented(); return null; } } --- NEW FILE: MockTransport.java --- package com.mockobjects.mail; import javax.mail.event.TransportListener; import javax.mail.Message; import javax.mail.Address; import com.mockobjects.*; import alt.javax.mail.Transport; public class MockTransport extends MockService implements Transport { private final ExpectationValue myMessage = new ExpectationValue("message"); public void setExpectedMessage(Message aMessage){ myMessage.setExpected(aMessage); } public void send(Message aMessage){ myMessage.setActual(aMessage); } public void send(Message msg, Address[] address){ notImplemented(); } public void sendMessage(Message msg, Address[] address){ notImplemented(); } public void addTransportListener(TransportListener transportListener){ notImplemented(); } public void removeTransportListener(TransportListener transportListener){ notImplemented(); } } |
From: Jeff M. <cus...@us...> - 2002-04-30 17:03:14
|
Update of /cvsroot/mockobjects/mockobjects-java/src/jdk/common/com/mockobjects/rmi In directory usw-pr-cvs1:/tmp/cvs-serv20775/src/jdk/common/com/mockobjects/rmi Added Files: MockNaming.java Log Message: Added alt.java packages --- NEW FILE: MockNaming.java --- package com.mockobjects.rmi; import com.mockobjects.*; import com.mockobjects.util.AssertMo; import java.rmi.Remote; import java.rmi.AlreadyBoundException; import java.rmi.RemoteException; import java.rmi.NotBoundException; import java.net.MalformedURLException; import java.util.Vector; import alt.java.rmi.Naming; public class MockNaming extends MockObject implements Naming { private final Vector myRemotes = new Vector(); private final ExpectationValue myName = new ExpectationValue("name"); public void bind(String name, Remote obj) throws AlreadyBoundException, MalformedURLException, RemoteException { notImplemented(); } public void setupAddLookup(Remote aRemote){ myRemotes.add(aRemote); } public void setExpectedLookupName(String aName){ myName.setExpected(aName); } public Remote lookup(String name) throws NotBoundException, MalformedURLException, RemoteException { myName.setActual(name); return (Remote)myRemotes.remove(0); } public void unbind(String name) throws RemoteException, NotBoundException, MalformedURLException { notImplemented(); } public void rebind(String name, Remote obj) throws RemoteException, MalformedURLException { notImplemented(); } public String[] list(String name) throws RemoteException, MalformedURLException { notImplemented(); return new String[0]; } public void verify(){ super.verify(); AssertMo.assertEquals("Unclaimed remote objects in " + getClass().getName(), 0, myRemotes.size()); } } |
From: Jeff M. <cus...@us...> - 2002-04-30 17:03:14
|
Update of /cvsroot/mockobjects/mockobjects-java/src/jdk/1.3 In directory usw-pr-cvs1:/tmp/cvs-serv20775/src/jdk/1.3 Added Files: readme.txt Log Message: Added alt.java packages --- NEW FILE: readme.txt --- File to hold open 1.3 dir |
From: Jeff M. <cus...@us...> - 2002-04-30 16:47:03
|
Update of /cvsroot/mockobjects/mockobjects-java/src/j2ee/common/alt/javax/mail/internet In directory usw-pr-cvs1:/tmp/cvs-serv15453/internet Log Message: Directory /cvsroot/mockobjects/mockobjects-java/src/j2ee/common/alt/javax/mail/internet added to the repository |
From: Jeff M. <cus...@us...> - 2002-04-30 16:44:39
|
Update of /cvsroot/mockobjects/mockobjects-java/src/j2ee/common/alt/javax/mail In directory usw-pr-cvs1:/tmp/cvs-serv14629/mail Log Message: Directory /cvsroot/mockobjects/mockobjects-java/src/j2ee/common/alt/javax/mail added to the repository |
From: Jeff M. <cus...@us...> - 2002-04-30 16:41:20
|
Update of /cvsroot/mockobjects/mockobjects-java/src/j2ee/common/alt/javax In directory usw-pr-cvs1:/tmp/cvs-serv13798/javax Log Message: Directory /cvsroot/mockobjects/mockobjects-java/src/j2ee/common/alt/javax added to the repository |
From: Jeff M. <cus...@us...> - 2002-04-30 16:40:36
|
Update of /cvsroot/mockobjects/mockobjects-java/src/j2ee/common/alt In directory usw-pr-cvs1:/tmp/cvs-serv13602/alt Log Message: Directory /cvsroot/mockobjects/mockobjects-java/src/j2ee/common/alt added to the repository |
From: Jeff M. <cus...@us...> - 2002-04-30 16:37:49
|
Update of /cvsroot/mockobjects/mockobjects-java/src/jdk/common/alt/java/rmi In directory usw-pr-cvs1:/tmp/cvs-serv12785/rmi Log Message: Directory /cvsroot/mockobjects/mockobjects-java/src/jdk/common/alt/java/rmi added to the repository |
From: Jeff M. <cus...@us...> - 2002-04-30 16:36:45
|
Update of /cvsroot/mockobjects/mockobjects-java/src/jdk/common/alt/java In directory usw-pr-cvs1:/tmp/cvs-serv12458/java Log Message: Directory /cvsroot/mockobjects/mockobjects-java/src/jdk/common/alt/java added to the repository |
From: Jeff M. <cus...@us...> - 2002-04-30 16:26:13
|
Update of /cvsroot/mockobjects/mockobjects-java/src/jdk/common/com/mockobjects/rmi In directory usw-pr-cvs1:/tmp/cvs-serv9469/src/jdk/common/com/mockobjects/rmi Log Message: Directory /cvsroot/mockobjects/mockobjects-java/src/jdk/common/com/mockobjects/rmi added to the repository |
From: Jeff M. <cus...@us...> - 2002-04-30 16:23:56
|
Update of /cvsroot/mockobjects/mockobjects-java/src/j2ee/common/com/mockobjects/mail/internet In directory usw-pr-cvs1:/tmp/cvs-serv8875/internet Log Message: Directory /cvsroot/mockobjects/mockobjects-java/src/j2ee/common/com/mockobjects/mail/internet added to the repository |
From: Jeff M. <cus...@us...> - 2002-04-30 16:23:05
|
Update of /cvsroot/mockobjects/mockobjects-java/src/j2ee/common/com/mockobjects/mail In directory usw-pr-cvs1:/tmp/cvs-serv8662/mail Log Message: Directory /cvsroot/mockobjects/mockobjects-java/src/j2ee/common/com/mockobjects/mail added to the repository |
From: Jeff M. <cus...@us...> - 2002-04-30 16:06:48
|
Update of /cvsroot/mockobjects/mockobjects-java/src/jdk/common/alt In directory usw-pr-cvs1:/tmp/cvs-serv1927/src/jdk/common/alt Log Message: Directory /cvsroot/mockobjects/mockobjects-java/src/jdk/common/alt added to the repository |
From: Jeff M. <cus...@us...> - 2002-04-30 15:45:23
|
Update of /cvsroot/mockobjects/mockobjects-java/src/j2ee/common/com/mockobjects/jms In directory usw-pr-cvs1:/tmp/cvs-serv25705/src/j2ee/common/com/mockobjects/jms Added Files: MockMapMessage.java Log Message: Added MockMapMessage --- NEW FILE: MockMapMessage.java --- package com.mockobjects.jms; import com.mockobjects.ExpectationMap; import com.mockobjects.ExpectationSet; import com.mockobjects.MapEntry; import javax.jms.JMSException; import javax.jms.MapMessage; import java.util.Enumeration; /** * MockMapMessage * * @author gg...@e-... * @version $Revision: 1.1 $ */ public class MockMapMessage extends MockMessage implements MapMessage { private ExpectationSet myObjectProperties = new ExpectationSet("objectProperty"); public boolean getBoolean(String aKey) throws JMSException { notImplemented(); return false; } public byte getByte(String aKey) throws JMSException { notImplemented(); return 0; } public byte[] getBytes(String aKey) throws JMSException { notImplemented(); return new byte[]{}; } public char getChar(String aKey) throws JMSException { notImplemented(); return 0; } public double getDouble(String aKey) throws JMSException { notImplemented(); return 0; } public float getFloat(String aKey) throws JMSException { notImplemented(); return 0; } public int getInt(String aKey) throws JMSException { notImplemented(); return 0; } public long getLong(String aKey) throws JMSException { notImplemented(); return 0; } public Enumeration getMapNames() throws JMSException { notImplemented(); return null; } public Object getObject(String aKey) throws JMSException { notImplemented(); return null; } public short getShort(String aKey) throws JMSException { notImplemented(); return 0; } public String getString(String aKey) throws JMSException { notImplemented(); return null; } public boolean itemExists(String aKey) throws JMSException { notImplemented(); return false; } public void setBoolean(String aKey, boolean p) throws JMSException { notImplemented(); } public void setByte(String aKey, byte p) throws JMSException { notImplemented(); } public void setBytes(String aKey, byte[] p) throws JMSException { notImplemented(); } public void setBytes(String aKey, byte[] p, int n, int n1) throws JMSException { notImplemented(); } public void setChar(String aKey, char p) throws JMSException { notImplemented(); } public void setDouble(String aKey, double p) throws JMSException { notImplemented(); } public void setFloat(String aKey, float p) throws JMSException { notImplemented(); } public void setInt(String aKey, int p) throws JMSException { notImplemented(); } public void setLong(String aKey, long p) throws JMSException { notImplemented(); } public void setObject(String aKey, Object p) throws JMSException { notImplemented(); } public void setObjectProperty(String aKey, Object anObject) { myObjectProperties.addActual(new MapEntry(aKey, anObject)); } public void setShort(String aKey, short p) throws JMSException { notImplemented(); } public void setString(String aKey, String aKey1) throws JMSException { notImplemented(); } public void setExpectedObjectProperty(String aKey, Object anObject) { myObjectProperties.addExpected(new MapEntry(aKey, anObject)); } } |
From: Jeff M. <je...@mk...> - 2002-04-30 15:18:12
|
What are the criteria for deciding when we want to release a release. It's a while since we did one, but on the other hand we've not reach anything that feels like a milestone. On the other hand I'm not sure there is such a thing as the mocks just seem to evolve. -- |
From: Jeff M. <cus...@us...> - 2002-04-30 11:52:44
|
Update of /cvsroot/mockobjects/mockobjects-java/src/jdk/common/com/mockobjects/sql In directory usw-pr-cvs1:/tmp/cvs-serv23755/src/jdk/common/com/mockobjects/sql Added Files: MockArray.java Log Message: Added MockArray --- NEW FILE: MockArray.java --- package com.mockobjects.sql; import com.mockobjects.MockObject; import java.sql.*; import java.util.*; /** * MockArray.java * * @author gg...@e-... * @version $Revision: 1.1 $ */ public class MockArray extends MockObject implements Array{ private String myBaseTypeName; private Object myArray; public void setupBaseTypeName(String aBaseTypName){ myBaseTypeName = aBaseTypName; } public String getBaseTypeName(){ return myBaseTypeName; } public int getBaseType(){ notImplemented(); return 0; } public Object getArray(long l, int n) throws SQLException{ notImplemented(); return null; } public Object getArray(Map map)throws SQLException{ notImplemented(); return null; } public Object getArray(long l, int n, Map map) throws SQLException{ notImplemented(); return null; } public void setupArray(Object anArray){ myArray = anArray; } public Object getArray() throws SQLException{ return myArray; } public ResultSet getResultSet() throws SQLException{ notImplemented(); return null; } public ResultSet getResultSet(long l, int n ) throws SQLException{ notImplemented(); return null; } public ResultSet getResultSet(Map map) throws SQLException{ notImplemented(); return null; } public ResultSet getResultSet(long l, int n ,Map map) throws SQLException{ notImplemented(); return null; } } |
From: Jeff M. <cus...@us...> - 2002-04-30 11:51:54
|
Update of /cvsroot/mockobjects/mockobjects-java/src/j2ee/1.3/com/mockobjects/servlet In directory usw-pr-cvs1:/tmp/cvs-serv23538/src/j2ee/1.3/com/mockobjects/servlet Modified Files: MockHttpServletRequest.java Log Message: Changed to use ReturnObjectList Index: MockHttpServletRequest.java =================================================================== RCS file: /cvsroot/mockobjects/mockobjects-java/src/j2ee/1.3/com/mockobjects/servlet/MockHttpServletRequest.java,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- MockHttpServletRequest.java 22 Apr 2002 16:53:13 -0000 1.4 +++ MockHttpServletRequest.java 30 Apr 2002 11:51:50 -0000 1.5 @@ -1,44 +1,52 @@ package com.mockobjects.servlet; -import javax.servlet.*; -import javax.servlet.http.*; -import javax.servlet.jsp.*; +import com.mockobjects.ExpectationSet; +import com.mockobjects.MapEntry; +import com.mockobjects.MockObject; +import com.mockobjects.ReturnObjectList; + +import javax.servlet.ServletInputStream; +import javax.servlet.RequestDispatcher; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpSession; +import javax.servlet.http.Cookie; import java.util.*; -import java.io.*; -import java.net.*; -import com.mockobjects.*; +import java.io.BufferedReader; +import java.io.IOException; +import java.security.Principal; /** * @version $Revision$ */ public class MockHttpServletRequest extends MockObject -implements HttpServletRequest { + implements HttpServletRequest { private Dictionary myParameters = new Hashtable(); private Dictionary myHeaders = new Hashtable(); - private HttpSession httpSession; - private String contentType; + private HttpSession myHttpSession; + private String myContentType; private String myPathInfo; - private String remoteAddress; + private String myRemoteAddress; private String myRequestURI; private String myMethod; private ServletInputStream myInputStream; - private java.security.Principal userPrincipal; + private java.security.Principal myUserPrincipal; private ExpectationSet mySetAttributes = - new ExpectationSet(MockHttpServletRequest.class.getName() + - ".setAttribute"); + new ExpectationSet(MockHttpServletRequest.class.getName() + + ".setAttribute"); private ExpectationSet myRemoveAttributes = new ExpectationSet( MockHttpServletRequest.class.getName() + ".removeAttribute"); - private List myAttributesToReturn = new ArrayList(); + private ReturnObjectList myAttributesToReturn + = new ReturnObjectList("attributes"); - public void setupGetAttribute(Object anAttributeToReturn){ - myAttributesToReturn.add(anAttributeToReturn); + public void setupGetAttribute(Object anAttributeToReturn) { + myAttributesToReturn.addObjectToReturn(anAttributeToReturn); } public Object getAttribute(String anAttributeName) { - return myAttributesToReturn.remove(0); + return myAttributesToReturn.nextReturnObject(); } - public java.util.Enumeration getAttributeNames() { + public Enumeration getAttributeNames() { notImplemented(); return null; } @@ -63,15 +71,15 @@ } public void setContentType(String contentType) { - this.contentType = contentType; + this.myContentType = contentType; } - public java.lang.String getContextPath() { + public String getContextPath() { notImplemented(); return null; } - public javax.servlet.http.Cookie[] getCookies() { + public Cookie[] getCookies() { notImplemented(); return null; } @@ -81,24 +89,24 @@ } public String getHeader(String arg1) { - return (String)myHeaders.get(arg1); + return (String) myHeaders.get(arg1); } - public java.util.Enumeration getHeaderNames() { + public Enumeration getHeaderNames() { notImplemented(); return null; } - public java.util.Enumeration getHeaders(java.lang.String arg1) { + public Enumeration getHeaders(java.lang.String arg1) { notImplemented(); return null; } - public void setupGetInputStream(ServletInputStream anInputStream){ + public void setupGetInputStream(ServletInputStream anInputStream) { this.myInputStream = anInputStream; } - public javax.servlet.ServletInputStream getInputStream() + public ServletInputStream getInputStream() throws java.io.IOException { return myInputStream; } @@ -107,17 +115,17 @@ return 0; } - public java.util.Locale getLocale() { + public Locale getLocale() { notImplemented(); return null; } - public java.util.Enumeration getLocales() { + public Enumeration getLocales() { notImplemented(); return null; } - public void setupGetMethod(String aMethod){ + public void setupGetMethod(String aMethod) { this.myMethod = aMethod; } @@ -127,13 +135,13 @@ public String getParameter(String paramName) { String[] values = getParameterValues(paramName); - if (values == null) + if(values == null) return null; return values[0]; } - public java.util.Enumeration getParameterNames() { + public Enumeration getParameterNames() { return myParameters.keys(); } @@ -160,7 +168,7 @@ return null; } - public java.io.BufferedReader getReader() throws java.io.IOException { + public BufferedReader getReader() throws IOException { notImplemented(); return null; } @@ -170,12 +178,12 @@ return null; } - public void setupGetRemoteAddr(String remoteAddress){ - this.remoteAddress = remoteAddress; + public void setupGetRemoteAddr(String remoteAddress) { + this.myRemoteAddress = remoteAddress; } public String getRemoteAddr() { - return remoteAddress; + return myRemoteAddress; } public String getRemoteHost() { @@ -188,7 +196,7 @@ return null; } - public javax.servlet.RequestDispatcher getRequestDispatcher( + public RequestDispatcher getRequestDispatcher( java.lang.String arg1) { notImplemented(); return null; @@ -199,7 +207,7 @@ return null; } - public void setupGetRequestURI(String aRequestURI){ + public void setupGetRequestURI(String aRequestURI) { myRequestURI = aRequestURI; } @@ -227,11 +235,11 @@ } public HttpSession getSession() { - return httpSession; + return myHttpSession; } public void setSession(HttpSession httpSession) { - this.httpSession = httpSession; + this.myHttpSession = httpSession; } public HttpSession getSession(boolean arg1) { @@ -239,12 +247,12 @@ return null; } - public void setupGetUserPrincipal(java.security.Principal userPrincipal){ - this.userPrincipal = userPrincipal; + public void setupGetUserPrincipal(Principal userPrincipal) { + this.myUserPrincipal = userPrincipal; } - public java.security.Principal getUserPrincipal() { - return userPrincipal; + public Principal getUserPrincipal() { + return myUserPrincipal; } public boolean isRequestedSessionIdFromCookie() { @@ -271,7 +279,7 @@ return false; } - public void setupRemoveAttribute(String anAttributeToRemove){ + public void setupRemoveAttribute(String anAttributeToRemove) { myRemoveAttributes.addExpected(anAttributeToRemove); } @@ -299,7 +307,7 @@ } public void setupAddParameter(String paramName, String value) { - setupAddParameter(paramName, new String[] { value }); + setupAddParameter(paramName, new String[]{value}); } public void setupNoParameters() { @@ -318,15 +326,14 @@ myPathInfo = pathInfo; } - public StringBuffer getRequestURL(){ + public StringBuffer getRequestURL() { return null; } - public void setCharacterEncoding(String s){ + public void setCharacterEncoding(String s) { } - public Map getParameterMap(){ + public Map getParameterMap() { return null; } -} - +} \ No newline at end of file |
From: Steve F. <st...@m3...> - 2002-04-23 22:39:00
|
I responded to some a while ago. I haven't checked for a while but I think I should be getting notifications. ----- Original Message ----- From: "Vincent Tence" <vt...@sy...> > I've been to the sourceforge project's page and I was wondering if > anyone one is taking care of bugs and patches submitted to the tracker. > > I saw some stuff there a few months old and I don't know if the poor > guys even got an answer. I am willing to help answering people questions > where I can but I don't know how that tracker works. |
From: <lau...@ma...> - 2002-04-23 11:27:40
|
On 23 Apr, Steve Freeman wrote: > You need to copy at most one j2ee.jar file to the lib directory. The Ant > file will pick this up and build whichever configuration is appropriate, > depending on your compiler. > Thanks, I finally figured it out after RTFM'ing. L -- Laurent Duperval <mailto:lau...@ma...> "It's like Colonel Sanders leaving Kentucky Fried Chicken and taking the eleven herbs. Now they're just frying chicken." -Damon Wayans talking about leaving Fox and In Living Color |
From: Jeff M. <cus...@us...> - 2002-04-23 11:10:05
|
Update of /cvsroot/mockobjects/mockobjects-java/src/core/com/mockobjects In directory usw-pr-cvs1:/tmp/cvs-serv20384/src/core/com/mockobjects Modified Files: ReturnObjectList.java Log Message: Add test and docs for ReturnObjectList Index: ReturnObjectList.java =================================================================== RCS file: /cvsroot/mockobjects/mockobjects-java/src/core/com/mockobjects/ReturnObjectList.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- ReturnObjectList.java 22 Apr 2002 16:39:31 -0000 1.1 +++ ReturnObjectList.java 23 Apr 2002 11:09:59 -0000 1.2 @@ -4,29 +4,54 @@ import java.util.Vector; +/** + * <p>This class allows a list of objects to be setup which can be used whilst.The + * list is check to make sure that all the object in it are used and that none + * are left over at the end of a test.</p> + * + * <p>For ever sucessive call to nextReturnObject the next object in the list will + * returned.</p> + * + * <p>If the nextReturnObject method is called and there are no objects in the list + * an assertion error will be thrown. If the verify method is called and there + * are objects still in the list an assertion error will also be thrown.</p> + */ public class ReturnObjectList implements Verifiable { private final Vector myObjects = new Vector(); private final String myName; + /** + * Construct a new empty list + * @param aName Label used to identify list + */ public ReturnObjectList(String aName) { this.myName = aName; } + /** + * Add a next object to the end of the list. + * @param anOjectToReturn object to be added to the list + */ public void addObjectToReturn(Object anObjectToReturn){ myObjects.add(anObjectToReturn); } + /** + * Returns the next object from the list. Each object it returned in the + * order in which they where added. + */ public Object nextReturnObject(){ - if(myObjects.size()>0){ - return myObjects.remove(0); - }else{ - AssertMo.fail(myName + " has run out of objects."); - return null; - } + AssertMo.assertTrue(myName + " has run out of objects.", + myObjects.size() > 0); + return myObjects.remove(0); } + /** + * Verify that there are no objects left within the list. + */ public void verify() { - AssertMo.assertEquals(myName + " has un-used objects.", 0, myObjects.size()); + AssertMo.assertEquals(myName + " has un-used objects.", 0, + myObjects.size()); } } |
From: Jeff M. <cus...@us...> - 2002-04-23 11:10:05
|
Update of /cvsroot/mockobjects/mockobjects-java/src/core/com/mockobjects/test In directory usw-pr-cvs1:/tmp/cvs-serv20384/src/core/com/mockobjects/test Added Files: TestReturnObjectList.java Log Message: Add test and docs for ReturnObjectList --- NEW FILE: TestReturnObjectList.java --- package com.mockobjects.test; import java.util.*; import junit.framework.*; import com.mockobjects.*; import com.mockobjects.util.*; /** * JUnit test case for TestMapEntry */ public class TestReturnObjectList extends TestCaseMo { public TestReturnObjectList(String name) { super(name); } public static void main(String[] args) { start(new String[] { TestReturnObjectList.class.getName()}); } public static Test suite() { return new TestSuite(TestReturnObjectList.class); } public void testREturnObjectList() { final String test1 = "test1"; final String test2 = "test2"; final ReturnObjectList objectList = new ReturnObjectList("test"); objectList.addObjectToReturn(test1); objectList.addObjectToReturn(test2); assertVerifyFails(objectList); assertEquals(test1, objectList.nextReturnObject()); assertEquals(test2, objectList.nextReturnObject()); objectList.verify(); try{ objectList.nextReturnObject(); fail("Error should have been raised"); }catch(AssertionFailedError e){ assertEquals("test has run out of objects.", e.getMessage()); } } } |
From: Giuseppe G. <gg...@e-...> - 2002-04-23 10:43:27
|
hi all, in attachment you can find a Mock implementation of - com.mockobjects.jms.MockMapMessage.java - com.mockobjects.sql.MockArray.java not sure it can be interesting 4 u guys, but .. well, I try :-) Pino |
From: Steve F. <st...@m3...> - 2002-04-23 07:27:58
|
You need to copy at most one j2ee.jar file to the lib directory. The Ant file will pick this up and build whichever configuration is appropriate, depending on your compiler. S. ----- Original Message ----- From: "Laurent Duperval" <ldu...@mi...> To: <moc...@li...> Sent: Monday, April 22, 2002 2:04 PM Subject: [MO-java-dev] Typo in documentation > Hi, > > There is a missing / on line 243 of doc/xdocs/coding_conventions.xml > > Also, when building, I don't get the mockobjects-j2ee.jar file, the lib > directory contains nothing, the dist directory contains: > > dist: > CVS/ ${dist.name}.zip > > This is with a vanilla build, no build.properties file or anything. I'm > not sure whether this is expected or not. I'll dig deeper. > > L > > P.S. I'm not subscribed to the list (yet). You can CC me on any > response. > > > > > > > _______________________________________________ > Mockobjects-java-dev mailing list > Moc...@li... > https://lists.sourceforge.net/lists/listinfo/mockobjects-java-dev > |
From: Laurent D. <ldu...@mi...> - 2002-04-23 03:47:20
|
Hi, There is a missing / on line 243 of doc/xdocs/coding_conventions.xml Also, when building, I don't get the mockobjects-j2ee.jar file, the lib directory contains nothing, the dist directory contains: dist: CVS/ ${dist.name}.zip This is with a vanilla build, no build.properties file or anything. I'm not sure whether this is expected or not. I'll dig deeper. L P.S. I'm not subscribed to the list (yet). You can CC me on any response. |
From: Vincent T. <vt...@sy...> - 2002-04-23 02:44:53
|
Forwarding this to the right list, sorry. |