go.temporal.io/server@v1.23.0/common/persistence/client/bean_mock.go (about)

     1  // The MIT License
     2  //
     3  // Copyright (c) 2020 Temporal Technologies Inc.  All rights reserved.
     4  //
     5  // Copyright (c) 2020 Uber Technologies, Inc.
     6  //
     7  // Permission is hereby granted, free of charge, to any person obtaining a copy
     8  // of this software and associated documentation files (the "Software"), to deal
     9  // in the Software without restriction, including without limitation the rights
    10  // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
    11  // copies of the Software, and to permit persons to whom the Software is
    12  // furnished to do so, subject to the following conditions:
    13  //
    14  // The above copyright notice and this permission notice shall be included in
    15  // all copies or substantial portions of the Software.
    16  //
    17  // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    18  // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    19  // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
    20  // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
    21  // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
    22  // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
    23  // THE SOFTWARE.
    24  
    25  // Code generated by MockGen. DO NOT EDIT.
    26  // Source: bean.go
    27  
    28  // Package client is a generated GoMock package.
    29  package client
    30  
    31  import (
    32  	reflect "reflect"
    33  
    34  	gomock "github.com/golang/mock/gomock"
    35  	persistence "go.temporal.io/server/common/persistence"
    36  )
    37  
    38  // MockBean is a mock of Bean interface.
    39  type MockBean struct {
    40  	ctrl     *gomock.Controller
    41  	recorder *MockBeanMockRecorder
    42  }
    43  
    44  // MockBeanMockRecorder is the mock recorder for MockBean.
    45  type MockBeanMockRecorder struct {
    46  	mock *MockBean
    47  }
    48  
    49  // NewMockBean creates a new mock instance.
    50  func NewMockBean(ctrl *gomock.Controller) *MockBean {
    51  	mock := &MockBean{ctrl: ctrl}
    52  	mock.recorder = &MockBeanMockRecorder{mock}
    53  	return mock
    54  }
    55  
    56  // EXPECT returns an object that allows the caller to indicate expected use.
    57  func (m *MockBean) EXPECT() *MockBeanMockRecorder {
    58  	return m.recorder
    59  }
    60  
    61  // Close mocks base method.
    62  func (m *MockBean) Close() {
    63  	m.ctrl.T.Helper()
    64  	m.ctrl.Call(m, "Close")
    65  }
    66  
    67  // Close indicates an expected call of Close.
    68  func (mr *MockBeanMockRecorder) Close() *gomock.Call {
    69  	mr.mock.ctrl.T.Helper()
    70  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockBean)(nil).Close))
    71  }
    72  
    73  // GetClusterMetadataManager mocks base method.
    74  func (m *MockBean) GetClusterMetadataManager() persistence.ClusterMetadataManager {
    75  	m.ctrl.T.Helper()
    76  	ret := m.ctrl.Call(m, "GetClusterMetadataManager")
    77  	ret0, _ := ret[0].(persistence.ClusterMetadataManager)
    78  	return ret0
    79  }
    80  
    81  // GetClusterMetadataManager indicates an expected call of GetClusterMetadataManager.
    82  func (mr *MockBeanMockRecorder) GetClusterMetadataManager() *gomock.Call {
    83  	mr.mock.ctrl.T.Helper()
    84  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetClusterMetadataManager", reflect.TypeOf((*MockBean)(nil).GetClusterMetadataManager))
    85  }
    86  
    87  // GetExecutionManager mocks base method.
    88  func (m *MockBean) GetExecutionManager() persistence.ExecutionManager {
    89  	m.ctrl.T.Helper()
    90  	ret := m.ctrl.Call(m, "GetExecutionManager")
    91  	ret0, _ := ret[0].(persistence.ExecutionManager)
    92  	return ret0
    93  }
    94  
    95  // GetExecutionManager indicates an expected call of GetExecutionManager.
    96  func (mr *MockBeanMockRecorder) GetExecutionManager() *gomock.Call {
    97  	mr.mock.ctrl.T.Helper()
    98  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetExecutionManager", reflect.TypeOf((*MockBean)(nil).GetExecutionManager))
    99  }
   100  
   101  // GetMetadataManager mocks base method.
   102  func (m *MockBean) GetMetadataManager() persistence.MetadataManager {
   103  	m.ctrl.T.Helper()
   104  	ret := m.ctrl.Call(m, "GetMetadataManager")
   105  	ret0, _ := ret[0].(persistence.MetadataManager)
   106  	return ret0
   107  }
   108  
   109  // GetMetadataManager indicates an expected call of GetMetadataManager.
   110  func (mr *MockBeanMockRecorder) GetMetadataManager() *gomock.Call {
   111  	mr.mock.ctrl.T.Helper()
   112  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetMetadataManager", reflect.TypeOf((*MockBean)(nil).GetMetadataManager))
   113  }
   114  
   115  // GetNamespaceReplicationQueue mocks base method.
   116  func (m *MockBean) GetNamespaceReplicationQueue() persistence.NamespaceReplicationQueue {
   117  	m.ctrl.T.Helper()
   118  	ret := m.ctrl.Call(m, "GetNamespaceReplicationQueue")
   119  	ret0, _ := ret[0].(persistence.NamespaceReplicationQueue)
   120  	return ret0
   121  }
   122  
   123  // GetNamespaceReplicationQueue indicates an expected call of GetNamespaceReplicationQueue.
   124  func (mr *MockBeanMockRecorder) GetNamespaceReplicationQueue() *gomock.Call {
   125  	mr.mock.ctrl.T.Helper()
   126  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetNamespaceReplicationQueue", reflect.TypeOf((*MockBean)(nil).GetNamespaceReplicationQueue))
   127  }
   128  
   129  // GetShardManager mocks base method.
   130  func (m *MockBean) GetShardManager() persistence.ShardManager {
   131  	m.ctrl.T.Helper()
   132  	ret := m.ctrl.Call(m, "GetShardManager")
   133  	ret0, _ := ret[0].(persistence.ShardManager)
   134  	return ret0
   135  }
   136  
   137  // GetShardManager indicates an expected call of GetShardManager.
   138  func (mr *MockBeanMockRecorder) GetShardManager() *gomock.Call {
   139  	mr.mock.ctrl.T.Helper()
   140  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetShardManager", reflect.TypeOf((*MockBean)(nil).GetShardManager))
   141  }
   142  
   143  // GetTaskManager mocks base method.
   144  func (m *MockBean) GetTaskManager() persistence.TaskManager {
   145  	m.ctrl.T.Helper()
   146  	ret := m.ctrl.Call(m, "GetTaskManager")
   147  	ret0, _ := ret[0].(persistence.TaskManager)
   148  	return ret0
   149  }
   150  
   151  // GetTaskManager indicates an expected call of GetTaskManager.
   152  func (mr *MockBeanMockRecorder) GetTaskManager() *gomock.Call {
   153  	mr.mock.ctrl.T.Helper()
   154  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTaskManager", reflect.TypeOf((*MockBean)(nil).GetTaskManager))
   155  }