Examples of HintedOnly


Examples of org.dozer.vo.HintedOnly

    }
    if (source instanceof HintedOnly) {
      return ((HintedOnly) source).getStr();
    }

    HintedOnly hint;
    if (destination == null) {
      hint = new HintedOnly();
    } else {
      hint = (HintedOnly) destination;
    }
    hint.setStr((String) source);
    return hint;
  }
View Full Code Here

Examples of org.dozer.vo.HintedOnly

  @Test
  public void testHintedOnlyConverter() throws Exception {
    String hintStr = "where's my hint?";

    CustomConverterWrapper source = newInstance(CustomConverterWrapper.class);
    HintedOnly hint = newInstance(HintedOnly.class);
    hint.setStr(hintStr);
    source.addHint(hint);

    CustomConverterWrapperPrime dest = mapper.map(source, CustomConverterWrapperPrime.class);
    String destHintStr = (String) dest.getNeedsHint().iterator().next();
    assertNotNull(destHintStr);
View Full Code Here

Examples of org.dozer.vo.HintedOnly

    }
    if (source instanceof HintedOnly) {
      return ((HintedOnly) source).getStr();
    }

    HintedOnly hint;
    if (destination == null) {
      hint = new HintedOnly();
    } else {
      hint = (HintedOnly) destination;
    }
    hint.setStr((String) source);
    return hint;
  }
View Full Code Here

Examples of org.dozer.vo.HintedOnly

  @Test
  public void testHintedOnlyConverter() throws Exception {
    String hintStr = "where's my hint?";

    CustomConverterWrapper source = newInstance(CustomConverterWrapper.class);
    HintedOnly hint = newInstance(HintedOnly.class);
    hint.setStr(hintStr);
    source.addHint(hint);

    CustomConverterWrapperPrime dest = mapper.map(source, CustomConverterWrapperPrime.class);
    String destHintStr = (String) dest.getNeedsHint().iterator().next();
    assertNotNull(destHintStr);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.