com.gwtplatform.tester
Interface MockFactory


public interface MockFactory

Mocking factory that transfer the work of creating a mock object to any Mocking framework. User should create an implementation to inject in their MockingBinder implementation.

 public class MockitoMockFactory implements MockFactory {
   public  T mock(Class classToMock) {
     return Mockito.mock(classToMock);
   }
 }
 

Author:
Christian Goudreau

Method Summary
<T> T
mock(Class<T> classToMock)
           
 

Method Detail

mock

<T> T mock(Class<T> classToMock)


Copyright © 2010-2011 ArcBees. All Rights Reserved.