Package io.atlasmap.json.test
Class AtlasJsonUtil
java.lang.Object
io.atlasmap.json.test.AtlasJsonUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic BaseAddress
generateAddress
(Class<? extends BaseAddress> addressClass) static BaseContact
generateContact
(Class<? extends BaseContact> contactClass) static BaseOrder
generateOrderClass
(Class<? extends BaseOrder> orderClazz, Class<? extends BaseAddress> addressClazz, Class<? extends BaseContact> contactClazz) static BaseOrderList
generateOrderListClass
(Class<? extends BaseOrderList> orderListClazz, Class<? extends BaseOrder> orderClazz, Class<? extends BaseAddress> addressClazz, Class<? extends BaseContact> contactClazz) static void
validateAddress
(BaseAddress addressObject) static void
validateContact
(BaseContact contactObject) static void
validateOrder
(BaseOrder orderObject) static void
validateOrder
(BaseOrder orderObject, int expectedOrderId) static void
validateOrderList
(BaseOrderList orderListObject)
-
Constructor Details
-
AtlasJsonUtil
public AtlasJsonUtil()
-
-
Method Details
-
generateOrderListClass
public static BaseOrderList generateOrderListClass(Class<? extends BaseOrderList> orderListClazz, Class<? extends BaseOrder> orderClazz, Class<? extends BaseAddress> addressClazz, Class<? extends BaseContact> contactClazz) throws Exception - Throws:
Exception
-
generateOrderClass
public static BaseOrder generateOrderClass(Class<? extends BaseOrder> orderClazz, Class<? extends BaseAddress> addressClazz, Class<? extends BaseContact> contactClazz) throws Exception - Throws:
Exception
-
generateAddress
public static BaseAddress generateAddress(Class<? extends BaseAddress> addressClass) throws Exception - Throws:
Exception
-
generateContact
public static BaseContact generateContact(Class<? extends BaseContact> contactClass) throws Exception - Throws:
Exception
-
validateOrderList
-
validateOrder
-
validateOrder
-
validateAddress
-
validateContact
-