From b6576fbe9c43026395e6268996d5fed0975512de Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Mon, 22 Jan 2018 20:58:56 +0000 Subject: [PATCH] Test compression defaults against 8.5.24 as they changed in 8.5.27 See gh-11727 --- .../boot/context/embedded/CompressionTests.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/spring-boot/src/test/java/org/springframework/boot/context/embedded/CompressionTests.java b/spring-boot/src/test/java/org/springframework/boot/context/embedded/CompressionTests.java index d608454e51b..f93fea71847 100644 --- a/spring-boot/src/test/java/org/springframework/boot/context/embedded/CompressionTests.java +++ b/spring-boot/src/test/java/org/springframework/boot/context/embedded/CompressionTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2017 the original author or authors. + * Copyright 2012-2018 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. @@ -18,6 +18,10 @@ package org.springframework.boot.context.embedded; import org.apache.coyote.http11.Http11NioProtocol; import org.junit.Test; +import org.junit.runner.RunWith; + +import org.springframework.boot.junit.runner.classpath.ClassPathOverrides; +import org.springframework.boot.junit.runner.classpath.ModifiedClassPathRunner; import static org.assertj.core.api.Assertions.assertThat; @@ -26,6 +30,8 @@ import static org.assertj.core.api.Assertions.assertThat; * * @author Andy Wilkinson */ +@RunWith(ModifiedClassPathRunner.class) +@ClassPathOverrides("org.apache.tomcat.embed:tomcat-embed-core:8.5.24") public class CompressionTests { @Test