Fix test naming.

This commit is contained in:
Olga Maciaszek-Sharma
2020-01-20 16:05:31 +01:00
parent 58a956b29a
commit 31d4574a1c
2 changed files with 6 additions and 6 deletions

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.cloud.sleuth.instrument.feign.issues.issueX;
package org.springframework.cloud.sleuth.instrument.feign.issues.issue1125;
import java.io.IOException;
import java.nio.charset.StandardCharsets;
@@ -57,7 +57,7 @@ import static org.assertj.core.api.BDDAssertions.then;
webEnvironment = SpringBootTest.WebEnvironment.NONE,
properties = { "feign.hystrix.enabled=false" })
@DirtiesContext(classMode = ClassMode.AFTER_EACH_TEST_METHOD)
public class IssueXTests {
public class ManuallyCreatedLoadBalancerFeignClientTests {
@Autowired
MyClient myClient;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.cloud.sleuth.instrument.feign.issues.issueY;
package org.springframework.cloud.sleuth.instrument.feign.issues.issue1125delegates;
import java.io.IOException;
import java.nio.charset.StandardCharsets;
@@ -61,9 +61,9 @@ import static org.assertj.core.api.BDDAssertions.then;
@RunWith(SpringRunner.class)
@SpringBootTest(classes = Application.class,
webEnvironment = SpringBootTest.WebEnvironment.NONE,
properties = { "feign.hystrix.enabled=false" })
properties = {"feign.hystrix.enabled=false"})
@DirtiesContext(classMode = ClassMode.AFTER_EACH_TEST_METHOD)
public class IssueYTests {
public class ManuallyCreatedDelegateLoadBalancerFeignClientTests {
@Autowired
MyClient myClient;
@@ -138,7 +138,7 @@ class Application {
public MyNameRemote myNameRemote(Client client, Decoder decoder, Encoder encoder,
Contract contract) {
return Feign.builder().client(client).encoder(encoder).decoder(decoder)
.contract(contract).target(new HardCodedTarget<MyNameRemote>(
.contract(contract).target(new HardCodedTarget<>(
MyNameRemote.class, "foo", "https://non.existing.url"));
}