// Code generated by mockery v2.20.0. DO NOT EDIT.

package mocks

import (
	controllerevent "code.fbi.h-da.de/danet/gosdn/controller/event"

	mock "github.com/stretchr/testify/mock"
)

// Service is an autogenerated mock type for the Service type
type Service struct {
	mock.Mock
}

// CloseConnection provides a mock function with given fields:
func (_m *Service) CloseConnection() {
	_m.Called()
}

// PublishEvent provides a mock function with given fields: topic, _a1
func (_m *Service) PublishEvent(topic string, _a1 controllerevent.Event) error {
	ret := _m.Called(topic, _a1)

	var r0 error
	if rf, ok := ret.Get(0).(func(string, controllerevent.Event) error); ok {
		r0 = rf(topic, _a1)
	} else {
		r0 = ret.Error(0)
	}

	return r0
}

// Reconnect provides a mock function with given fields:
func (_m *Service) Reconnect() {
	_m.Called()
}

// RetryPublish provides a mock function with given fields: topic, _a1
func (_m *Service) RetryPublish(topic string, _a1 controllerevent.Event) error {
	ret := _m.Called(topic, _a1)

	var r0 error
	if rf, ok := ret.Get(0).(func(string, controllerevent.Event) error); ok {
		r0 = rf(topic, _a1)
	} else {
		r0 = ret.Error(0)
	}

	return r0
}

type mockConstructorTestingTNewService interface {
	mock.TestingT
	Cleanup(func())
}

// NewService creates a new instance of Service. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewService(t mockConstructorTestingTNewService) *Service {
	mock := &Service{}
	mock.Mock.Test(t)

	t.Cleanup(func() { mock.AssertExpectations(t) })

	return mock
}
