1 package io.github.magwas.inez.query;
2
3 import static org.mockito.Mockito.mock;
4 import static org.mockito.Mockito.when;
5
6 import org.springframework.beans.BeansException;
7
8 import io.github.magwas.inez.element.ElementConstants;
9
10 public class GetServiceByNameServiceStub implements ElementConstants {
11 public static GetServiceByNameService stub() throws BeansException, ClassNotFoundException {
12 GetServiceByNameService mock = mock(GetServiceByNameService.class);
13 BridiFunction save = mock(BridiFunction.class);
14 when(mock.apply(SAVE_FUNCTION_REF_ID)).thenReturn(save);
15 return mock;
16 }
17 }