Package org.jitterbit.integration.salesforce.SObject

Examples of org.jitterbit.integration.salesforce.SObject.Field


    }

    @Test
    public void testTargetFields() {
        assertTrue(blo.getTargetFields().isEmpty());
        List<Field> fields = Arrays.asList(new Field("ID", ID), new Field("Name", STRING), new Field("Created", DATE));
        blo.setTargetFields(fields);
        List<Field> restoredFields = blo.getTargetFields();
        assertEquals(fields, restoredFields);
    }
View Full Code Here


            XmlNameFactory nameFactory = XmlNameFactory.nonConforming();
            String[] parts = s.split("\\|");
            for (String p : parts) {
                String name = StringUtils.substringBefore(p, ",");
                String type = StringUtils.substringAfter(p, ",");
                fields.add(new Field(name, nameFactory.newExpandedName(type)));
            }
        }
        return fields;
    }
View Full Code Here

*/
public final class FieldListEncoderJUnitTest {

    @Test
    public void ensureTranslationWorks() {
        List<Field> fields = Arrays.asList(new Field("name", SimpleTypes.STRING), new Field("description", SimpleTypes.STRING));
        String s = FieldListEncoder.encode(fields);
        List<Field> decoded = FieldListEncoder.decode(s);
        // XXX: Field.equals only looks at the name, not the type, so we cannot use List.equals here.
        assertEquals(fields.size(), decoded.size());
        for (int n = 0; n < fields.size(); ++n) {
            Field f1 = fields.get(n);
            Field f2 = decoded.get(n);
            assertNotSame(f1, f2);
            assertEquals(f1.getName(), f2.getName());
            assertEquals(f1.getTypeName(), f2.getTypeName());
        }
    }
View Full Code Here

TOP

Related Classes of org.jitterbit.integration.salesforce.SObject.Field

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.