Class MongoAssignmentDBConfiguration
java.lang.Object
info.ejava_student.starter.assignment5.mongo.assignment.MongoAssignmentDBConfiguration
@Configuration
@Profile("assignment-tests")
public class MongoAssignmentDBConfiguration
extends Object
This configuration class is used by the "assignment" exercises. It instantiates
a pseudo-service, implementing an interface to support the test exercises.
Everything created here will get replaced by the end-to-end configuration
during the end-to-end tests and the running application.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionmapper()mongoAssignmentService(RentalsMapper<HouseRentalDTO, HouseRentalBO> mapper, org.springframework.data.mongodb.core.MongoOperations mongoOps, MongoHouseRentalsRepository repo)
-
Constructor Details
-
MongoAssignmentDBConfiguration
public MongoAssignmentDBConfiguration()
-
-
Method Details
-
mapper
-
mongoAssignmentService
public MongoAssignmentService<HouseRentalDTO,HouseRentalBO> mongoAssignmentService(RentalsMapper<HouseRentalDTO, HouseRentalBO> mapper, org.springframework.data.mongodb.core.MongoOperations mongoOps, @Autowired(required=false) MongoHouseRentalsRepository repo)
-