Searched refs:fragmentModel (Results 1 – 4 of 4) sorted by relevance
138 assertThat(fragment1.fragmentModel, not(is(fragment2.fragmentModel))); in testSameFragmentViewModels()139 fragment1Model[0] = fragment1.fragmentModel; in testSameFragmentViewModels()140 fragment2Model[0] = fragment2.fragmentModel; in testSameFragmentViewModels()154 assertThat(fragment1.fragmentModel, is(fragment1Model[0])); in testSameFragmentViewModels()155 assertThat(fragment2.fragmentModel, is(fragment2Model[0])); in testSameFragmentViewModels()206 assertThat(fragment.fragmentModel.mCleared, is(true)); in testFragmentOnClearedWhenFinished()
74 assertThat(fragment1.fragmentModel, not(is(fragment2.activityModel))); in ensureSameViewHolders()79 fragment1Model[0] = fragment1.fragmentModel; in ensureSameViewHolders()80 fragment2Model[0] = fragment2.fragmentModel; in ensureSameViewHolders()96 assertThat(fragment1.fragmentModel, is(fragment1Model[0])); in ensureSameViewHolders()97 assertThat(fragment2.fragmentModel, is(fragment2Model[0])); in ensureSameViewHolders()
51 public TestViewModel fragmentModel; field in ViewModelActivity.ViewModelFragment58 fragmentModel = ViewModelProviders.of(this).get(KEY_FRAGMENT_MODEL, in onCreate()
54 public TestViewModel fragmentModel; field in ViewModelActivity.ViewModelFragment63 fragmentModel = viewModelProvider.get(KEY_FRAGMENT_MODEL, in onCreate()