Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

What this example does is to create a strict mock of the SystemContext Class meaning that it creates a mock object that implements this interface with order checkingchecking the order of method calls. It sets the property Locale to this new context and then uses the FactoryUtil class to register the new instance which will be returned by getSingleton()