Example #1
0
  @Test
  public void differentName_returnsFalse() {
    Ident ident1 = new Ident("abcde");
    Ident ident2 = new Ident("fghij");

    assertFalse(ident1.equals(ident2));
  }
 private void addDependencies(Set<Ident> masters, Question slave) {
   if (masters != null) {
     for (Ident ident : masters) {
       Dependency dependency = new Dependency(ident.getName(), slave.getIdent().getName());
       dependencies.add(dependency);
     }
   }
 }
Example #3
0
  @Test
  public void everythingEquals_returnsTrue() {
    final String name = "abcdefghijklmnopqrstuvwxyz";

    Ident ident1 = new Ident(name);
    Ident ident2 = new Ident(name);

    assertTrue(ident1.equals(ident2));
  }