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