@Test public void testBaseEquals() { assertEquals(OPTIONS, OPTIONS_COPY); assertNotEquals(DEFAULT_OPTIONS, OPTIONS); GrpcTransportOptions options = OPTIONS.toBuilder().setExecutorFactory(new DefaultExecutorFactory()).build(); assertNotEquals(OPTIONS, options); }
@Test public void testBaseHashCode() { assertEquals(OPTIONS.hashCode(), OPTIONS_COPY.hashCode()); assertNotEquals(DEFAULT_OPTIONS.hashCode(), OPTIONS.hashCode()); GrpcTransportOptions options = OPTIONS.toBuilder().setExecutorFactory(new DefaultExecutorFactory()).build(); assertNotEquals(OPTIONS.hashCode(), options.hashCode()); }