protected void setUp() throws Exception {
    containerControl = MockControl.createStrictControl(ObjectContainer.class);
    container = (ObjectContainer) containerControl.getMock();

    templateControl = MockClassControl.createStrictControl(Db4oTemplate.class);
    template = (Db4oTemplate) templateControl.getMock();
  }
Exemple #2
0
 public MockControl newControl(Class mockClass) {
   return MockClassControl.createStrictControl(mockClass);
 }