Login | Register
My pages Projects Community openCollabNet

Discussions > modules-dev > argouml-modules-dev JUnit tests and modules

Discussion topic

Back to topic list

argouml-modules-dev JUnit tests and modules

Author n00n
Full name Florent de LAMOTTE
Date 2002-10-31 07:38:19 PST
Message When I started writing tests for ArgoPNO, I created a tests dir in the same
place as src,

I ran my module with the tests cases jar file in the classpath and so I could
run the tests thanks to the JUnit module.

But this morning, one test failed because in the tested class, there was a
call to the current editor (to get the selection Manager, It was something like
Globals.curEditor().​getSelectionManager(​)). It showed to
me that tested classes had no access to the running ArgoUML. since Globals.curEditor()
is null in the test ...

I just wonder what is the real purpose of the JUnit plugin if it is not to be able
to access the running objects from the tests ?

Is there a way to do the test (I can't imagine running ArgoUML in the fixture
is the only solution ...)

thanks in advance


To unsubscribe, e-mail: modules-dev-unsubscr​ibe at argouml dot tigris.o​rg
For additional commands, e-mail: modules-dev-help@arg​ouml.tigris.org

« Previous message in topic | 1 of 1 | Next message in topic »


Show all messages in topic

argouml-modules-dev JUnit tests and modules n00n Florent de LAMOTTE 2002-10-31 07:38:19 PST
Messages per page: