Example #1
0
  @Test
  public void testParseComObjetosInnerEVariosAtributos() {

    InnerObjectMultipleObjectFieldsToObjectFields de =
        new InnerObjectMultipleObjectFieldsToObjectFields(new NoAnnotationSource("BB", "123321"));
    DestinyInnerObject para = copier.from(de).doCopy();
    assertEquals("BB", para.getObject().getFirst());
    assertEquals("123321", para.getObject().getSecond());
  }
Example #2
0
  @Test
  public void testParseComObjetosParaInnerEDeOuter() {

    InnerObjectMultipleFieldsToObjectFields de =
        new InnerObjectMultipleFieldsToObjectFields("BB", "123321");
    DestinyInnerObject para = copier.from(de).doCopy();
    assertEquals("BB", para.getObject().getFirst());
    assertEquals("123321", para.getObject().getSecond());
  }
Example #3
0
  @Test
  public void testParseComObjetosInner() {

    InnerObjectSource de = new InnerObjectSource(new NoAnnotationSource("BB", "123321"));
    DestinyInnerObject para = copier.from(de).doCopy();

    assertEquals("BB", para.getObject().getFirst());
  }