Benjamin:

This has been a hard thread to follow, but it sounds like you've been
doing some good work on unit testing and reducing plug-in dependencies
in OpenJUMP.

You wrote: "After a while I started to write unit tests and thus
needed to build a WorkbenchContext outside of OpenJUMP to run these
tests within Eclipse. That made my developement cycle
(edit-compile-run/test/debug loop) much shorter."

One of my challenges when trying to unit test parts of the OJ core
previously has been the number of inter-dependencies. Did you come up
with a mock or stub for WorkbenchContext? I really see some value in
sharing mocks and stubs for OJ core components.

I looked at the code here:

http://openjump-tools-docs.googlecode.com/git/javadoc/index.html

I must admit I'm a little confused. Are you writing an OJ specific
unit testing framework from scratch. I didn't see any references to
JUnit or another unit testing framework in your code.

Keep up the good work Benjamin. I wish I had more time to keep up with
what you were doing.

Thanks.

Landon

P.S- I really appreciate the tips about running OJ from Eclipse and
having it load an extension defined in another Eclipse Project. I'll
have to mess around with that, but I may be back to ask for help on
getting the Eclipse runtime configuration file set up so I can do
this.


On Fri, Jan 13, 2012 at 3:48 AM,  <edgar.sol...@web.de> wrote:
> thanks! hopefully i'll have time to play with it during the year. when it 
> comes to junit all i know is, it exists ;)
> thx agn.. ede
>
> On 13.01.2012 12:42, Benjamin Gudehus wrote:
>> Up and running!
>>
>> 2012/1/13 Stefan Steiniger <sst...@geo.uzh.ch <mailto:sst...@geo.uzh.ch>>
>>
>>     sorry for the late reply.
>>     Yes I think its fine to commit this - unit tests are a good thing
>>     (except I have never used them ;)
>>
>>     thanks
>>     stefan
>>
>>     Am 11.01.12 19:37, schrieb Benjamin Gudehus:
>>     > I will then commit this into trunk.
>>     >
>>     > 2012/1/11 Benjamin Gudehus <hasteb...@googlemail.com 
>> <mailto:hasteb...@googlemail.com>
>>     > <mailto:hasteb...@googlemail.com <mailto:hasteb...@googlemail.com>>>
>>     >
>>     >         in this case it is up to you whether to branch or not. as it is
>>     >         an addition it will be easy to merge later, it's merely an
>>     >         organizational decision.
>>     >
>>     >         regards ede
>>     >
>>     >
>>     >     here are my steps:
>>     >
>>     >     0. create eclipse project (mvn eclipse:eclipse failed, so I created
>>     >     it via eclipse, only add libs in /lib)
>>     >     (will not be committed to svn)
>>     >
>>     >     1. run all unittests in jumptest/junit (4 errors, 3 failures)
>>     >     2. remove file core/trunk/lib/junit.jar
>>     >     3. add file core/trunk/lib/junit.jar (version 4.10)
>>     >     4. run all unittests in jumptest/junit (4 errors, 3 failures)
>>     >
>>     >     (sourcecode in core/trunk/src/jumptest builds without errors (I
>>     >     didn't thought junit4 is compatible with junit3).)
>>     >
>>     >     5. add files core/trunk/src/org/openjump/test/*.java
>>     >     6. add files core/trunk/src/fixtures/*.jml
>>     >     7. run all unittests in core/trunk/src/org/openjump/test (0 errors,
>>     >     0 failures)
>>     >
>>     >     8. run ant -f etc/build.xml (build successful)
>>     >     9. run openjump (works)
>>     >
>>     >     10. modify pom.xml and update junit from 3.8 to 4.10
>>     >     11. run mvn package -P release(build success)
>>     >     12. run openjump (works)
>>     >
>>     >     If everyone is fine with my changes I will commit them.
>>     >
>>     >     $ svn status
>>     >     A       src\org\openjump\test
>>     >     A       src\org\openjump\test\TestTools.java
>>     >     A       src\org\openjump\test\TestToolsTest.java
>>     >     A       src\org\openjump\test\DialogParameters.java
>>     >     A       src\org\openjump\test\DialogParametersTest.java
>>     >     A       src\org\openjump\test\package-info.java
>>     >     A       src\org\openjump\test\ReflectionUtils.java
>>     >     A       src\org\openjump\test\ReflectionUtilsTest.java
>>     >     A       src\fixtures
>>     >     A       src\fixtures\dissolve.jml
>>     >     A       src\fixtures\inner-ring.jml
>>     >     A       src\fixtures\inner-ring-invalid.jml
>>     >     M       pom.xml
>>     >     M       lib\junit.jar
>>     >
>>     >     --Benjamin
>>     >
>>     >
>>     >
>>     >
>>     > 
>> ------------------------------------------------------------------------------
>>     > Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a 
>> complex
>>     > infrastructure or vast IT resources to deliver seamless, secure access 
>> to
>>     > virtual desktops. With this all-in-one solution, easily deploy virtual
>>     > desktops for less than the cost of PCs and save 60% on VDI 
>> infrastructure
>>     > costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
>>     >
>>     >
>>     >
>>     > _______________________________________________
>>     > Jump-pilot-devel mailing list
>>     > Jump-pilot-devel@lists.sourceforge.net 
>> <mailto:Jump-pilot-devel@lists.sourceforge.net>
>>     > https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
>>
>>     
>> ------------------------------------------------------------------------------
>>     RSA(R) Conference 2012
>>     Mar 27 - Feb 2
>>     Save $400 by Jan. 27
>>     Register now!
>>     http://p.sf.net/sfu/rsa-sfdev2dev2
>>     _______________________________________________
>>     Jump-pilot-devel mailing list
>>     Jump-pilot-devel@lists.sourceforge.net 
>> <mailto:Jump-pilot-devel@lists.sourceforge.net>
>>     https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> RSA(R) Conference 2012
>> Mar 27 - Feb 2
>> Save $400 by Jan. 27
>> Register now!
>> http://p.sf.net/sfu/rsa-sfdev2dev2
>>
>>
>>
>> _______________________________________________
>> Jump-pilot-devel mailing list
>> Jump-pilot-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
>
> ------------------------------------------------------------------------------
> RSA(R) Conference 2012
> Mar 27 - Feb 2
> Save $400 by Jan. 27
> Register now!
> http://p.sf.net/sfu/rsa-sfdev2dev2
> _______________________________________________
> Jump-pilot-devel mailing list
> Jump-pilot-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

Reply via email to