CloudBigtableConfiguration implements Serializable { @Override public boolean equals(Object obj) { if (obj == null || obj.getClass() != this.getClass()) { return false; } CloudBigtableConfiguration other = (CloudBigtableConfiguration) obj; if (!Objects.equals(configuration.keySet(), other.configuration.keySet())) { return false; } for (String key : configuration.keySet()) { if (!Objects.equals(configuration.get(key).get(), other.configuration.get(key).get())) { return false; } } return true; } CloudBigtableConfiguration(); protected  CloudBigtableConfiguration(
      ValueProvider<String> projectId,
      ValueProvider<String> instanceId,
      Map<String, ValueProvider<String>> additionalConfiguration); String getProjectId(); String getInstanceId(); String getAppProfileId(); BigtableOptions toBigtableOptions(); Configuration toHBaseConfig(); Builder toBuilder(); @Override boolean equals(Object obj); void copyConfig(Builder builder); void populateDisplayData(DisplayData.Builder builder); void validate(); static final String VALUE_UNAVAILABLE; }
@Test public void testEquals() { CloudBigtableConfiguration underTest1 = createBaseBuilder().build(); CloudBigtableConfiguration underTest2 = createBaseBuilder().build(); CloudBigtableConfiguration underTest3 = createBaseBuilder().withConfiguration("somekey", "somevalue").build(); CloudBigtableConfiguration underTest4 = createBaseBuilder("other_project", INSTANCE).build(); CloudBigtableConfiguration underTest5 = createBaseBuilder().withConfiguration("somekey", "somevalue").build(); Assert.assertEquals(underTest1, underTest2); Assert.assertNotEquals(underTest1, underTest3); Assert.assertNotEquals(underTest1, underTest4); Assert.assertEquals(underTest3, underTest5); }