From b59bc20f58c746c9744b14c585aebed5e97c30e5 Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Tue, 26 Sep 2017 12:57:57 +0100 Subject: [PATCH] Try to make HateoasObjenesisCacheDisablerTests more robust --- .../autoconfigure/HateoasObjenesisCacheDisablerTests.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spring-boot-devtools/src/test/java/org/springframework/boot/devtools/autoconfigure/HateoasObjenesisCacheDisablerTests.java b/spring-boot-devtools/src/test/java/org/springframework/boot/devtools/autoconfigure/HateoasObjenesisCacheDisablerTests.java index 636a701d66..fb55ea4549 100644 --- a/spring-boot-devtools/src/test/java/org/springframework/boot/devtools/autoconfigure/HateoasObjenesisCacheDisablerTests.java +++ b/spring-boot-devtools/src/test/java/org/springframework/boot/devtools/autoconfigure/HateoasObjenesisCacheDisablerTests.java @@ -41,6 +41,8 @@ public class HateoasObjenesisCacheDisablerTests { @Before @After public void resetCacheField() { + ReflectionTestUtils.setField(HateoasObjenesisCacheDisabler.class, "cacheDisabled", + false); this.objenesis = (ObjenesisStd) ReflectionTestUtils .getField(DummyInvocationUtils.class, "OBJENESIS"); ReflectionTestUtils.setField(this.objenesis, "cache",