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.springframework.context.annotation.Bean;
7 import static org.mockito.Mockito.mock;
9 public class BaseTestConfig {
12 ComponentsUtils componentsUtils() {return new ComponentsUtils(mock(AuditingManager.class));}
15 DefaultExceptionMapper defaultExceptionMapper() {return new DefaultExceptionMapper();}
18 ComponentExceptionMapper componentExceptionMapper() {
19 return new ComponentExceptionMapper(componentsUtils());
23 StorageExceptionMapper storageExceptionMapper() {
24 return new StorageExceptionMapper(componentsUtils());