1 package org.openecomp.sdc.be.servlets;
3 import org.openecomp.sdc.be.auditing.impl.AuditingManager;
4 import org.openecomp.sdc.be.impl.ComponentsUtils;
5 import org.openecomp.sdc.be.servlets.exception.ComponentExceptionMapper;
6 import org.openecomp.sdc.be.servlets.exception.DefaultExceptionMapper;
7 import org.openecomp.sdc.be.servlets.exception.StorageExceptionMapper;
8 import org.springframework.context.annotation.Bean;
10 import static org.mockito.Mockito.mock;
12 public class BaseTestConfig {
15 ComponentsUtils componentsUtils() {return new ComponentsUtils(mock(AuditingManager.class));}
18 DefaultExceptionMapper defaultExceptionMapper() {return new DefaultExceptionMapper();}
21 ComponentExceptionMapper componentExceptionMapper() {
22 return new ComponentExceptionMapper(componentsUtils());
26 StorageExceptionMapper storageExceptionMapper() {
27 return new StorageExceptionMapper(componentsUtils());