Commit b59bc20f authored by Andy Wilkinson's avatar Andy Wilkinson

Try to make HateoasObjenesisCacheDisablerTests more robust

parent 6d8c3330
...@@ -41,6 +41,8 @@ public class HateoasObjenesisCacheDisablerTests { ...@@ -41,6 +41,8 @@ public class HateoasObjenesisCacheDisablerTests {
@Before @Before
@After @After
public void resetCacheField() { public void resetCacheField() {
ReflectionTestUtils.setField(HateoasObjenesisCacheDisabler.class, "cacheDisabled",
false);
this.objenesis = (ObjenesisStd) ReflectionTestUtils this.objenesis = (ObjenesisStd) ReflectionTestUtils
.getField(DummyInvocationUtils.class, "OBJENESIS"); .getField(DummyInvocationUtils.class, "OBJENESIS");
ReflectionTestUtils.setField(this.objenesis, "cache", ReflectionTestUtils.setField(this.objenesis, "cache",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment