github.com/enbility/spine-go@v0.7.0/mocks/EntityRemoteInterface.go (about)

     1  // Code generated by mockery v2.45.0. DO NOT EDIT.
     2  
     3  package mocks
     4  
     5  import (
     6  	api "github.com/enbility/spine-go/api"
     7  	mock "github.com/stretchr/testify/mock"
     8  
     9  	model "github.com/enbility/spine-go/model"
    10  )
    11  
    12  // EntityRemoteInterface is an autogenerated mock type for the EntityRemoteInterface type
    13  type EntityRemoteInterface struct {
    14  	mock.Mock
    15  }
    16  
    17  type EntityRemoteInterface_Expecter struct {
    18  	mock *mock.Mock
    19  }
    20  
    21  func (_m *EntityRemoteInterface) EXPECT() *EntityRemoteInterface_Expecter {
    22  	return &EntityRemoteInterface_Expecter{mock: &_m.Mock}
    23  }
    24  
    25  // AddFeature provides a mock function with given fields: f
    26  func (_m *EntityRemoteInterface) AddFeature(f api.FeatureRemoteInterface) {
    27  	_m.Called(f)
    28  }
    29  
    30  // EntityRemoteInterface_AddFeature_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddFeature'
    31  type EntityRemoteInterface_AddFeature_Call struct {
    32  	*mock.Call
    33  }
    34  
    35  // AddFeature is a helper method to define mock.On call
    36  //   - f api.FeatureRemoteInterface
    37  func (_e *EntityRemoteInterface_Expecter) AddFeature(f interface{}) *EntityRemoteInterface_AddFeature_Call {
    38  	return &EntityRemoteInterface_AddFeature_Call{Call: _e.mock.On("AddFeature", f)}
    39  }
    40  
    41  func (_c *EntityRemoteInterface_AddFeature_Call) Run(run func(f api.FeatureRemoteInterface)) *EntityRemoteInterface_AddFeature_Call {
    42  	_c.Call.Run(func(args mock.Arguments) {
    43  		run(args[0].(api.FeatureRemoteInterface))
    44  	})
    45  	return _c
    46  }
    47  
    48  func (_c *EntityRemoteInterface_AddFeature_Call) Return() *EntityRemoteInterface_AddFeature_Call {
    49  	_c.Call.Return()
    50  	return _c
    51  }
    52  
    53  func (_c *EntityRemoteInterface_AddFeature_Call) RunAndReturn(run func(api.FeatureRemoteInterface)) *EntityRemoteInterface_AddFeature_Call {
    54  	_c.Call.Return(run)
    55  	return _c
    56  }
    57  
    58  // Address provides a mock function with given fields:
    59  func (_m *EntityRemoteInterface) Address() *model.EntityAddressType {
    60  	ret := _m.Called()
    61  
    62  	if len(ret) == 0 {
    63  		panic("no return value specified for Address")
    64  	}
    65  
    66  	var r0 *model.EntityAddressType
    67  	if rf, ok := ret.Get(0).(func() *model.EntityAddressType); ok {
    68  		r0 = rf()
    69  	} else {
    70  		if ret.Get(0) != nil {
    71  			r0 = ret.Get(0).(*model.EntityAddressType)
    72  		}
    73  	}
    74  
    75  	return r0
    76  }
    77  
    78  // EntityRemoteInterface_Address_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Address'
    79  type EntityRemoteInterface_Address_Call struct {
    80  	*mock.Call
    81  }
    82  
    83  // Address is a helper method to define mock.On call
    84  func (_e *EntityRemoteInterface_Expecter) Address() *EntityRemoteInterface_Address_Call {
    85  	return &EntityRemoteInterface_Address_Call{Call: _e.mock.On("Address")}
    86  }
    87  
    88  func (_c *EntityRemoteInterface_Address_Call) Run(run func()) *EntityRemoteInterface_Address_Call {
    89  	_c.Call.Run(func(args mock.Arguments) {
    90  		run()
    91  	})
    92  	return _c
    93  }
    94  
    95  func (_c *EntityRemoteInterface_Address_Call) Return(_a0 *model.EntityAddressType) *EntityRemoteInterface_Address_Call {
    96  	_c.Call.Return(_a0)
    97  	return _c
    98  }
    99  
   100  func (_c *EntityRemoteInterface_Address_Call) RunAndReturn(run func() *model.EntityAddressType) *EntityRemoteInterface_Address_Call {
   101  	_c.Call.Return(run)
   102  	return _c
   103  }
   104  
   105  // Description provides a mock function with given fields:
   106  func (_m *EntityRemoteInterface) Description() *model.DescriptionType {
   107  	ret := _m.Called()
   108  
   109  	if len(ret) == 0 {
   110  		panic("no return value specified for Description")
   111  	}
   112  
   113  	var r0 *model.DescriptionType
   114  	if rf, ok := ret.Get(0).(func() *model.DescriptionType); ok {
   115  		r0 = rf()
   116  	} else {
   117  		if ret.Get(0) != nil {
   118  			r0 = ret.Get(0).(*model.DescriptionType)
   119  		}
   120  	}
   121  
   122  	return r0
   123  }
   124  
   125  // EntityRemoteInterface_Description_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Description'
   126  type EntityRemoteInterface_Description_Call struct {
   127  	*mock.Call
   128  }
   129  
   130  // Description is a helper method to define mock.On call
   131  func (_e *EntityRemoteInterface_Expecter) Description() *EntityRemoteInterface_Description_Call {
   132  	return &EntityRemoteInterface_Description_Call{Call: _e.mock.On("Description")}
   133  }
   134  
   135  func (_c *EntityRemoteInterface_Description_Call) Run(run func()) *EntityRemoteInterface_Description_Call {
   136  	_c.Call.Run(func(args mock.Arguments) {
   137  		run()
   138  	})
   139  	return _c
   140  }
   141  
   142  func (_c *EntityRemoteInterface_Description_Call) Return(_a0 *model.DescriptionType) *EntityRemoteInterface_Description_Call {
   143  	_c.Call.Return(_a0)
   144  	return _c
   145  }
   146  
   147  func (_c *EntityRemoteInterface_Description_Call) RunAndReturn(run func() *model.DescriptionType) *EntityRemoteInterface_Description_Call {
   148  	_c.Call.Return(run)
   149  	return _c
   150  }
   151  
   152  // Device provides a mock function with given fields:
   153  func (_m *EntityRemoteInterface) Device() api.DeviceRemoteInterface {
   154  	ret := _m.Called()
   155  
   156  	if len(ret) == 0 {
   157  		panic("no return value specified for Device")
   158  	}
   159  
   160  	var r0 api.DeviceRemoteInterface
   161  	if rf, ok := ret.Get(0).(func() api.DeviceRemoteInterface); ok {
   162  		r0 = rf()
   163  	} else {
   164  		if ret.Get(0) != nil {
   165  			r0 = ret.Get(0).(api.DeviceRemoteInterface)
   166  		}
   167  	}
   168  
   169  	return r0
   170  }
   171  
   172  // EntityRemoteInterface_Device_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Device'
   173  type EntityRemoteInterface_Device_Call struct {
   174  	*mock.Call
   175  }
   176  
   177  // Device is a helper method to define mock.On call
   178  func (_e *EntityRemoteInterface_Expecter) Device() *EntityRemoteInterface_Device_Call {
   179  	return &EntityRemoteInterface_Device_Call{Call: _e.mock.On("Device")}
   180  }
   181  
   182  func (_c *EntityRemoteInterface_Device_Call) Run(run func()) *EntityRemoteInterface_Device_Call {
   183  	_c.Call.Run(func(args mock.Arguments) {
   184  		run()
   185  	})
   186  	return _c
   187  }
   188  
   189  func (_c *EntityRemoteInterface_Device_Call) Return(_a0 api.DeviceRemoteInterface) *EntityRemoteInterface_Device_Call {
   190  	_c.Call.Return(_a0)
   191  	return _c
   192  }
   193  
   194  func (_c *EntityRemoteInterface_Device_Call) RunAndReturn(run func() api.DeviceRemoteInterface) *EntityRemoteInterface_Device_Call {
   195  	_c.Call.Return(run)
   196  	return _c
   197  }
   198  
   199  // EntityType provides a mock function with given fields:
   200  func (_m *EntityRemoteInterface) EntityType() model.EntityTypeType {
   201  	ret := _m.Called()
   202  
   203  	if len(ret) == 0 {
   204  		panic("no return value specified for EntityType")
   205  	}
   206  
   207  	var r0 model.EntityTypeType
   208  	if rf, ok := ret.Get(0).(func() model.EntityTypeType); ok {
   209  		r0 = rf()
   210  	} else {
   211  		r0 = ret.Get(0).(model.EntityTypeType)
   212  	}
   213  
   214  	return r0
   215  }
   216  
   217  // EntityRemoteInterface_EntityType_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EntityType'
   218  type EntityRemoteInterface_EntityType_Call struct {
   219  	*mock.Call
   220  }
   221  
   222  // EntityType is a helper method to define mock.On call
   223  func (_e *EntityRemoteInterface_Expecter) EntityType() *EntityRemoteInterface_EntityType_Call {
   224  	return &EntityRemoteInterface_EntityType_Call{Call: _e.mock.On("EntityType")}
   225  }
   226  
   227  func (_c *EntityRemoteInterface_EntityType_Call) Run(run func()) *EntityRemoteInterface_EntityType_Call {
   228  	_c.Call.Run(func(args mock.Arguments) {
   229  		run()
   230  	})
   231  	return _c
   232  }
   233  
   234  func (_c *EntityRemoteInterface_EntityType_Call) Return(_a0 model.EntityTypeType) *EntityRemoteInterface_EntityType_Call {
   235  	_c.Call.Return(_a0)
   236  	return _c
   237  }
   238  
   239  func (_c *EntityRemoteInterface_EntityType_Call) RunAndReturn(run func() model.EntityTypeType) *EntityRemoteInterface_EntityType_Call {
   240  	_c.Call.Return(run)
   241  	return _c
   242  }
   243  
   244  // FeatureOfAddress provides a mock function with given fields: addressFeature
   245  func (_m *EntityRemoteInterface) FeatureOfAddress(addressFeature *model.AddressFeatureType) api.FeatureRemoteInterface {
   246  	ret := _m.Called(addressFeature)
   247  
   248  	if len(ret) == 0 {
   249  		panic("no return value specified for FeatureOfAddress")
   250  	}
   251  
   252  	var r0 api.FeatureRemoteInterface
   253  	if rf, ok := ret.Get(0).(func(*model.AddressFeatureType) api.FeatureRemoteInterface); ok {
   254  		r0 = rf(addressFeature)
   255  	} else {
   256  		if ret.Get(0) != nil {
   257  			r0 = ret.Get(0).(api.FeatureRemoteInterface)
   258  		}
   259  	}
   260  
   261  	return r0
   262  }
   263  
   264  // EntityRemoteInterface_FeatureOfAddress_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FeatureOfAddress'
   265  type EntityRemoteInterface_FeatureOfAddress_Call struct {
   266  	*mock.Call
   267  }
   268  
   269  // FeatureOfAddress is a helper method to define mock.On call
   270  //   - addressFeature *model.AddressFeatureType
   271  func (_e *EntityRemoteInterface_Expecter) FeatureOfAddress(addressFeature interface{}) *EntityRemoteInterface_FeatureOfAddress_Call {
   272  	return &EntityRemoteInterface_FeatureOfAddress_Call{Call: _e.mock.On("FeatureOfAddress", addressFeature)}
   273  }
   274  
   275  func (_c *EntityRemoteInterface_FeatureOfAddress_Call) Run(run func(addressFeature *model.AddressFeatureType)) *EntityRemoteInterface_FeatureOfAddress_Call {
   276  	_c.Call.Run(func(args mock.Arguments) {
   277  		run(args[0].(*model.AddressFeatureType))
   278  	})
   279  	return _c
   280  }
   281  
   282  func (_c *EntityRemoteInterface_FeatureOfAddress_Call) Return(_a0 api.FeatureRemoteInterface) *EntityRemoteInterface_FeatureOfAddress_Call {
   283  	_c.Call.Return(_a0)
   284  	return _c
   285  }
   286  
   287  func (_c *EntityRemoteInterface_FeatureOfAddress_Call) RunAndReturn(run func(*model.AddressFeatureType) api.FeatureRemoteInterface) *EntityRemoteInterface_FeatureOfAddress_Call {
   288  	_c.Call.Return(run)
   289  	return _c
   290  }
   291  
   292  // FeatureOfTypeAndRole provides a mock function with given fields: featureType, role
   293  func (_m *EntityRemoteInterface) FeatureOfTypeAndRole(featureType model.FeatureTypeType, role model.RoleType) api.FeatureRemoteInterface {
   294  	ret := _m.Called(featureType, role)
   295  
   296  	if len(ret) == 0 {
   297  		panic("no return value specified for FeatureOfTypeAndRole")
   298  	}
   299  
   300  	var r0 api.FeatureRemoteInterface
   301  	if rf, ok := ret.Get(0).(func(model.FeatureTypeType, model.RoleType) api.FeatureRemoteInterface); ok {
   302  		r0 = rf(featureType, role)
   303  	} else {
   304  		if ret.Get(0) != nil {
   305  			r0 = ret.Get(0).(api.FeatureRemoteInterface)
   306  		}
   307  	}
   308  
   309  	return r0
   310  }
   311  
   312  // EntityRemoteInterface_FeatureOfTypeAndRole_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FeatureOfTypeAndRole'
   313  type EntityRemoteInterface_FeatureOfTypeAndRole_Call struct {
   314  	*mock.Call
   315  }
   316  
   317  // FeatureOfTypeAndRole is a helper method to define mock.On call
   318  //   - featureType model.FeatureTypeType
   319  //   - role model.RoleType
   320  func (_e *EntityRemoteInterface_Expecter) FeatureOfTypeAndRole(featureType interface{}, role interface{}) *EntityRemoteInterface_FeatureOfTypeAndRole_Call {
   321  	return &EntityRemoteInterface_FeatureOfTypeAndRole_Call{Call: _e.mock.On("FeatureOfTypeAndRole", featureType, role)}
   322  }
   323  
   324  func (_c *EntityRemoteInterface_FeatureOfTypeAndRole_Call) Run(run func(featureType model.FeatureTypeType, role model.RoleType)) *EntityRemoteInterface_FeatureOfTypeAndRole_Call {
   325  	_c.Call.Run(func(args mock.Arguments) {
   326  		run(args[0].(model.FeatureTypeType), args[1].(model.RoleType))
   327  	})
   328  	return _c
   329  }
   330  
   331  func (_c *EntityRemoteInterface_FeatureOfTypeAndRole_Call) Return(_a0 api.FeatureRemoteInterface) *EntityRemoteInterface_FeatureOfTypeAndRole_Call {
   332  	_c.Call.Return(_a0)
   333  	return _c
   334  }
   335  
   336  func (_c *EntityRemoteInterface_FeatureOfTypeAndRole_Call) RunAndReturn(run func(model.FeatureTypeType, model.RoleType) api.FeatureRemoteInterface) *EntityRemoteInterface_FeatureOfTypeAndRole_Call {
   337  	_c.Call.Return(run)
   338  	return _c
   339  }
   340  
   341  // Features provides a mock function with given fields:
   342  func (_m *EntityRemoteInterface) Features() []api.FeatureRemoteInterface {
   343  	ret := _m.Called()
   344  
   345  	if len(ret) == 0 {
   346  		panic("no return value specified for Features")
   347  	}
   348  
   349  	var r0 []api.FeatureRemoteInterface
   350  	if rf, ok := ret.Get(0).(func() []api.FeatureRemoteInterface); ok {
   351  		r0 = rf()
   352  	} else {
   353  		if ret.Get(0) != nil {
   354  			r0 = ret.Get(0).([]api.FeatureRemoteInterface)
   355  		}
   356  	}
   357  
   358  	return r0
   359  }
   360  
   361  // EntityRemoteInterface_Features_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Features'
   362  type EntityRemoteInterface_Features_Call struct {
   363  	*mock.Call
   364  }
   365  
   366  // Features is a helper method to define mock.On call
   367  func (_e *EntityRemoteInterface_Expecter) Features() *EntityRemoteInterface_Features_Call {
   368  	return &EntityRemoteInterface_Features_Call{Call: _e.mock.On("Features")}
   369  }
   370  
   371  func (_c *EntityRemoteInterface_Features_Call) Run(run func()) *EntityRemoteInterface_Features_Call {
   372  	_c.Call.Run(func(args mock.Arguments) {
   373  		run()
   374  	})
   375  	return _c
   376  }
   377  
   378  func (_c *EntityRemoteInterface_Features_Call) Return(_a0 []api.FeatureRemoteInterface) *EntityRemoteInterface_Features_Call {
   379  	_c.Call.Return(_a0)
   380  	return _c
   381  }
   382  
   383  func (_c *EntityRemoteInterface_Features_Call) RunAndReturn(run func() []api.FeatureRemoteInterface) *EntityRemoteInterface_Features_Call {
   384  	_c.Call.Return(run)
   385  	return _c
   386  }
   387  
   388  // NextFeatureId provides a mock function with given fields:
   389  func (_m *EntityRemoteInterface) NextFeatureId() uint {
   390  	ret := _m.Called()
   391  
   392  	if len(ret) == 0 {
   393  		panic("no return value specified for NextFeatureId")
   394  	}
   395  
   396  	var r0 uint
   397  	if rf, ok := ret.Get(0).(func() uint); ok {
   398  		r0 = rf()
   399  	} else {
   400  		r0 = ret.Get(0).(uint)
   401  	}
   402  
   403  	return r0
   404  }
   405  
   406  // EntityRemoteInterface_NextFeatureId_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NextFeatureId'
   407  type EntityRemoteInterface_NextFeatureId_Call struct {
   408  	*mock.Call
   409  }
   410  
   411  // NextFeatureId is a helper method to define mock.On call
   412  func (_e *EntityRemoteInterface_Expecter) NextFeatureId() *EntityRemoteInterface_NextFeatureId_Call {
   413  	return &EntityRemoteInterface_NextFeatureId_Call{Call: _e.mock.On("NextFeatureId")}
   414  }
   415  
   416  func (_c *EntityRemoteInterface_NextFeatureId_Call) Run(run func()) *EntityRemoteInterface_NextFeatureId_Call {
   417  	_c.Call.Run(func(args mock.Arguments) {
   418  		run()
   419  	})
   420  	return _c
   421  }
   422  
   423  func (_c *EntityRemoteInterface_NextFeatureId_Call) Return(_a0 uint) *EntityRemoteInterface_NextFeatureId_Call {
   424  	_c.Call.Return(_a0)
   425  	return _c
   426  }
   427  
   428  func (_c *EntityRemoteInterface_NextFeatureId_Call) RunAndReturn(run func() uint) *EntityRemoteInterface_NextFeatureId_Call {
   429  	_c.Call.Return(run)
   430  	return _c
   431  }
   432  
   433  // RemoveAllFeatures provides a mock function with given fields:
   434  func (_m *EntityRemoteInterface) RemoveAllFeatures() {
   435  	_m.Called()
   436  }
   437  
   438  // EntityRemoteInterface_RemoveAllFeatures_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveAllFeatures'
   439  type EntityRemoteInterface_RemoveAllFeatures_Call struct {
   440  	*mock.Call
   441  }
   442  
   443  // RemoveAllFeatures is a helper method to define mock.On call
   444  func (_e *EntityRemoteInterface_Expecter) RemoveAllFeatures() *EntityRemoteInterface_RemoveAllFeatures_Call {
   445  	return &EntityRemoteInterface_RemoveAllFeatures_Call{Call: _e.mock.On("RemoveAllFeatures")}
   446  }
   447  
   448  func (_c *EntityRemoteInterface_RemoveAllFeatures_Call) Run(run func()) *EntityRemoteInterface_RemoveAllFeatures_Call {
   449  	_c.Call.Run(func(args mock.Arguments) {
   450  		run()
   451  	})
   452  	return _c
   453  }
   454  
   455  func (_c *EntityRemoteInterface_RemoveAllFeatures_Call) Return() *EntityRemoteInterface_RemoveAllFeatures_Call {
   456  	_c.Call.Return()
   457  	return _c
   458  }
   459  
   460  func (_c *EntityRemoteInterface_RemoveAllFeatures_Call) RunAndReturn(run func()) *EntityRemoteInterface_RemoveAllFeatures_Call {
   461  	_c.Call.Return(run)
   462  	return _c
   463  }
   464  
   465  // SetDescription provides a mock function with given fields: d
   466  func (_m *EntityRemoteInterface) SetDescription(d *model.DescriptionType) {
   467  	_m.Called(d)
   468  }
   469  
   470  // EntityRemoteInterface_SetDescription_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetDescription'
   471  type EntityRemoteInterface_SetDescription_Call struct {
   472  	*mock.Call
   473  }
   474  
   475  // SetDescription is a helper method to define mock.On call
   476  //   - d *model.DescriptionType
   477  func (_e *EntityRemoteInterface_Expecter) SetDescription(d interface{}) *EntityRemoteInterface_SetDescription_Call {
   478  	return &EntityRemoteInterface_SetDescription_Call{Call: _e.mock.On("SetDescription", d)}
   479  }
   480  
   481  func (_c *EntityRemoteInterface_SetDescription_Call) Run(run func(d *model.DescriptionType)) *EntityRemoteInterface_SetDescription_Call {
   482  	_c.Call.Run(func(args mock.Arguments) {
   483  		run(args[0].(*model.DescriptionType))
   484  	})
   485  	return _c
   486  }
   487  
   488  func (_c *EntityRemoteInterface_SetDescription_Call) Return() *EntityRemoteInterface_SetDescription_Call {
   489  	_c.Call.Return()
   490  	return _c
   491  }
   492  
   493  func (_c *EntityRemoteInterface_SetDescription_Call) RunAndReturn(run func(*model.DescriptionType)) *EntityRemoteInterface_SetDescription_Call {
   494  	_c.Call.Return(run)
   495  	return _c
   496  }
   497  
   498  // UpdateDeviceAddress provides a mock function with given fields: address
   499  func (_m *EntityRemoteInterface) UpdateDeviceAddress(address model.AddressDeviceType) {
   500  	_m.Called(address)
   501  }
   502  
   503  // EntityRemoteInterface_UpdateDeviceAddress_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateDeviceAddress'
   504  type EntityRemoteInterface_UpdateDeviceAddress_Call struct {
   505  	*mock.Call
   506  }
   507  
   508  // UpdateDeviceAddress is a helper method to define mock.On call
   509  //   - address model.AddressDeviceType
   510  func (_e *EntityRemoteInterface_Expecter) UpdateDeviceAddress(address interface{}) *EntityRemoteInterface_UpdateDeviceAddress_Call {
   511  	return &EntityRemoteInterface_UpdateDeviceAddress_Call{Call: _e.mock.On("UpdateDeviceAddress", address)}
   512  }
   513  
   514  func (_c *EntityRemoteInterface_UpdateDeviceAddress_Call) Run(run func(address model.AddressDeviceType)) *EntityRemoteInterface_UpdateDeviceAddress_Call {
   515  	_c.Call.Run(func(args mock.Arguments) {
   516  		run(args[0].(model.AddressDeviceType))
   517  	})
   518  	return _c
   519  }
   520  
   521  func (_c *EntityRemoteInterface_UpdateDeviceAddress_Call) Return() *EntityRemoteInterface_UpdateDeviceAddress_Call {
   522  	_c.Call.Return()
   523  	return _c
   524  }
   525  
   526  func (_c *EntityRemoteInterface_UpdateDeviceAddress_Call) RunAndReturn(run func(model.AddressDeviceType)) *EntityRemoteInterface_UpdateDeviceAddress_Call {
   527  	_c.Call.Return(run)
   528  	return _c
   529  }
   530  
   531  // NewEntityRemoteInterface creates a new instance of EntityRemoteInterface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
   532  // The first argument is typically a *testing.T value.
   533  func NewEntityRemoteInterface(t interface {
   534  	mock.TestingT
   535  	Cleanup(func())
   536  }) *EntityRemoteInterface {
   537  	mock := &EntityRemoteInterface{}
   538  	mock.Mock.Test(t)
   539  
   540  	t.Cleanup(func() { mock.AssertExpectations(t) })
   541  
   542  	return mock
   543  }