Pure actionscript projects with mockito 1.3

98 views
Skip to first unread message

Skyler

unread,
Aug 13, 2010, 5:34:10 PM8/13/10
to mockito-flex
Whenever I create a pristine actionscript project and try to use
mockito I get this:

Unable to resolve resource bundle "collections" for locale "en_US".
mockito-test Unknown Flex Problem
Unable to resolve resource bundle "collections" for locale "en_US".
mockito-test Unknown Flex Problem
Unable to resolve resource bundle "collections" for locale "en_US".
mockito-test Unknown Flex Problem
Unable to resolve resource bundle "collections" for locale "en_US".
mockito-test Unknown Flex Problem
Unable to resolve resource bundle "collections" for locale "en_US".
mockito-test Unknown Flex Problem
Unable to resolve resource bundle "collections" for locale "en_US".
mockito-test Unknown Flex Problem
Unable to resolve resource bundle "collections" for locale "en_US".
mockito-test Unknown Flex Problem
Unable to resolve resource bundle "collections" for locale "en_US".
mockito-test Unknown Flex Problem
Unable to resolve resource bundle "collections" for locale "en_US".
mockito-test Unknown Flex Problem
Unable to resolve resource bundle "containers" for locale "en_US".
mockito-test Unknown Flex Problem
Unable to resolve resource bundle "containers" for locale "en_US".
mockito-test Unknown Flex Problem
Unable to resolve resource bundle "effects" for locale "en_US".
mockito-test Unknown Flex Problem
Unable to resolve resource bundle "effects" for locale "en_US".
mockito-test Unknown Flex Problem
Unable to resolve resource bundle "skins" for locale "en_US". mockito-
test Unknown Flex Problem
Unable to resolve resource bundle "skins" for locale "en_US". mockito-
test Unknown Flex Problem
Unable to resolve resource bundle "styles" for locale "en_US". mockito-
test Unknown Flex Problem
Unable to resolve resource bundle "styles" for locale "en_US". mockito-
test Unknown Flex Problem

Then I am unable to use mockito in pure actionscript projects. Am I
missing something?

Kris

unread,
Aug 13, 2010, 5:47:21 PM8/13/10
to mockit...@googlegroups.com
Where you  able to do it ever? I've never tested it for actionscript only projects. I'm guessing there are dependencies to the mx classes like ArrayCollection that may cause problems you mentioned.

mockito-flex has been written with flex in mind. If I find enough users interested in pure action script I may look into getting it that route. However, due to the dependencies to the external libraries that I use it may not be possible.

Regards,
Kris


--
You received this message because you are subscribed to the Google Groups "mockito-flex" group.
To post to this group, send email to mockit...@googlegroups.com.
To unsubscribe from this group, send email to mockito-flex...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/mockito-flex?hl=en.


Skyler

unread,
Aug 13, 2010, 7:31:58 PM8/13/10
to mockito-flex
Interestingly an all actionscript library works. It must include the
flex libraries too. So yes, I've used it before. I dig it. Now I'm
trying to test my all actionscript projects with mockito.
> > mockito-flex...@googlegroups.com<mockito-flex%2Bunsubscribe@google groups.com>
> > .

Kris

unread,
Aug 14, 2010, 4:26:09 AM8/14/10
to mockit...@googlegroups.com
Which version did you try? The latest milestone uses newer version of asmock maybe this is the reason? The 1.3RC has old binaries.

Kris

To unsubscribe from this group, send email to mockito-flex...@googlegroups.com.

Skyler

unread,
Aug 14, 2010, 11:48:08 PM8/14/10
to mockito-flex
If I try the release version all tests fail with the same message:

