Package org.modelmapper.internal

Examples of org.modelmapper.internal.MatchingStrategyTestSupport$TestMember


   * D d/E e/F f -> aa/dd/f
   * G g -> aa/dd/g
   * </pre>
   */
  public void assertMatches() {
    MatchingStrategyTestSupport tester = new MatchingStrategyTestSupport(MatchingStrategies.LOOSE);
    tester.match(A.class, "a").$(C.class, "c").to("aa", "bb", "c").assertMatch();
    tester.match(D.class, "d").$(E.class, "e").to("aa", "dd", "e").assertMatch();
    tester.match(D.class, "d").$(E.class, "e").$(F.class, "f").to("aa", "dd", "f").assertMatch();
    tester.match(G.class, "g").to("aa", "dd", "g").assertMatch();
  }
View Full Code Here


    super.initContext();
    modelMapper.getConfiguration().setMatchingStrategy(MatchingStrategies.LOOSE);
  }

  public void assertMatches() {
    MatchingStrategyTestSupport tester = new MatchingStrategyTestSupport(MatchingStrategies.LOOSE);
    tester.match(Integer.TYPE, "companyId").to("companyId").assertMatch();
    tester.match(OrderSourceInfo.class, "sourceInfo").$(String.class, "company").to("company")
        .assertMatch();
    tester.match(OrderDestinationInfo.class, "destinationInfo").$(Address.class, "customerAddress")
        .to("customerAddress").assertMatch();
    tester.match(Integer.TYPE, "companyId").to("data", "company", "companyId").assertMatch();
  }
View Full Code Here

TOP

Related Classes of org.modelmapper.internal.MatchingStrategyTestSupport$TestMember

Copyright © 2018 www.massapicom. 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.