Creating a configuration class

The creation of a test configuration class aids the proper running of written tests. Within the src/test/kotlin directory of the Place Reviewer project, add a config package to com.example.placereviewer. Add the TestConfig class shown here to the package created:

package com.example.placereviewer.config

import org.springframework.context.annotation.ComponentScan
import org.springframework.context.annotation.Configuration

@Configuration
@ComponentScan(basePackages = ["com.example.placereviewer"])
class TestConfig
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.218.171.212