VerifyError: Error #1053: Illegal override of UIComponent in
mx.core.UIComponent.
at org.fluint.uiImpersonation.flex::FlexEnvironmentBuilder/
buildVisualTestEnvironment
at org.fluint.uiImpersonation::VisualTestEnvironmentBuilder/
buildVisualTestEnvironment(VisualTestEnvironmentBuilder.as:63)
at org.flexunit.internals.runners.watcher::FrameWatcher/
getStage(FrameWatcher.as:106)
at
org.flexunit.internals.runners.watcher::FrameWatcher(FrameWatcher.as:
118)
at
org.flexunit.internals.runners.statements::StackAndFrameManagement(StackAndFrameManagement.as:
89)
at org.flexunit.runners::BlockFlexUnit4ClassRunner/
withStackManagement(BlockFlexUnit4ClassRunner.as:406)
at org.flexunit.runners::BlockFlexUnit4ClassRunner/
withDecoration(BlockFlexUnit4ClassRunner.as:368)
at org.flexunit.runners::BlockFlexUnit4ClassRunner/
methodBlock(BlockFlexUnit4ClassRunner.as:313)
at org.flexunit.runners::BlockFlexUnit4ClassRunner/
runChild(BlockFlexUnit4ClassRunner.as:145)
at org.flexunit.internals.runners::ChildRunnerSequencer/
executeStep(ChildRunnerSequencer.as:82)
at org.flexunit.internals.runners.statements::StatementSequencer/
handleChildExecuteComplete(StatementSequencer.as:141)
at org.flexunit.internals.runners.statements::StatementSequencer/
evaluate(StatementSequencer.as:109)
at org.flexunit.internals.runners.statements::StatementSequencer/
executeStep(StatementSequencer.as:98)
at org.flexunit.internals.runners.statements::StatementSequencer/
handleChildExecuteComplete(StatementSequencer.as:141)
at org.flexunit.token::AsyncTestToken/sendResult(AsyncTestToken.as:
119)
at org.flexunit.internals.runners.statements::AsyncStatementBase/
sendComplete(AsyncStatementBase.as:76)
at org.flexunit.internals.runners.statements::StatementSequencer/
sendComplete(StatementSequencer.as:172)
at org.flexunit.internals.runners.statements::StatementSequencer/
handleChildExecuteComplete(StatementSequencer.as:145)
at org.flexunit.token::AsyncTestToken/sendResult(AsyncTestToken.as:
119)
at org.mockito.integrations.flexunit4:PrepareMocks/
private:prepareMocks/
org.mockito.integrations.flexunit4:repositoryPreparedHandler(PrepareMocks.as:
44)
at <anonymous>(AsmockMockery.as:79)
at flash.events::EventDispatcher/dispatchEventFunction
at flash.events::EventDispatcher/dispatchEvent
at CompletedEventDispatcher/addEventListener(ProxyRepositoryImpl.as:
224)
at org.mockito.impl::AsmockMockery/prepareClasses(AsmockMockery.as:86)
at org.mockito::Mockito/prepareClasses(Mockito.as:236)
at org.mockito.integrations.flexunit4::PrepareMocks/
prepareMocks(PrepareMocks.as:40)
at org.mockito.integrations.flexunit4::PrepareMocks/
evaluate(PrepareMocks.as:23)
at org.flexunit.internals.runners.statements::StatementSequencer/
executeStep(StatementSequencer.as:98)
at org.flexunit.internals.runners.statements::StatementSequencer/
handleChildExecuteComplete(StatementSequencer.as:141)
at org.flexunit.internals.runners.statements::StatementSequencer/
evaluate(StatementSequencer.as:109)
at org.flexunit.internals.runners.statements::StatementSequencer/
executeStep(StatementSequencer.as:98)
at org.flexunit.internals.runners.statements::StatementSequencer/
handleChildExecuteComplete(StatementSequencer.as:141)
at org.flexunit.internals.runners.statements::StatementSequencer/
evaluate(StatementSequencer.as:109)
at org.flexunit.runners::ParentRunner/run(ParentRunner.as:471)
at org.flexunit.runners::Suite/runChild(Suite.as:117)
at org.flexunit.internals.runners::ChildRunnerSequencer/
executeStep(ChildRunnerSequencer.as:82)
at org.flexunit.internals.runners.statements::StatementSequencer/
handleChildExecuteComplete(StatementSequencer.as:141)
at org.flexunit.internals.runners.statements::StatementSequencer/
evaluate(StatementSequencer.as:109)
at org.flexunit.runners::ParentRunner/run(ParentRunner.as:471)
at org.flexunit.runner::FlexUnitCore/
beginRunnerExecution(FlexUnitCore.as:245)
at org.flexunit.token::AsyncListenersToken/
sendReady(AsyncListenersToken.as:96)
at org.flexunit.runner.notification.async::AsyncListenerWatcher/
sendReadyNotification(AsyncListenerWatcher.as:148)
at org.flexunit.runner.notification.async::AsyncListenerWatcher/
handleListenerReady(AsyncListenerWatcher.as:163)
at flash.events::EventDispatcher/dispatchEventFunction
at flash.events::EventDispatcher/dispatchEvent
at flexunit.flexui::FlexUnit4TestRunner/
handleConnect(FlexUnit4TestRunner.as:315)
at flash.events::EventDispatcher/dispatchEventFunction
at flash.events::EventDispatcher/dispatchEvent
at flash.net::XMLSocket/reflectEvent

Kris

unread,
Aug 15, 2010, 4:19:41 AM8/15/10
to mockit...@googlegroups.com
Not good at all. This is caused probably by the flexunit version clash.

If you use the latest flex unit (4.1beta3) then try http://bitbucket.org/loomis/mockito-flex/downloads/mockito-1.4M1.zip
This milestone has only the flex unit updated.

Regards,
Kris

To unsubscribe from this group, send email to mockito-flex...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages