public void putCachedValue(Object cachedValueInputs, Object cachedValue) { mComponentTree.putCachedValue(cachedValueInputs, cachedValue); }
@Test public void testCachedValues() { ComponentTree componentTree = ComponentTree.create(mContext, mComponent).build(); assertThat(componentTree.getCachedValue("key1")).isNull(); componentTree.putCachedValue("key1", "value1"); assertThat(componentTree.getCachedValue("key1")).isEqualTo("value1"); assertThat(componentTree.getCachedValue("key2")).isNull(); }