私はSpringboot 1.5を使ってサービスをテストしようとしています。私はFilterRegestionBeanのNoクラスが見つかりました。Springboot 1.5いいえClasse defサービスをテストしようとしたときにFilterRegistrationBeanが見つかりました
@RunWith(SpringRunner.class)
@SpringBootTest
class ApiServiceSpecTest {
@Autowired
ApiService apiService;
@Test
public void testGetApis() {
List<Api> apis = this.apiService.getApis("KFS")
given(this.apiService.getApis("KFS")).willReturn("some stuff")
assertThat(!apis.empty)
}
私のbuild.gradleは以下のようになります。私は、ドキュメントをチェックし、私は例を実装しましたが、私はそれを実行するために得ることができないような気がしてきました
compile group: 'org.springframework.cloud', name: 'spring-cloud-starter-sleuth', version:'1.1.1.RELEASE'
compile group: 'org.springframework.boot', name: 'spring-boot-starter-web', version:'1.5.1.RELEASE'
compile group: 'org.springframework.boot', name: 'spring-boot-starter-actuator', version:'1.5.1.RELEASE'
compile group: 'org.springframework.boot', name: 'spring-boot-starter-jdbc', version:'1.5.1.RELEASE'
compile group: 'org.springframework.boot', name: 'spring-boot-starter-mail', version:'1.5.1.RELEASE'
compile(group: 'org.springframework.boot', name: 'spring-boot-starter-test', version:'1.5.1.RELEASE')
。どんな助けでも大歓迎です。
はどうもありがとうございます! – Ryan