Class FlexMock::Interception
In: lib/flexmock.rb
Parent: Object

A Class Interception defines a constant in the target class to be a proxy that points to a replacement class for the duration of a test. When an interception is restored, the proxy will point to the original intercepted class.

Methods

in   intercept   new   restore   with  

Public Class methods

Create an interception object with the class to intercepted.

Public Instance methods

Define the class number test that will receive the interceptioned definition.

Intercept this class in the class to be tested.

Restore the original class. The proxy remains in place however.

Define the replacement class. This is normally a proxy or a stub.

[Validate]