blob: b1b4254fe12696a2cf4b119407d21058052184c6 [file] [log] [blame]
/*
*******************************************************************************
* Copyright (c) 2019 Contributors to the Eclipse Foundation
*
* See the NOTICE file(s) distributed with this work for additional
* information regarding copyright ownership.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0.
*
* SPDX-License-Identifier: EPL-2.0
*******************************************************************************
*/
package org.eclipse.openk.contactbasedata.config;
import org.eclipse.openk.contactbasedata.ContactBaseDataApplication;
import org.eclipse.openk.contactbasedata.mapper.*;
import org.eclipse.openk.contactbasedata.service.*;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.context.annotation.Bean;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
@EnableJpaRepositories(basePackages = "org.eclipse.openk.contactbasedata")
@EntityScan(basePackageClasses = ContactBaseDataApplication.class)
public class TestConfiguration {
@Bean
VersionMapper versionMapper() { return new VersionMapperImpl(); }
@Bean
VersionMapperImpl versionMapperImpl() { return new VersionMapperImpl(); }
@Bean
ExternalPersonMapper externalPersonMapper() { return new ExternalPersonMapperImpl(); }
@Bean
ContactMapper contactMapper() { return new ContactMapperImpl(); }
@Bean
SalutationMapper salutationMapper() { return new SalutationMapperImpl(); }
@Bean
public VersionService myVersionService() {
return new VersionService();
}
@Bean
public ContactService myContactService() { return new ContactService(); }
@Bean
public ExternalPersonService myExternalPersonService() { return new ExternalPersonService(); }
@Bean
public SalutationService mySalutationService() { return new SalutationService(); }
@Bean
public BaseContactService myBaseContactService() { return new BaseContactService(); }
}