Search in sources :

Example 1 with CustomRecordTypeFieldList

use of com.netsuite.webservices.test.setup.customization.CustomRecordTypeFieldList in project components by Talend.

the class CustomMetaDataSourceTest method createCustomRecordType.

protected CustomRecordType createCustomRecordType(Map<String, CustomFieldSpec<RecordType, CustomizationFieldType>> customFieldSpecs) throws Exception {
    CustomRecordType customRecordType = new CustomRecordType();
    customRecordType.setScriptId("custrecord1");
    customRecordType.setInternalId("201");
    Map<String, CustomFieldType> customFieldTypeMap = createCustomFieldTypes(customFieldSpecs);
    customRecordType.setCustomFieldList(new CustomRecordTypeFieldList());
    for (CustomFieldType customFieldType : customFieldTypeMap.values()) {
        customRecordType.getCustomFieldList().getCustomField().add((CustomRecordCustomField) customFieldType);
    }
    return customRecordType;
}
Also used : CustomRecordType(com.netsuite.webservices.test.setup.customization.CustomRecordType) CustomRecordTypeFieldList(com.netsuite.webservices.test.setup.customization.CustomRecordTypeFieldList) CustomFieldType(com.netsuite.webservices.test.setup.customization.CustomFieldType)

Aggregations

CustomFieldType (com.netsuite.webservices.test.setup.customization.CustomFieldType)1 CustomRecordType (com.netsuite.webservices.test.setup.customization.CustomRecordType)1 CustomRecordTypeFieldList (com.netsuite.webservices.test.setup.customization.CustomRecordTypeFieldList)1