use of org.robolectric.RobolectricTestRunner.RobolectricFrameworkMethod in project robolectric by robolectric.
the class RobolectricTestRunnerTest method equalityOfRobolectricFrameworkMethod.
@Test
public void equalityOfRobolectricFrameworkMethod() throws Exception {
Method method = TestWithTwoMethods.class.getMethod("first");
RobolectricFrameworkMethod rfm16 = new RobolectricFrameworkMethod(method, mock(AndroidManifest.class), new SdkConfig(16), mock(Config.class));
RobolectricFrameworkMethod rfm17 = new RobolectricFrameworkMethod(method, mock(AndroidManifest.class), new SdkConfig(17), mock(Config.class));
RobolectricFrameworkMethod rfm16b = new RobolectricFrameworkMethod(method, mock(AndroidManifest.class), new SdkConfig(16), mock(Config.class));
assertThat(rfm16).isEqualTo(rfm16);
assertThat(rfm16).isNotEqualTo(rfm17);
assertThat(rfm16).isEqualTo(rfm16b);
assertThat(rfm16.hashCode()).isEqualTo((rfm16b.hashCode()));
}
Aggregations