|
|
@ -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",
|
|
|
|