Package org.modelmapper.internal

Examples of org.modelmapper.internal.MatchingStrategyTestSupport.match()


   * 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


   * </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();
  }

  public void shouldValidate() {
View Full Code Here

   */
  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();
  }

  public void shouldValidate() {
    modelMapper.getTypeMap(Entity.class, DTO.class);
View Full Code Here

  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();
  }

  public void shouldValidate() {
    modelMapper.getTypeMap(Entity.class, DTO.class);
    modelMapper.validate();
View Full Code Here

    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

  }

  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

  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();
  }

  public void shouldValidate() {
View Full Code Here

    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();
  }

  public void shouldValidate() {
    modelMapper.getTypeMap(Order.class, OrderDTO.class);
    modelMapper.validate();
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.