"TestCase could not be found" When running tests with maven

71 views
Skip to first unread message

-Erno

unread,
Aug 22, 2011, 12:35:19 PM8/22/11
to mockito-flex
Hi!
Thanks for your great framework.

I'm trying to run tests with maven but if I use 1.4M4 or 1.4M5 I get
this error when testrunner starts:

VerifyError: Error #1014: Class asunit.framework::TestCase could not
be found.

at flash.display::MovieClip/nextFrame()
at mx.managers::SystemManager/deferredNextFrame()[E:\dev
\4.5.1\frameworks\projects\framework\src\mx\managers\SystemManager.as:
284]
at mx.managers::SystemManager/
preloader_preloaderDocFrameReadyHandler()[E:\dev\4.5.1\frameworks
\projects\framework\src\mx\managers\SystemManager.as:2633]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.preloaders::Preloader/timerHandler()[E:\dev\4.5.1\frameworks
\projects\framework\src\mx\preloaders\Preloader.as:515]
at flash.utils::Timer/_timerDispatch()
at flash.utils::Timer/tick()

1.4M3 I get "Please make sure you specified a call to stub in
given(...)" error.
Any ideas why I get this? Test is simple so I don't have any
references to asunit's TestCase.

Kris

unread,
Aug 23, 2011, 7:11:33 AM8/23/11
to mockit...@googlegroups.com
Hi,

Strange indeed.

Do you mind sending a sample project (pom.xml, some example test, dependencies)?

Regards,
Kris

-Erno

unread,
Aug 24, 2011, 1:38:44 AM8/24/11
to mockit...@googlegroups.com
Hi, thanks for reply!

I attach the sample project.
I have mockito-flex swc in local nexus so you maybe have to edit systemPath at bottom of pom.xml.
And I use Maven 3.0.3.

Thanks for helping! Really appreciate!
flexunit4-example.zip
Reply all
Reply to author
Forward
0 new messages