1 diff --git a/src/controller/configuremgr/mocks/mocks_configuremgr.go b/src/controller/configuremgr/mocks/mocks_configuremgr.go
2 index 250aabf..654cf14 100644
3 --- a/src/controller/configuremgr/mocks/mocks_configuremgr.go
4 +++ b/src/controller/configuremgr/mocks/mocks_configuremgr.go
6 -/*******************************************************************************
7 - * Copyright 2019 Samsung Electronics All Rights Reserved.
9 - * Licensed under the Apache License, Version 2.0 (the "License");
10 - * you may not use this file except in compliance with the License.
11 - * You may obtain a copy of the License at
13 - * http://www.apache.org/licenses/LICENSE-2.0
15 - * Unless required by applicable law or agreed to in writing, software
16 - * distributed under the License is distributed on an "AS IS" BASIS,
17 - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 - * See the License for the specific language governing permissions and
19 - * limitations under the License.
21 - *******************************************************************************/
23 // Code generated by MockGen. DO NOT EDIT.
24 -// Source: configuremgr.go
25 +// Source: controller/configuremgr (interfaces: Notifier,Watcher,CapabilityImpl)
27 // Package mocks is a generated GoMock package.
31 + configuremgrtypes "common/types/configuremgrtypes"
32 configuremgr "controller/configuremgr"
35 gomock "github.com/golang/mock/gomock"
39 // MockNotifier is a mock of Notifier interface
40 @@ -52,15 +35,15 @@ func (m *MockNotifier) EXPECT() *MockNotifierMockRecorder {
43 // Notify mocks base method
44 -func (m *MockNotifier) Notify(serviceName string) {
45 +func (m *MockNotifier) Notify(arg0 configuremgrtypes.ServiceInfo) {
47 - m.ctrl.Call(m, "Notify", serviceName)
48 + m.ctrl.Call(m, "Notify", arg0)
51 // Notify indicates an expected call of Notify
52 -func (mr *MockNotifierMockRecorder) Notify(serviceName interface{}) *gomock.Call {
53 +func (mr *MockNotifierMockRecorder) Notify(arg0 interface{}) *gomock.Call {
54 mr.mock.ctrl.T.Helper()
55 - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Notify", reflect.TypeOf((*MockNotifier)(nil).Notify), serviceName)
56 + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Notify", reflect.TypeOf((*MockNotifier)(nil).Notify), arg0)
59 // MockWatcher is a mock of Watcher interface
60 @@ -87,13 +70,65 @@ func (m *MockWatcher) EXPECT() *MockWatcherMockRecorder {
63 // Watch mocks base method
64 -func (m *MockWatcher) Watch(notifier configuremgr.Notifier) {
65 +func (m *MockWatcher) Watch(arg0 configuremgr.Notifier) {
67 - m.ctrl.Call(m, "Watch", notifier)
68 + m.ctrl.Call(m, "Watch", arg0)
71 // Watch indicates an expected call of Watch
72 -func (mr *MockWatcherMockRecorder) Watch(notifier interface{}) *gomock.Call {
73 +func (mr *MockWatcherMockRecorder) Watch(arg0 interface{}) *gomock.Call {
74 + mr.mock.ctrl.T.Helper()
75 + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Watch", reflect.TypeOf((*MockWatcher)(nil).Watch), arg0)
78 +// MockCapabilityImpl is a mock of CapabilityImpl interface
79 +type MockCapabilityImpl struct {
80 + ctrl *gomock.Controller
81 + recorder *MockCapabilityImplMockRecorder
84 +// MockCapabilityImplMockRecorder is the mock recorder for MockCapabilityImpl
85 +type MockCapabilityImplMockRecorder struct {
86 + mock *MockCapabilityImpl
89 +// NewMockCapabilityImpl creates a new mock instance
90 +func NewMockCapabilityImpl(ctrl *gomock.Controller) *MockCapabilityImpl {
91 + mock := &MockCapabilityImpl{ctrl: ctrl}
92 + mock.recorder = &MockCapabilityImplMockRecorder{mock}
96 +// EXPECT returns an object that allows the caller to indicate expected use
97 +func (m *MockCapabilityImpl) EXPECT() *MockCapabilityImplMockRecorder {
101 +// ReadCapability mocks base method
102 +func (m *MockCapabilityImpl) ReadCapability(arg0 string) (string, error) {
104 + ret := m.ctrl.Call(m, "ReadCapability", arg0)
105 + ret0, _ := ret[0].(string)
106 + ret1, _ := ret[1].(error)
110 +// ReadCapability indicates an expected call of ReadCapability
111 +func (mr *MockCapabilityImplMockRecorder) ReadCapability(arg0 interface{}) *gomock.Call {
112 + mr.mock.ctrl.T.Helper()
113 + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReadCapability", reflect.TypeOf((*MockCapabilityImpl)(nil).ReadCapability), arg0)
116 +// WriteCapability mocks base method
117 +func (m *MockCapabilityImpl) WriteCapability(arg0 string) error {
119 + ret := m.ctrl.Call(m, "WriteCapability", arg0)
120 + ret0, _ := ret[0].(error)
124 +// WriteCapability indicates an expected call of WriteCapability
125 +func (mr *MockCapabilityImplMockRecorder) WriteCapability(arg0 interface{}) *gomock.Call {
126 mr.mock.ctrl.T.Helper()
127 - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Watch", reflect.TypeOf((*MockWatcher)(nil).Watch), notifier)
128 + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WriteCapability", reflect.TypeOf((*MockCapabilityImpl)(nil).WriteCapability), arg0)