1 // Code generated by mockery v2.20.0. DO NOT EDIT.
6 mock "github.com/stretchr/testify/mock"
7 keycloak "oransc.org/nonrtric/capifcore/internal/keycloak"
10 // AccessManagement is an autogenerated mock type for the AccessManagement type
11 type AccessManagement struct {
15 // GetToken provides a mock function with given fields: clientId, clientPassword, scope, realm
16 func (_m *AccessManagement) GetToken(clientId string, clientPassword string, scope string, realm string) (keycloak.Jwttoken, error) {
17 ret := _m.Called(clientId, clientPassword, scope, realm)
19 var r0 keycloak.Jwttoken
21 if rf, ok := ret.Get(0).(func(string, string, string, string) (keycloak.Jwttoken, error)); ok {
22 return rf(clientId, clientPassword, scope, realm)
24 if rf, ok := ret.Get(0).(func(string, string, string, string) keycloak.Jwttoken); ok {
25 r0 = rf(clientId, clientPassword, scope, realm)
27 r0 = ret.Get(0).(keycloak.Jwttoken)
30 if rf, ok := ret.Get(1).(func(string, string, string, string) error); ok {
31 r1 = rf(clientId, clientPassword, scope, realm)
39 type mockConstructorTestingTNewAccessManagement interface {
44 // NewAccessManagement creates a new instance of AccessManagement. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
45 func NewAccessManagement(t mockConstructorTestingTNewAccessManagement) *AccessManagement {
46 mock := &AccessManagement{}
49 t.Cleanup(func() { mock.AssertExpectations(t) })