diff --git a/controller/mocks/Store.go b/controller/mocks/Store.go index cebe76b34d08330f0d126bcb83a6b04407df9287..9577d847c0a4e3a917570ef14085534eeb9b726f 100644 --- a/controller/mocks/Store.go +++ b/controller/mocks/Store.go @@ -3,7 +3,7 @@ package mocks import ( - store "code.fbi.h-da.de/danet/gosdn/controller/interfaces/store" + ports "code.fbi.h-da.de/danet/gosdn/controller/nucleus/domain/ports" uuid "github.com/google/uuid" mock "github.com/stretchr/testify/mock" ) @@ -14,11 +14,11 @@ type Store struct { } // Add provides a mock function with given fields: item -func (_m *Store) Add(item store.Storable) error { +func (_m *Store) Add(item ports.Storable) error { ret := _m.Called(item) var r0 error - if rf, ok := ret.Get(0).(func(store.Storable) error); ok { + if rf, ok := ret.Get(0).(func(ports.Storable) error); ok { r0 = rf(item) } else { r0 = ret.Error(0) @@ -56,19 +56,19 @@ func (_m *Store) Exists(id uuid.UUID) bool { } // Get provides a mock function with given fields: id -func (_m *Store) Get(id uuid.UUID) (store.Storable, error) { +func (_m *Store) Get(id uuid.UUID) (ports.Storable, error) { ret := _m.Called(id) - var r0 store.Storable + var r0 ports.Storable var r1 error - if rf, ok := ret.Get(0).(func(uuid.UUID) (store.Storable, error)); ok { + if rf, ok := ret.Get(0).(func(uuid.UUID) (ports.Storable, error)); ok { return rf(id) } - if rf, ok := ret.Get(0).(func(uuid.UUID) store.Storable); ok { + if rf, ok := ret.Get(0).(func(uuid.UUID) ports.Storable); ok { r0 = rf(id) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(store.Storable) + r0 = ret.Get(0).(ports.Storable) } }