Upgrade Boot Version in Samples; Fix Tests

- don't run `ApplicationRunner.System.in.read()` from tests.
This commit is contained in:
Gary Russell
2021-02-02 10:39:30 -05:00
committed by Artem Bilan
parent 6fed87bc0b
commit a58063c608
9 changed files with 38 additions and 28 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2018-2019 the original author or authors.
* Copyright 2018-2021 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,14 +16,13 @@
package com.example;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
import org.springframework.test.context.TestPropertySource;
@RunWith(SpringRunner.class)
@SpringBootTest
@TestPropertySource(properties = "spring.profiles.active=test")
public class ApplicationTests {
@Test