Using Mock Objects in a Flex Application

Flex Meetup Group
Fri, 13 Nov 2009, 19:00 - 21:00 (Add to calendar) GMT
(Exact location not available) , Atlanta, US

The usage of mock objects in a Flex application may represent a very powerful way to improve development speed and increase the quality of the tests you will prepare. A mock object can simulate the behavior of complex, real (non-mock) objects and are therefore useful when a real object is not yet available (server side development is late!) or when a real object is impractical or impossible to incorporate into a unit test, the Mocker class we┬╣ll discuss during this session is an easy way to create tons of mock objects with few line of codes and with a predictable behavior. It may be useful to use a mock object in its place:


  • Supplies non-deterministic results (e.g. the current time or the
  • current temperature)
  • Has states that are difficult to create or reproduce (e.g. a network
  • error)
  • Is slow (e.g. a complete database, which would have to be initialized
  • before the test)
  • Does not yet exist or may change behavior;
  • Would have to include information and methods exclusively for testing purposes (and not for its actual task)
  • [/list]

    Learn how to generate mock objects with our open source solution inspired by mockito! Session level: intermediate

    Presenter: Giorgio Natili of

    You might also like...


    Other nearby events



    Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

    Our tools

    We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

    “Weeks of coding can save you hours of planning.”