mocklib-checkins Mailing List for mocklib (Page 21)
Brought to you by:
bittwidler,
fastdragon
You can subscribe to this list here.
2005 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(6) |
Jul
(1) |
Aug
(5) |
Sep
(3) |
Oct
|
Nov
|
Dec
(46) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2006 |
Jan
(54) |
Feb
(120) |
Mar
(31) |
Apr
(11) |
May
(8) |
Jun
(5) |
Jul
|
Aug
(22) |
Sep
(295) |
Oct
(6) |
Nov
(10) |
Dec
|
2007 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(9) |
Jun
|
Jul
(2) |
Aug
(2) |
Sep
|
Oct
|
Nov
(2) |
Dec
(8) |
2008 |
Jan
|
Feb
(1) |
Mar
|
Apr
(8) |
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(2) |
Nov
|
Dec
|
2009 |
Jan
|
Feb
(17) |
Mar
|
Apr
|
May
(3) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Nobody <fas...@us...> - 2006-02-21 10:42:39
|
Update of /cvsroot/mocklib/osgimgr/input/javasrc/biz/xsoftware/test/osgimgr In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4638/input/javasrc/biz/xsoftware/test/osgimgr Log Message: Directory /cvsroot/mocklib/osgimgr/input/javasrc/biz/xsoftware/test/osgimgr added to the repository |
From: Nobody <fas...@us...> - 2006-02-21 10:42:39
|
Update of /cvsroot/mocklib/osgimgr/tools/ant-junit In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4638/tools/ant-junit Log Message: Directory /cvsroot/mocklib/osgimgr/tools/ant-junit added to the repository |
From: Nobody <fas...@us...> - 2006-02-21 10:42:39
|
Update of /cvsroot/mocklib/osgimgr/tools/findbugs/doc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4638/tools/findbugs/doc Log Message: Directory /cvsroot/mocklib/osgimgr/tools/findbugs/doc added to the repository |
From: Nobody <fas...@us...> - 2006-02-21 10:42:39
|
Update of /cvsroot/mocklib/osgimgr/tools/ant-optional In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4638/tools/ant-optional Log Message: Directory /cvsroot/mocklib/osgimgr/tools/ant-optional added to the repository |
From: Nobody <fas...@us...> - 2006-02-21 10:42:39
|
Update of /cvsroot/mocklib/osgimgr/tools/findbugs/lib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4638/tools/findbugs/lib Log Message: Directory /cvsroot/mocklib/osgimgr/tools/findbugs/lib added to the repository |
From: Nobody <fas...@us...> - 2006-02-21 10:42:39
|
Update of /cvsroot/mocklib/osgimgr/input/javasrc/osgi In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4638/input/javasrc/osgi Log Message: Directory /cvsroot/mocklib/osgimgr/input/javasrc/osgi added to the repository |
From: Nobody <fas...@us...> - 2006-02-21 10:42:39
|
Update of /cvsroot/mocklib/osgimgr/tools/package-list/jdk In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4638/tools/package-list/jdk Log Message: Directory /cvsroot/mocklib/osgimgr/tools/package-list/jdk added to the repository |
From: Nobody <fas...@us...> - 2006-02-21 10:42:39
|
Update of /cvsroot/mocklib/osgimgr/tools/findbugs In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4638/tools/findbugs Log Message: Directory /cvsroot/mocklib/osgimgr/tools/findbugs added to the repository |
From: Nobody <fas...@us...> - 2006-02-21 10:42:38
|
Update of /cvsroot/mocklib/osgimgr/tools/findbugs/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4638/tools/findbugs/src Log Message: Directory /cvsroot/mocklib/osgimgr/tools/findbugs/src added to the repository |
From: Nobody <fas...@us...> - 2006-02-21 10:42:38
|
Update of /cvsroot/mocklib/osgimgr/tools/ant/lib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4638/tools/ant/lib Log Message: Directory /cvsroot/mocklib/osgimgr/tools/ant/lib added to the repository |
From: Nobody <fas...@us...> - 2006-02-21 10:42:38
|
Update of /cvsroot/mocklib/osgimgr/input/javasrc/osgi/test In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4638/input/javasrc/osgi/test Log Message: Directory /cvsroot/mocklib/osgimgr/input/javasrc/osgi/test added to the repository |
From: Nobody <fas...@us...> - 2006-02-21 10:42:38
|
Update of /cvsroot/mocklib/osgimgr/input/javasrc/biz/xsoftware/test/osgimgr/mock In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4638/input/javasrc/biz/xsoftware/test/osgimgr/mock Log Message: Directory /cvsroot/mocklib/osgimgr/input/javasrc/biz/xsoftware/test/osgimgr/mock added to the repository |
From: Nobody <fas...@us...> - 2006-02-21 10:42:37
|
Update of /cvsroot/mocklib/osgimgr/tools/findbugs/bin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4638/tools/findbugs/bin Log Message: Directory /cvsroot/mocklib/osgimgr/tools/findbugs/bin added to the repository |
From: Nobody <fas...@us...> - 2006-02-21 10:42:37
|
Update of /cvsroot/mocklib/osgimgr/tools/findbugs/doc/manual In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4638/tools/findbugs/doc/manual Log Message: Directory /cvsroot/mocklib/osgimgr/tools/findbugs/doc/manual added to the repository |
From: Nobody <fas...@us...> - 2006-02-21 10:42:34
|
Update of /cvsroot/mocklib/osgimgr/input/libinclude In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4638/input/libinclude Log Message: Directory /cvsroot/mocklib/osgimgr/input/libinclude added to the repository |
From: Nobody <fas...@us...> - 2006-02-21 10:42:33
|
Update of /cvsroot/mocklib/osgimgr/input/javasrc/biz In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4638/input/javasrc/biz Log Message: Directory /cvsroot/mocklib/osgimgr/input/javasrc/biz added to the repository |
From: Nobody <fas...@us...> - 2006-02-21 10:42:33
|
Update of /cvsroot/mocklib/osgimgr/input/javasrc/biz/xsoftware/test In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4638/input/javasrc/biz/xsoftware/test Log Message: Directory /cvsroot/mocklib/osgimgr/input/javasrc/biz/xsoftware/test added to the repository |
From: Nobody <fas...@us...> - 2006-02-21 10:42:33
|
Update of /cvsroot/mocklib/osgimgr/input In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4638/input Log Message: Directory /cvsroot/mocklib/osgimgr/input added to the repository |
From: Nobody <fas...@us...> - 2006-02-21 10:42:33
|
Update of /cvsroot/mocklib/osgimgr/input/javasrc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4638/input/javasrc Log Message: Directory /cvsroot/mocklib/osgimgr/input/javasrc added to the repository |
From: Nobody <fas...@us...> - 2006-02-20 11:18:27
|
Update of /cvsroot/mocklib/mocklib2 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15053 Modified Files: .project Log Message: fix .project file. Index: .project =================================================================== RCS file: /cvsroot/mocklib/mocklib2/.project,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** .project 26 Jun 2005 12:57:14 -0000 1.2 --- .project 20 Feb 2006 11:18:20 -0000 1.3 *************** *** 16,29 **** </natures> <linkedResources> - <link> - <name>eclipsegen</name> - <type>2</type> - <location>C:/AROOT/views/eclipsegen/mocklib</location> - </link> - <link> - <name>eclipsegen2</name> - <type>2</type> - <location>C:/AROOT/views/eclipsegen/mocklib2</location> - </link> </linkedResources> </projectDescription> --- 16,19 ---- |
From: Nobody <fas...@us...> - 2006-02-19 19:21:38
|
Update of /cvsroot/mocklib/mocklib2/input/javasrc/biz/xsoftware/mock In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31048/input/javasrc/biz/xsoftware/mock Modified Files: MockObjectImpl.java MockSuperclass.java ExpectFailedException.java MockObjectFactory.java Log Message: add findbugs, checkstyle to mocklib. Index: ExpectFailedException.java =================================================================== RCS file: /cvsroot/mocklib/mocklib2/input/javasrc/biz/xsoftware/mock/ExpectFailedException.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** ExpectFailedException.java 13 Jan 2006 15:45:00 -0000 1.2 --- ExpectFailedException.java 19 Feb 2006 19:20:52 -0000 1.3 *************** *** 29,38 **** * all your expected methods were called. */ ! public static final String UNEXPECTED_CALL_AFTER = "Another method that was not expected nor ignored was called after all the expected method calls"; /** * Expect failed because a method you did not list in expected methods was called * before or during the other methods you did expect. */ ! public static final String UNEXPECTED_CALL_BEFORE ="Another method that was not expected nor ignored was called before all the expected method calls were called"; /** * Expect failed because you expected no methods to be called, but a method was called. --- 29,40 ---- * all your expected methods were called. */ ! public static final String UNEXPECTED_CALL_AFTER = ! "Another method that was not expected nor ignored was called after all the expected method calls"; /** * Expect failed because a method you did not list in expected methods was called * before or during the other methods you did expect. */ ! public static final String UNEXPECTED_CALL_BEFORE = ! "Another method that was not expected nor ignored was called before all the expected method calls were called"; /** * Expect failed because you expected no methods to be called, but a method was called. Index: MockSuperclass.java =================================================================== RCS file: /cvsroot/mocklib/mocklib2/input/javasrc/biz/xsoftware/mock/MockSuperclass.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** MockSuperclass.java 24 Sep 2005 05:41:22 -0000 1.5 --- MockSuperclass.java 19 Feb 2006 19:20:52 -0000 1.6 *************** *** 78,82 **** private String[] ignoredMethods = new String[0]; ! protected Cloner cloner; /** --- 78,82 ---- private String[] ignoredMethods = new String[0]; ! private Cloner cloner; /** *************** *** 84,88 **** * called. */ ! public final static int DEFAULT_WAIT_TIME = 10000; private int waitTime = DEFAULT_WAIT_TIME; --- 84,88 ---- * called. */ ! public static final int DEFAULT_WAIT_TIME = 10000; private int waitTime = DEFAULT_WAIT_TIME; *************** *** 145,153 **** if(e instanceof RuntimeException) throw (RuntimeException)e; ! throw new RuntimeException("Sorry, must wrap exception, unwrap in your mockobject, or have mockObject call methodCalledImpl instead", e); } } ! synchronized protected Object methodCalledImpl(String method, Object[] parameters) throws Throwable { method = method.intern(); String params = ""; --- 145,154 ---- if(e instanceof RuntimeException) throw (RuntimeException)e; ! throw new RuntimeException("Sorry, must wrap exception, unwrap in " + ! "your mockobject, or have mockObject call methodCalledImpl instead", e); } } ! protected synchronized Object methodCalledImpl(String method, Object[] parameters) throws Throwable { method = method.intern(); String params = ""; *************** *** 211,215 **** * @see biz.xsoftware.mock.MockObject#expectUnorderedCalls(java.lang.String[]) */ ! synchronized public CalledMethod[] expectUnorderedCalls(String[] methods) { if(methods == null) throw new IllegalArgumentException("methods cannot be null"); --- 212,216 ---- * @see biz.xsoftware.mock.MockObject#expectUnorderedCalls(java.lang.String[]) */ ! public synchronized CalledMethod[] expectUnorderedCalls(String[] methods) { if(methods == null) throw new IllegalArgumentException("methods cannot be null"); *************** *** 218,222 **** for(int i = 0; i < methods.length; i++) { if(methods[i] == null) ! throw new IllegalArgumentException("None of values in methods can be null, yet methods["+i+"] was null"); } --- 219,224 ---- for(int i = 0; i < methods.length; i++) { if(methods[i] == null) ! throw new IllegalArgumentException("None of values in methods " + ! "can be null, yet methods["+i+"] was null"); } *************** *** 232,241 **** for(int i = 0; i < methods.length; i++) { if(ANY.equals(methods[i])) ! throw new IllegalArgumentException("The parameter 'methods' in expectUnorderedCalls cannot contain MockSuperclass.ANY(use expectOrderedCalls instead)"); CalledMethod o = expectUnignoredCall(ANY, ignorables, methodsCalledList); if(o == null) { ! String reason = putTogetherReason(methods, ignorables, methodsCalledList, "timed out on next expected method\n"); ! throw new ExpectFailedException("Timed out waiting for a method call\n"+reason, retVal, ExpectFailedException.TIMED_OUT); } Integer index = (Integer)expectedMethods.remove(o.getMethodName()); --- 234,246 ---- for(int i = 0; i < methods.length; i++) { if(ANY.equals(methods[i])) ! throw new IllegalArgumentException("The parameter 'methods' in " + ! "expectUnorderedCalls cannot contain MockSuperclass.ANY(use expectOrderedCalls instead)"); CalledMethod o = expectUnignoredCall(ANY, ignorables, methodsCalledList); if(o == null) { ! String reason = putTogetherReason(methods, ignorables, methodsCalledList, ! "timed out on next expected method\n"); ! throw new ExpectFailedException("Timed out waiting for a method call\n" ! +reason, retVal, ExpectFailedException.TIMED_OUT); } Integer index = (Integer)expectedMethods.remove(o.getMethodName()); *************** *** 290,294 **** * @see biz.xsoftware.mock.MockObject#expectOrderedCalls(java.lang.String[]) */ ! synchronized public CalledMethod[] expectOrderedCalls(String[] methods) { if(methods == null) throw new IllegalArgumentException("methods cannot be null"); --- 295,299 ---- * @see biz.xsoftware.mock.MockObject#expectOrderedCalls(java.lang.String[]) */ ! public synchronized CalledMethod[] expectOrderedCalls(String[] methods) { if(methods == null) throw new IllegalArgumentException("methods cannot be null"); *************** *** 321,326 **** } if(o == null) { ! String reason = putTogetherReason(methods, ignorables, methodsCalledList, "timed out on next expected method\n"); ! throw new ExpectFailedException("Timed out waiting for call="+method+"\n"+reason, cleanup(retVal, i), ExpectFailedException.TIMED_OUT); } retVal[i] = o; --- 326,333 ---- } if(o == null) { ! String reason = putTogetherReason(methods, ignorables, methodsCalledList, ! "timed out on next expected method\n"); ! throw new ExpectFailedException("Timed out waiting for call=" ! +method+"\n"+reason, cleanup(retVal, i), ExpectFailedException.TIMED_OUT); } retVal[i] = o; *************** *** 411,415 **** } ! synchronized protected CalledMethod expectUnignoredCall(String method, Set<String> ignorables, List<CalledMethod> calledMethods) { if(method == null) --- 418,422 ---- } ! protected synchronized CalledMethod expectUnignoredCall(String method, Set<String> ignorables, List<CalledMethod> calledMethods) { if(method == null) *************** *** 440,444 **** } ! private CalledMethod waitForUnignoredCall(String logM, Set<String> ignorables, List<CalledMethod> calledMethods) throws InterruptedException { long waitTime2 = waitTime+50; --- 447,452 ---- } ! private CalledMethod waitForUnignoredCall( ! String logM, Set<String> ignorables, List<CalledMethod> calledMethods) throws InterruptedException { long waitTime2 = waitTime+50; *************** *** 522,526 **** * @see biz.xsoftware.mock.MockObject#addThrowException(java.lang.String, java.lang.Throwable) */ ! synchronized public void addThrowException(String method, Throwable e) { if(method == null) throw new IllegalArgumentException("method parameter cannot be null"); --- 530,534 ---- * @see biz.xsoftware.mock.MockObject#addThrowException(java.lang.String, java.lang.Throwable) */ ! public synchronized void addThrowException(String method, Throwable e) { if(method == null) throw new IllegalArgumentException("method parameter cannot be null"); *************** *** 538,542 **** * @see biz.xsoftware.mock.MockObject#addReturnValue(java.lang.String, java.lang.Object) */ ! synchronized public void addReturnValue(String method, Object o) { if(method == null) throw new IllegalArgumentException("method parameter cannot be null"); --- 546,550 ---- * @see biz.xsoftware.mock.MockObject#addReturnValue(java.lang.String, java.lang.Object) */ ! public synchronized void addReturnValue(String method, Object o) { if(method == null) throw new IllegalArgumentException("method parameter cannot be null"); Index: MockObjectImpl.java =================================================================== RCS file: /cvsroot/mocklib/mocklib2/input/javasrc/biz/xsoftware/mock/MockObjectImpl.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** MockObjectImpl.java 18 Sep 2005 17:10:24 -0000 1.5 --- MockObjectImpl.java 19 Feb 2006 19:20:52 -0000 1.6 *************** *** 57,61 **** Class c = method.getReturnType(); if(!Object.class.isAssignableFrom(c) && !"void".equals(c.getName())) { ! throw new RuntimeException("Must call addReturnValue and specify a non-null value as method="+method.getName()+" returns a primitive value"); } } --- 57,62 ---- Class c = method.getReturnType(); if(!Object.class.isAssignableFrom(c) && !"void".equals(c.getName())) { ! throw new RuntimeException("Must call addReturnValue and " + ! "specify a non-null value as method="+method.getName()+" returns a primitive value"); } } Index: MockObjectFactory.java =================================================================== RCS file: /cvsroot/mocklib/mocklib2/input/javasrc/biz/xsoftware/mock/MockObjectFactory.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** MockObjectFactory.java 27 Jun 2005 03:40:32 -0000 1.2 --- MockObjectFactory.java 19 Feb 2006 19:20:52 -0000 1.3 *************** *** 16,19 **** --- 16,21 ---- public abstract class MockObjectFactory { + private MockObjectFactory() {} + /** * Creates a MockObject based on your interface. One way to use it |
From: Nobody <fas...@us...> - 2006-02-19 19:21:38
|
Update of /cvsroot/mocklib/mocklib2/input/javasrc/biz/xsoftware/manifest In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31048/input/javasrc/biz/xsoftware/manifest Modified Files: TestManifestInfo.java Log Message: add findbugs, checkstyle to mocklib. Index: TestManifestInfo.java =================================================================== RCS file: /cvsroot/mocklib/mocklib2/input/javasrc/biz/xsoftware/manifest/TestManifestInfo.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** TestManifestInfo.java 27 Jun 2005 03:40:35 -0000 1.1 --- TestManifestInfo.java 19 Feb 2006 19:20:51 -0000 1.2 *************** *** 19,23 **** public class TestManifestInfo extends TestCase { ! private final static String DUMMY = "dummy"; private File jarFile; --- 19,23 ---- public class TestManifestInfo extends TestCase { ! private static final String DUMMY = "dummy"; private File jarFile; |
From: Nobody <fas...@us...> - 2006-02-19 19:21:35
|
Update of /cvsroot/mocklib/mocklib2/bldfiles In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31048/bldfiles Modified Files: directory.properties ant.properties build.xml Log Message: add findbugs, checkstyle to mocklib. Index: ant.properties =================================================================== RCS file: /cvsroot/mocklib/mocklib2/bldfiles/ant.properties,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** ant.properties 27 Jun 2005 03:40:32 -0000 1.2 --- ant.properties 19 Feb 2006 19:20:50 -0000 1.3 *************** *** 9,12 **** --- 9,19 ---- #version info may be retrieved using java -jar ${name}.jar -version + imports =[bundle.emptystring] + exports =[bundle.emptystring] + impl.pattern =biz/**,com/**,net/** + #The packages to make private + + build.source=5 + manifest.mainclass = TOOLS.JAVA.Main #The class that is run when java -jar xxxx.jar is run *************** *** 14,21 **** manifest.vendor = http://mocklib.sourceforge.net manifest.builder = Dean Hiller copyright = Copyright © 2000 Dean Hiller All Rights Reserved. javadoc.title = Build Template ! javadoc.bottom = xxxx<br> \ <a href=http://sourceforge.net> \ <IMG src=http://sourceforge.net/sflogo.php?group_id=113040 width=210 height=62 border=0 alt=SourceForge Logo> \ --- 21,30 ---- manifest.vendor = http://mocklib.sourceforge.net manifest.builder = Dean Hiller + manifest.description = A Library that creates mockobjects with one line of code that simulate any interface + manifest.icon = copyright = Copyright © 2000 Dean Hiller All Rights Reserved. javadoc.title = Build Template ! javadoc.bottom = A Library that creates mockobjects that simulate any interface<br> \ <a href=http://sourceforge.net> \ <IMG src=http://sourceforge.net/sflogo.php?group_id=113040 width=210 height=62 border=0 alt=SourceForge Logo> \ Index: build.xml =================================================================== RCS file: /cvsroot/mocklib/mocklib2/bldfiles/build.xml,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** build.xml 21 Dec 2005 21:04:41 -0000 1.9 --- build.xml 19 Feb 2006 19:20:50 -0000 1.10 *************** *** 31,55 **** *********************************************************************** --> - <!--property name="checkstyle.location" location="${tool.dir}/checkstyle"/> - <taskdef name="checkstyle" classname="com.puppycrawl.tools.checkstyle.CheckStyleTask"> - <classpath> - <fileset dir="${checkstyle.location}"> - <include name="**/*.jar"/> - </fileset> - </classpath> - </taskdef--> <property name="junit.location" location="${tool.dir}/ant-junit"/> ! <path id="junit.lib"> ! <pathelement path="${junit.location}/ant-junit.jar"/> ! <pathelement path="${junit.location}/junit.jar"/> ! </path> <property name="antcontrib.location" location="${tool.dir}/ant-contrib"/> ! <path id="antcontrib.lib"> <fileset dir="${antcontrib.location}"> ! <include name="**/*.jar"/> ! </fileset> ! </path> <!-- directory that contains emma.jar and emma_ant.jar: --> --- 31,47 ---- *********************************************************************** --> <property name="junit.location" location="${tool.dir}/ant-junit"/> ! <path id="junit.lib"> ! <pathelement path="${junit.location}/ant-junit.jar"/> ! <pathelement path="${junit.location}/junit.jar"/> ! </path> <property name="antcontrib.location" location="${tool.dir}/ant-contrib"/> ! <path id="antcontrib.lib"> <fileset dir="${antcontrib.location}"> ! <include name="**/*.jar"/> ! </fileset> ! </path> <!-- directory that contains emma.jar and emma_ant.jar: --> *************** *** 60,64 **** </fileset> </path> ! <!-- *********************************************************************** --- 52,71 ---- </fileset> </path> ! ! <property name="findbugs.dir" value="${tool.dir}/findbugs" /> ! <path id="findbugs.lib" > ! <fileset dir="${findbugs.dir}/lib"> ! <include name="**/*.jar"/> ! </fileset> ! </path> ! ! <property name="checkstyle.dir" value="${tool.dir}/checkstyle" /> ! ! <property name="osgi.location" location="${tool.dir}/ant-osgi"/> ! <path id="osgi.ant.lib"> ! <fileset dir="${osgi.location}"> ! <include name="**/*.jar"/> ! </fileset> ! </path> <!-- *********************************************************************** *************** *** 66,73 **** *********************************************************************** --> <!-- all Third Party jars and tool jars this module needs to compile --> <path id="lib.jars"> ! <fileset dir="${lib}"> <include name="**/*.jar"/> </fileset> --- 73,86 ---- *********************************************************************** --> + <path id="lib.include"> + <fileset dir="${lib}"> + <include name="**/*.jar"/> + </fileset> + </path> <!-- all Third Party jars and tool jars this module needs to compile --> <path id="lib.jars"> ! <path refid="lib.include"/> ! <fileset dir="${libexclude}"> <include name="**/*.jar"/> </fileset> *************** *** 99,110 **** --> <target name="taskdefs"> ! <tstamp/> <!-- Override this property to build official release --> ! <property name="version" value="Developer-Build"/> <echo message="***************************USING THIS ANT************************"/> <echo message="ant.home=${ant.home}"/> <echo message="*****************************************************************"/> - <echo message="basedir=${basedir}"/> <!--Just a convenient pathconvert to debug paths above by converting to string and printing --> --- 112,126 ---- --> <target name="taskdefs"> ! <tstamp> ! <format property="manifest.date" ! pattern ="EE MMMM d yyyy, HH:mm:ss" ! locale ="en"/> ! </tstamp> <!-- Override this property to build official release --> ! <property name="version" value="Developer-Build"/> <echo message="***************************USING THIS ANT************************"/> <echo message="ant.home=${ant.home}"/> <echo message="*****************************************************************"/> <!--Just a convenient pathconvert to debug paths above by converting to string and printing --> *************** *** 115,118 **** --- 131,149 ---- <taskdef resource="net/sf/antcontrib/antlib.xml" classpathref="antcontrib.lib"/> <taskdef resource="emma_ant.properties" classpathref="emma.lib" /> + + <taskdef name="findbugs" classname="edu.umd.cs.findbugs.anttask.FindBugsTask" classpathref="findbugs.lib"/> + <!-- for some reason, I can't use resource="checkstyletask.properties" as it fails here--> + <taskdef name="checkstyle" classname="com.puppycrawl.tools.checkstyle.CheckStyleTask"> + <classpath> + <fileset dir="${checkstyle.dir}"> + <include name="**/*.jar"/> + </fileset> + </classpath> + </taskdef> + + <taskdef name="bundleinfo" classname="org.knopflerfish.ant.taskdefs.bundle.BundleInfoTask" classpathref="osgi.ant.lib"/> + <taskdef name="bundlemanifest" classname="org.knopflerfish.ant.taskdefs.bundle.BundleManifestTask" classpathref="osgi.ant.lib"/> + <taskdef name="bundlehtml" classname="org.knopflerfish.ant.taskdefs.bundle.BundleHTMLExtractorTask" classpathref="osgi.ant.lib"/> + <taskdef name="bundleobr" classname="org.knopflerfish.ant.taskdefs.bundle.OBRExtractorTask" classpathref="osgi.ant.lib"/> </target> *************** *** 128,131 **** --- 159,163 ---- <mkdir dir="${javacode}"/> <mkdir dir="${lib}"/> + <mkdir dir="${libexclude}"/> <mkdir dir="${staging.in}"/> <mkdir dir="${properties}"/> *************** *** 230,270 **** <!-- *********************************************************************** MANIFEST TARGET *********************************************************************** --> ! <target name="manifest" depends="create-src" description="Generate manifest"> <mkdir dir="${manifest}"/> ! <!--generate classpath to add to manifest using all jars in lib and main jar--> ! <pathconvert dirsep="/" pathsep=" " property="temp.classpath" refid="lib.jars" setonempty="true"> ! <!--The map takes away the beginning of the path just leaving the jar file name --> ! <map from="${full.lib.path}${file.separator}" to=""/> ! </pathconvert> ! <property name="temp.classpath" value=""/> ! <property name="manifest.classpath" value="${jar.name} junit.jar ${temp.classpath}"/> ! ! <echo message="manifest.builder=${manifest.builder}"/> ! <echo message="manifest.classpath=${manifest.classpath}"/> ! <!--generate a manifest--> ! <manifest file="${manifest}/MANIFEST.MF"> ! <attribute name="Built-By" value="${manifest.builder}"/> ! <attribute name="Main-Class" value="biz.xsoftware.manifest.ManifestInfo"/> ! <attribute name="Class-Path" value="${manifest.classpath}"/> ! <!--attribute name="Specification-Title" value="${spec.title}"/> ! <attribute name="Specification-Version" value="${spec.version}"/> ! <attribute name="Specification-Vendor" value="${spec.vendor}"/--> ! <attribute name="Implementation-Title" value="${manifest.title}"/> ! <attribute name="Implementation-Version" value="${version} ${TODAY}"/> ! <attribute name="Implementation-Vendor" value="${manifest.vendor}"/> ! <!-- non-standard manifest attributes --> ! <attribute name="SubMain-Class" value="${manifest.mainclass}"/> ! <attribute name="JarVersion" value="${version} ${TODAY}"/> ! <!--section name="common/class1.class"> ! <attribute name="Sealed" value="false"/> ! </section--> ! </manifest> ! </target> <!-- --- 262,362 ---- <!-- *********************************************************************** + OSGI specific stuff + *********************************************************************** + --> + <target name="key1" if="exports" depends="compile"> + <property name="export" value="Export-Package"/> + </target> + <target name="key2" unless="exports" depends="key1"> + <property name="export" value="No-Export-Package"/> + </target> + + <!-- + *********************************************************************** MANIFEST TARGET *********************************************************************** --> ! <target name="manifest" depends="key2"> <mkdir dir="${manifest}"/> ! <property name="bundle.uuid" value="biz.xsoftware:${name}:${version}:all"/> ! <property name="ee.check.foundation" value="false"/> ! <property name="bundle.emptystring" value="[bundle.emptystring]"/> ! <!--generate classpath to add to manifest using all jars in lib and main jar--> ! <pathconvert dirsep="/" pathsep="," property="osgi.classpath" refid="lib.include" setonempty="true"> ! <!--The map takes away the beginning of the path just leaving the jar file name --> ! <map from="${full.lib.path}${file.separator}" to=""/> ! </pathconvert> ! <property name="bundle.classpath" value=".,${osgi.classpath}"/> ! ! <echo message="bundle.classpath=${bundle.classpath}"/> ! ! <!-- the following is for osgi pojo's. You don't need to depend on osgi ! to use it, but the manifest has to have some entries!!! --> ! <bundleinfo exports = "export.package" ! checkFoundationEE = "${ee.check.foundation}"> ! <fileset dir="${build}" includes="${api.pattern}"/> ! </bundleinfo> ! ! <bundleinfo activator = "bundle.activator" ! imports = "import.package" ! stdimports = "${ignore.imports}" ! checkFoundationEE = "${ee.check.foundation}"> ! <fileset dir="${build}" includes="${impl.pattern}"/> ! </bundleinfo> ! ! <echo message="export=${export}"/> ! ! <bundlemanifest file = "${manifest}/MANIFEST.MF"> ! <attribute name="Bundle-Name" value="${name}"/> ! <attribute name="Bundle-SymbolicName" value="${name}"/> ! <attribute name="Bundle-Version" value="${version}"/> ! <attribute name="Bundle-Description" value="${manifest.description}"/> ! <attribute name="Bundle-Vendor" value="${manifest.vendor}"/> ! <attribute name="Bundle-DocURL" value="${manifest.vendor}"/> ! <attribute name="Bundle-ContactAddress" value="${manifest.vendor}"/> ! <attribute name="Service-Component" value="descriptors/metadata.xml"/> ! <attribute name="Bundle-Category" value="${bundle.emptystring}"/> ! <attribute name="Bundle-Config" value="${bundle.emptystring}"/> ! <attribute name="Bundle-Classpath" value="${bundle.classpath}"/> ! <attribute name="Export-Service" value="${bundle.emptystring}"/> ! <attribute name="Import-Service" value="${bundle.emptystring}"/> ! ! <attribute name="${export}" value="${exports}"/> ! <attribute name="Import-Package" value="${imports}"/> ! <attribute name="Bundle-UUID" value="${bundle.uuid}"/> ! <attribute name="Built-From" value="${manifest.builder}"/> ! <attribute name="Build-Date" value="${manifest.date}"/> ! <attribute name="Application-Icon" value="${manifest.icon}"/> ! <attribute name="Bundle-SubversionURL" value="${manifest.vendor}"/> ! <attribute name="Bundle-APIVendor" value="${manifest.vendor}"/> ! ! <attribute name="Built-By" value="${manifest.builder}"/> ! <attribute name="Main-Class" value="biz.xsoftware.manifest.ManifestInfo"/> ! <attribute name="Class-Path" value="${manifest.classpath}"/> ! <!-- ! <attribute name="Specification-Title" value="${spec.title}"/> ! <attribute name="Specification-Version" value="${spec.version}"/> ! <attribute name="Specification-Vendor" value="${spec.vendor}"/> ! --> ! ! <attribute name="Implementation-Title" value="${manifest.title}"/> ! <attribute name="Implementation-Version" value="${version} ${TODAY}"/> ! <attribute name="Implementation-Vendor" value="${manifest.vendor}"/> ! ! <!-- non-standard manifest attributes --> ! <attribute name="SubMain-Class" value="${manifest.mainclass}"/> ! <attribute name="JarVersion" value="${version} ${TODAY}"/> ! ! <!-- ! <section name="common/class1.class"> ! <attribute name="Sealed" value="false"/> ! </section> ! --> ! </bundlemanifest> ! ! </target> <!-- *************** *** 282,286 **** </copy> - <mkdir dir="${jardist}"/> <!-- Put all implementation classes from ${build} into the jar file --> <jar jarfile="${jardist}/${jar.name}" basedir="${build}" manifest="${manifest}/MANIFEST.MF"/> --- 374,377 ---- *************** *** 464,474 **** <!-- after all tests are run, this makes the build fail--> <fail if="is.test.fail"/> ! ! <!-- emma is not playing nice so we must feed it the absolute path of ! the report directory, otherwise if run from another directory, it ! puts it relative to that instead of relative to base dir --> <property name="report.tmp" location="${codecov.report}"/> - - <echo message="HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH"/> <echo message="report=${report.tmp}"/> --- 555,562 ---- <!-- after all tests are run, this makes the build fail--> <fail if="is.test.fail"/> ! ! <!--autobuilds will not work without this while normal build will ! because for some reason basedir was not being used property--> <property name="report.tmp" location="${codecov.report}"/> <echo message="report=${report.tmp}"/> *************** *** 480,484 **** <txt outfile="${report.tmp}/coverage.txt" /> ! <html outfile="${report.tmp}/coverage.html" /> </report> </emma> --- 568,572 ---- <txt outfile="${report.tmp}/coverage.txt" /> ! <html outfile="${report.tmp}/index.html" /> </report> </emma> *************** *** 486,512 **** </target> <!-- *********************************************************************** ! RELEASE TARGET *********************************************************************** --> ! <target name="release" depends="testall" description="Builds official release"> ! <ant antfile="${config}/release.xml" inheritRefs="true"/> </target> <!-- *********************************************************************** ! CHECKSTYLE TARGET *********************************************************************** --> ! <target name="checkstyle" depends="create-src" description="Runs checkstyle against the code"> ! <!-- for some odd reason, this property is relative to conf directory --> ! <property name="checkstyle.header.file" value="${checkstyle.location}/vmaster.header"/> ! <checkstyle config="${checkstyle.location}/checkstyle_checks.xml"> ! <fileset dir="${javacode}" includes="**/*.java"/> ! <formatter type="plain" toFile="checkstyle.log"/> ! </checkstyle> </target> - <!-- *********************************************************************** --- 574,627 ---- </target> + <!-- + *********************************************************************** + FINDBUGS TARGET + *********************************************************************** + --> + <target name="findbugs" depends="jar"> + <mkdir dir="${findbugs.report}"/> + <findbugs home="${findbugs.dir}" + output="html" + outputFile="${findbugs.report}/index.html"> + <class location="${jardist}/${jar.name}"/> + </findbugs> + </target> + <!-- + *********************************************************************** + CHECKSTYLE TARGET + *********************************************************************** + --> + <target name="checkstyle" depends="create-src" description="Runs checkstyle against the code"> + <mkdir dir="${checkstyle.report}"/> + <checkstyle config="${checkstyle.dir}/config.xml"> + <fileset dir="${javacode}" includes="**/*.java"/> + <formatter type="plain" toFile="${checkstyle.report}/index.html"/> + </checkstyle> + </target> + + <!-- + *********************************************************************** + ALL TARGET + *********************************************************************** + --> + <target name="all" depends="testall,checkstyle,findbugs,javadoc"> + + </target> <!-- *********************************************************************** ! AUTOBUILD TARGET *********************************************************************** --> ! <target name="autobuild" depends="all"> </target> <!-- *********************************************************************** ! RELEASE TARGET *********************************************************************** --> ! <target name="release" depends="all" description="Builds official release"> ! <ant antfile="${config}/release.xml" inheritRefs="true"/> </target> <!-- *********************************************************************** Index: directory.properties =================================================================== RCS file: /cvsroot/mocklib/mocklib2/bldfiles/directory.properties,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** directory.properties 1 Jan 2006 00:20:50 -0000 1.2 --- directory.properties 19 Feb 2006 19:20:50 -0000 1.3 *************** *** 30,37 **** #contains the release that gets released to the world ! allcodecov =${generated}/codecoverage ! codecov.report =${allcodecov}/report #contains the code coverage reports of what the unit tests #covered codecov.temp =${allcodecov}/misc codecov.classes =${allcodecov}/instrumented-classes --- 30,43 ---- #contains the release that gets released to the world ! reports =${generated}/reports ! codecov.report =${reports}/codecoverage #contains the code coverage reports of what the unit tests #covered + findbugs.report =${reports}/findbugs + checkstyle.report=${reports}/checkstyle + javadoc =${reports}/javadoc + #contains the javadoc of biz.xsoftware.api + + allcodecov =${generated}/codecoverage codecov.temp =${allcodecov}/misc codecov.classes =${allcodecov}/instrumented-classes *************** *** 40,46 **** codecov.jar =${allcodecov}/instrumented-jar - javadoc =${generated}/javadoc - #contains the javadoc of biz.xsoftware.api - junit.results =${generated}/test_results #contains junit test results --- 46,49 ---- *************** *** 91,96 **** lib =${input}/lib ! #contains all *.jar needed to run the app #does not contain *.jars needed to compile the app(such as junit.jar) staging.in =${input}/staging --- 94,103 ---- lib =${input}/lib ! #contains all *.jar needed to run the app and that need to be deployed with the app #does not contain *.jars needed to compile the app(such as junit.jar) + libexclude =${input}/libexclude + #contains all the *.jar that are not needed to run the app. They are for testing or + #would already be deployed as services in the framework as in the case of an osgi logging + #service for example staging.in =${input}/staging *************** *** 131,133 **** #output = build.log #uncomment this to activate the logging - --- 138,139 ---- |
From: Nobody <fas...@us...> - 2006-02-19 19:21:12
|
Update of /cvsroot/mocklib/mocklib2/input/javasrc/biz/xsoftware/mock2/impl In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31048/input/javasrc/biz/xsoftware/mock2/impl Modified Files: MockObjectImpl.java MockObjectSuperImpl.java Log Message: add findbugs, checkstyle to mocklib. Index: MockObjectImpl.java =================================================================== RCS file: /cvsroot/mocklib/mocklib2/input/javasrc/biz/xsoftware/mock2/impl/MockObjectImpl.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** MockObjectImpl.java 16 Feb 2006 15:37:34 -0000 1.2 --- MockObjectImpl.java 19 Feb 2006 19:20:52 -0000 1.3 *************** *** 19,23 **** InvocationHandler { private static Set<Method> isMethodInSuper=new HashSet<Method>(); ! Class[]classes; static { --- 19,23 ---- InvocationHandler { private static Set<Method> isMethodInSuper=new HashSet<Method>(); ! private Class[] classes; static { *************** *** 53,57 **** Class c = method.getReturnType(); if(!Object.class.isAssignableFrom(c) && !"void".equals(c.getName())) { ! throw new RuntimeException("Must call addReturnValue and specify a non-null value as method="+method.getName()+" returns a primitive value"); } } --- 53,58 ---- Class c = method.getReturnType(); if(!Object.class.isAssignableFrom(c) && !"void".equals(c.getName())) { ! throw new RuntimeException("Must call addReturnValue " + ! "and specify a non-null value as method="+method.getName()+" returns a primitive value"); } } Index: MockObjectSuperImpl.java =================================================================== RCS file: /cvsroot/mocklib/mocklib2/input/javasrc/biz/xsoftware/mock2/impl/MockObjectSuperImpl.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** MockObjectSuperImpl.java 17 Feb 2006 15:07:40 -0000 1.5 --- MockObjectSuperImpl.java 19 Feb 2006 19:20:52 -0000 1.6 *************** *** 27,31 **** * List of the methods been called ,and store them */ ! Map retVal=new HashMap(); /** * List of the methods that have been expected --- 27,31 ---- * List of the methods been called ,and store them */ ! private Map retVal=new HashMap(); /** * List of the methods that have been expected *************** *** 140,144 **** } ! synchronized protected Object methodCalledImpl(String methodName, Object[] parameters) { --- 140,144 ---- } ! protected synchronized Object methodCalledImpl(String methodName, Object[] parameters) { |
From: Nobody <fas...@us...> - 2006-02-19 19:21:11
|
Update of /cvsroot/mocklib/mocklib2/input/javasrc/biz/xsoftware/mock2 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31048/input/javasrc/biz/xsoftware/mock2 Modified Files: Messages.java Log Message: add findbugs, checkstyle to mocklib. Index: Messages.java =================================================================== RCS file: /cvsroot/mocklib/mocklib2/input/javasrc/biz/xsoftware/mock2/Messages.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** Messages.java 16 Feb 2006 15:37:35 -0000 1.2 --- Messages.java 19 Feb 2006 19:20:54 -0000 1.3 *************** *** 1,9 **** package biz.xsoftware.mock2; ! public class Messages { private Messages() {} ! public static final String VERIFY_NOT_CALLED = "MockObject.verify() must be called before accessing and of the methods on CalledMethod object"; } --- 1,10 ---- package biz.xsoftware.mock2; ! public final class Messages { private Messages() {} ! public static final String VERIFY_NOT_CALLED = ! "MockObject.verify() must be called before accessing and of the methods on CalledMethod object"; } |