Esempio n. 1
0
  @Test
  public void testParseComObjetosInner() {

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

    assertEquals("BB", para.getObject().getFirst());
  }
Esempio n. 2
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());
  }
Esempio n. 3
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());
  }