@Test public void testEquals_DiffClass_unequal() throws URISyntaxException { XenonConfiguration config = sampleConfig(); URI uri = new URI("local:///"); assertThat(config.equals(uri)).isFalse(); }
@Test public void testEquals_SameContent_equal() throws URISyntaxException { XenonConfiguration config1 = sampleConfig(); XenonConfiguration config2 = sampleConfig(); assertThat(config1.equals(config2)).isTrue(); }
@Test public void testEquals_SameObj_equal() throws URISyntaxException { XenonConfiguration config = sampleConfig(); assertThat(config.equals(config)).isTrue(); }