135213531354135513561357135813591360136113621363
.returns(true).any(); protocolMock .expects.supportsJavaScript() .returns(true).any(); WidgetModuleMock moduleMock = new WidgetModuleMock("moduleMock", expectations); protocolMock .expects.getWidgetModule() .returns(moduleMock).fixed(2); DynamicMenuWidgetRendererMock rendererMock
4546474849505152535455
// Let the base class create basic mocks super.setUp(); Class attrClass = TabsAttributes.class; moduleMock = new WidgetModuleMock( "moduleMock", expectations); protocolMock .expects.getWidgetModule() .returns(moduleMock).any();
151152153154155156157158159160161
.returns(protocolMock).any(); } protected void addDefaultElementExpectations(Class attrClass) { moduleMock = new WidgetModuleMock( "moduleMock", expectations); protocolMock .expects.getWidgetModule() .returns(moduleMock).any();
3637383940414243444546
// Let the base class create basic mocks super.setUp(); Class attrClass = TabAttributes.class; moduleMock = new WidgetModuleMock( "moduleMock", expectations); protocolMock .expects.getWidgetModule() .returns(moduleMock).any();
8889909192939495969798
.expects.pushOutputBuffer(outputBuffer); // Called during callOpenOnProtocol moduleMock = new WidgetModuleMock( "moduleMock", expectations); protocolMock .expects.getWidgetModule() .returns(moduleMock).fixed(2);
3435363738394041424344
protected void setUp() throws Exception { // Let the base class create basic mocks super.setUp(); moduleMock = new WidgetModuleMock( "moduleMock", expectations); protocolMock .expects.getWidgetModule() .returns(moduleMock).any();