Package com.tll.model

Examples of com.tll.model.Merchant


    }
  }

  @SuppressWarnings("null")
  public void testAccountMarshaling() throws Exception {
    final Merchant e = getEntityGraph().getEntitiesByType(Merchant.class).iterator().next();
    Assert.assertTrue(e != null && e.getParent() != null && e.getPaymentInfo() != null && e.getPaymentInfo().getPaymentData() != null);

    final MarshalOptions mo = getMarshalOptionsResolver().resolve(SmbizEntityType.MERCHANT);
    final Model m = getMarshaler().marshalEntity(e, mo);

    final Merchant e2 = getMarshaler().marshalModel(m, Merchant.class);

    Assert.assertNotNull(e2.getParent());
    Assert.assertEquals(e, e2);
    Assert.assertEquals(e.getVersion(), e2.getVersion());
    Assert.assertEquals(e.getVersion(), e.getVersion());
  }
View Full Code Here

TOP

Related Classes of com.tll.model.Merchant

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.