Updated Branches: refs/heads/master d92b38d1f -> 9d5892e6d
http://git-wip-us.apache.org/repos/asf/camel/blob/9d5892e6/components/camel-salesforce/camel-salesforce-component/src/test/java/org/apache/camel/component/salesforce/BulkApiJobIntegrationTest.java ---------------------------------------------------------------------- diff --git a/components/camel-salesforce/camel-salesforce-component/src/test/java/org/apache/camel/component/salesforce/BulkApiJobIntegrationTest.java b/components/camel-salesforce/camel-salesforce-component/src/test/java/org/apache/camel/component/salesforce/BulkApiJobIntegrationTest.java index c3e52c3..cd7f39e 100644 --- a/components/camel-salesforce/camel-salesforce-component/src/test/java/org/apache/camel/component/salesforce/BulkApiJobIntegrationTest.java +++ b/components/camel-salesforce/camel-salesforce-component/src/test/java/org/apache/camel/component/salesforce/BulkApiJobIntegrationTest.java @@ -23,7 +23,7 @@ import org.apache.camel.component.salesforce.api.dto.bulk.ContentType; import org.apache.camel.component.salesforce.api.dto.bulk.JobInfo; import org.apache.camel.component.salesforce.api.dto.bulk.JobStateEnum; import org.apache.camel.component.salesforce.api.dto.bulk.OperationEnum; -import org.apache.camel.component.salesforce.dto.Merchandise__c; +import org.apache.camel.component.salesforce.dto.generated.Merchandise__c; import org.junit.experimental.theories.DataPoints; import org.junit.experimental.theories.Theory; http://git-wip-us.apache.org/repos/asf/camel/blob/9d5892e6/components/camel-salesforce/camel-salesforce-component/src/test/java/org/apache/camel/component/salesforce/BulkApiQueryIntegrationTest.java ---------------------------------------------------------------------- diff --git a/components/camel-salesforce/camel-salesforce-component/src/test/java/org/apache/camel/component/salesforce/BulkApiQueryIntegrationTest.java b/components/camel-salesforce/camel-salesforce-component/src/test/java/org/apache/camel/component/salesforce/BulkApiQueryIntegrationTest.java index bcfd062..99e3b30 100644 --- a/components/camel-salesforce/camel-salesforce-component/src/test/java/org/apache/camel/component/salesforce/BulkApiQueryIntegrationTest.java +++ b/components/camel-salesforce/camel-salesforce-component/src/test/java/org/apache/camel/component/salesforce/BulkApiQueryIntegrationTest.java @@ -24,7 +24,7 @@ import org.apache.camel.component.salesforce.api.dto.bulk.BatchStateEnum; import org.apache.camel.component.salesforce.api.dto.bulk.ContentType; import org.apache.camel.component.salesforce.api.dto.bulk.JobInfo; import org.apache.camel.component.salesforce.api.dto.bulk.OperationEnum; -import org.apache.camel.component.salesforce.dto.Merchandise__c; +import org.apache.camel.component.salesforce.dto.generated.Merchandise__c; import org.junit.experimental.theories.DataPoints; import org.junit.experimental.theories.Theory; http://git-wip-us.apache.org/repos/asf/camel/blob/9d5892e6/components/camel-salesforce/camel-salesforce-component/src/test/java/org/apache/camel/component/salesforce/LoginConfigHelper.java ---------------------------------------------------------------------- diff --git a/components/camel-salesforce/camel-salesforce-component/src/test/java/org/apache/camel/component/salesforce/LoginConfigHelper.java b/components/camel-salesforce/camel-salesforce-component/src/test/java/org/apache/camel/component/salesforce/LoginConfigHelper.java index f3153c0..f136a33 100644 --- a/components/camel-salesforce/camel-salesforce-component/src/test/java/org/apache/camel/component/salesforce/LoginConfigHelper.java +++ b/components/camel-salesforce/camel-salesforce-component/src/test/java/org/apache/camel/component/salesforce/LoginConfigHelper.java @@ -16,14 +16,14 @@ */ package org.apache.camel.component.salesforce; -import org.junit.Assert; - import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.IOException; import java.io.InputStream; import java.util.Properties; +import org.junit.Assert; + public class LoginConfigHelper extends Assert { private static final String TEST_LOGIN_PROPERTIES = "../test-salesforce-login.properties"; @@ -61,7 +61,8 @@ public class LoginConfigHelper extends Assert { if (stream != null) { try { stream.close(); - } catch (IOException ignore) {} + } catch (IOException ignore) { + } } } } http://git-wip-us.apache.org/repos/asf/camel/blob/9d5892e6/components/camel-salesforce/camel-salesforce-component/src/test/java/org/apache/camel/component/salesforce/RestApiIntegrationTest.java ---------------------------------------------------------------------- diff --git a/components/camel-salesforce/camel-salesforce-component/src/test/java/org/apache/camel/component/salesforce/RestApiIntegrationTest.java b/components/camel-salesforce/camel-salesforce-component/src/test/java/org/apache/camel/component/salesforce/RestApiIntegrationTest.java index 6589cdf..e9264ca 100644 --- a/components/camel-salesforce/camel-salesforce-component/src/test/java/org/apache/camel/component/salesforce/RestApiIntegrationTest.java +++ b/components/camel-salesforce/camel-salesforce-component/src/test/java/org/apache/camel/component/salesforce/RestApiIntegrationTest.java @@ -16,16 +16,6 @@ */ package org.apache.camel.component.salesforce; -import org.apache.camel.builder.RouteBuilder; -import org.apache.camel.component.salesforce.api.dto.*; -import org.apache.camel.component.salesforce.dto.Document; -import org.apache.camel.component.salesforce.dto.Line_Item__c; -import org.apache.camel.component.salesforce.dto.Merchandise__c; -import org.apache.camel.component.salesforce.dto.QueryRecordsLine_Item__c; -import org.junit.Test; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - import java.io.FileOutputStream; import java.io.InputStream; import java.nio.channels.Channels; @@ -34,6 +24,24 @@ import java.nio.channels.ReadableByteChannel; import java.util.HashMap; import java.util.List; +import org.apache.camel.builder.RouteBuilder; +import org.apache.camel.component.salesforce.api.dto.CreateSObjectResult; +import org.apache.camel.component.salesforce.api.dto.GlobalObjects; +import org.apache.camel.component.salesforce.api.dto.RestResources; +import org.apache.camel.component.salesforce.api.dto.SObjectBasicInfo; +import org.apache.camel.component.salesforce.api.dto.SObjectDescription; +import org.apache.camel.component.salesforce.api.dto.SearchResult; +import org.apache.camel.component.salesforce.api.dto.SearchResults; +import org.apache.camel.component.salesforce.api.dto.Version; +import org.apache.camel.component.salesforce.api.dto.Versions; +import org.apache.camel.component.salesforce.dto.generated.Document; +import org.apache.camel.component.salesforce.dto.generated.Line_Item__c; +import org.apache.camel.component.salesforce.dto.generated.Merchandise__c; +import org.apache.camel.component.salesforce.dto.generated.QueryRecordsLine_Item__c; +import org.junit.Test; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + public class RestApiIntegrationTest extends AbstractSalesforceTestBase { private static final Logger LOG = LoggerFactory.getLogger(RestApiIntegrationTest.class); http://git-wip-us.apache.org/repos/asf/camel/blob/9d5892e6/components/camel-salesforce/camel-salesforce-component/src/test/java/org/apache/camel/component/salesforce/SalesforceComponentConfigurationTest.java ---------------------------------------------------------------------- diff --git a/components/camel-salesforce/camel-salesforce-component/src/test/java/org/apache/camel/component/salesforce/SalesforceComponentConfigurationTest.java b/components/camel-salesforce/camel-salesforce-component/src/test/java/org/apache/camel/component/salesforce/SalesforceComponentConfigurationTest.java index c556061..4841943 100644 --- a/components/camel-salesforce/camel-salesforce-component/src/test/java/org/apache/camel/component/salesforce/SalesforceComponentConfigurationTest.java +++ b/components/camel-salesforce/camel-salesforce-component/src/test/java/org/apache/camel/component/salesforce/SalesforceComponentConfigurationTest.java @@ -16,14 +16,16 @@ */ package org.apache.camel.component.salesforce; +import java.util.*; + import org.apache.camel.CamelContext; import org.apache.camel.Component; import org.apache.camel.ComponentConfiguration; import org.apache.camel.builder.RouteBuilder; -import org.apache.camel.component.salesforce.dto.Document; -import org.apache.camel.component.salesforce.dto.Line_Item__c; -import org.apache.camel.component.salesforce.dto.Merchandise__c; -import org.apache.camel.component.salesforce.dto.QueryRecordsLine_Item__c; +import org.apache.camel.component.salesforce.dto.generated.Document; +import org.apache.camel.component.salesforce.dto.generated.Line_Item__c; +import org.apache.camel.component.salesforce.dto.generated.Merchandise__c; +import org.apache.camel.component.salesforce.dto.generated.QueryRecordsLine_Item__c; import org.apache.camel.component.salesforce.internal.PayloadFormat; import org.apache.camel.impl.ParameterConfiguration; import org.apache.camel.test.junit4.CamelTestSupport; @@ -32,9 +34,6 @@ import org.junit.Test; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import java.util.*; - - /** * Lets test the use of the ComponentConfiguration on the Salesforce endpoint */ http://git-wip-us.apache.org/repos/asf/camel/blob/9d5892e6/components/camel-salesforce/camel-salesforce-component/src/test/java/org/apache/camel/component/salesforce/StreamingApiIntegrationTest.java ---------------------------------------------------------------------- diff --git a/components/camel-salesforce/camel-salesforce-component/src/test/java/org/apache/camel/component/salesforce/StreamingApiIntegrationTest.java b/components/camel-salesforce/camel-salesforce-component/src/test/java/org/apache/camel/component/salesforce/StreamingApiIntegrationTest.java index 514f17e..8dcaf34 100644 --- a/components/camel-salesforce/camel-salesforce-component/src/test/java/org/apache/camel/component/salesforce/StreamingApiIntegrationTest.java +++ b/components/camel-salesforce/camel-salesforce-component/src/test/java/org/apache/camel/component/salesforce/StreamingApiIntegrationTest.java @@ -20,7 +20,7 @@ import org.apache.camel.Message; import org.apache.camel.builder.RouteBuilder; import org.apache.camel.component.mock.MockEndpoint; import org.apache.camel.component.salesforce.api.dto.CreateSObjectResult; -import org.apache.camel.component.salesforce.dto.Merchandise__c; +import org.apache.camel.component.salesforce.dto.generated.Merchandise__c; import org.apache.camel.component.salesforce.internal.dto.QueryRecordsPushTopic; import org.joda.time.DateTime; import org.junit.Test; http://git-wip-us.apache.org/repos/asf/camel/blob/9d5892e6/components/camel-salesforce/camel-salesforce-component/src/test/java/org/apache/camel/component/salesforce/dto/Document.java ---------------------------------------------------------------------- diff --git a/components/camel-salesforce/camel-salesforce-component/src/test/java/org/apache/camel/component/salesforce/dto/Document.java b/components/camel-salesforce/camel-salesforce-component/src/test/java/org/apache/camel/component/salesforce/dto/Document.java deleted file mode 100644 index a448bb3..0000000 --- a/components/camel-salesforce/camel-salesforce-component/src/test/java/org/apache/camel/component/salesforce/dto/Document.java +++ /dev/null @@ -1,201 +0,0 @@ -/* - * Salesforce DTO generated by camel-salesforce-maven-plugin - * Generated on: Tue May 14 21:15:54 PDT 2013 - */ -package org.apache.camel.component.salesforce.dto; - -import com.thoughtworks.xstream.annotations.XStreamAlias; -import org.apache.camel.component.salesforce.api.dto.AbstractSObjectBase; -import org.codehaus.jackson.annotate.JsonProperty; - -/** - * Salesforce DTO for SObject Document - */ -@XStreamAlias("Document") -public class Document extends AbstractSObjectBase { - - // FolderId - private String FolderId; - - @JsonProperty("FolderId") - public String getFolderId() { - return this.FolderId; - } - - @JsonProperty("FolderId") - public void setFolderId(String FolderId) { - this.FolderId = FolderId; - } - - // DeveloperName - private String DeveloperName; - - @JsonProperty("DeveloperName") - public String getDeveloperName() { - return this.DeveloperName; - } - - @JsonProperty("DeveloperName") - public void setDeveloperName(String DeveloperName) { - this.DeveloperName = DeveloperName; - } - - // NamespacePrefix - private String NamespacePrefix; - - @JsonProperty("NamespacePrefix") - public String getNamespacePrefix() { - return this.NamespacePrefix; - } - - @JsonProperty("NamespacePrefix") - public void setNamespacePrefix(String NamespacePrefix) { - this.NamespacePrefix = NamespacePrefix; - } - - // ContentType - private String ContentType; - - @JsonProperty("ContentType") - public String getContentType() { - return this.ContentType; - } - - @JsonProperty("ContentType") - public void setContentType(String ContentType) { - this.ContentType = ContentType; - } - - // Type - private String Type; - - @JsonProperty("Type") - public String getType() { - return this.Type; - } - - @JsonProperty("Type") - public void setType(String Type) { - this.Type = Type; - } - - // IsPublic - private Boolean IsPublic; - - @JsonProperty("IsPublic") - public Boolean getIsPublic() { - return this.IsPublic; - } - - @JsonProperty("IsPublic") - public void setIsPublic(Boolean IsPublic) { - this.IsPublic = IsPublic; - } - - // BodyLength - private Integer BodyLength; - - @JsonProperty("BodyLength") - public Integer getBodyLength() { - return this.BodyLength; - } - - @JsonProperty("BodyLength") - public void setBodyLength(Integer BodyLength) { - this.BodyLength = BodyLength; - } - - // Body - // blob field url, use getBlobField to get the content - @XStreamAlias("Body") - private String BodyUrl; - - @JsonProperty("Body") - public String getBodyUrl() { - return this.BodyUrl; - } - - @JsonProperty("Body") - public void setBodyUrl(String BodyUrl) { - this.BodyUrl = BodyUrl; - } - - // Url - private String Url; - - @JsonProperty("Url") - public String getUrl() { - return this.Url; - } - - @JsonProperty("Url") - public void setUrl(String Url) { - this.Url = Url; - } - - // Description - private String Description; - - @JsonProperty("Description") - public String getDescription() { - return this.Description; - } - - @JsonProperty("Description") - public void setDescription(String Description) { - this.Description = Description; - } - - // Keywords - private String Keywords; - - @JsonProperty("Keywords") - public String getKeywords() { - return this.Keywords; - } - - @JsonProperty("Keywords") - public void setKeywords(String Keywords) { - this.Keywords = Keywords; - } - - // IsInternalUseOnly - private Boolean IsInternalUseOnly; - - @JsonProperty("IsInternalUseOnly") - public Boolean getIsInternalUseOnly() { - return this.IsInternalUseOnly; - } - - @JsonProperty("IsInternalUseOnly") - public void setIsInternalUseOnly(Boolean IsInternalUseOnly) { - this.IsInternalUseOnly = IsInternalUseOnly; - } - - // AuthorId - private String AuthorId; - - @JsonProperty("AuthorId") - public String getAuthorId() { - return this.AuthorId; - } - - @JsonProperty("AuthorId") - public void setAuthorId(String AuthorId) { - this.AuthorId = AuthorId; - } - - // IsBodySearchable - private Boolean IsBodySearchable; - - @JsonProperty("IsBodySearchable") - public Boolean getIsBodySearchable() { - return this.IsBodySearchable; - } - - @JsonProperty("IsBodySearchable") - public void setIsBodySearchable(Boolean IsBodySearchable) { - this.IsBodySearchable = IsBodySearchable; - } - -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/9d5892e6/components/camel-salesforce/camel-salesforce-component/src/test/java/org/apache/camel/component/salesforce/dto/Line_Item__c.java ---------------------------------------------------------------------- diff --git a/components/camel-salesforce/camel-salesforce-component/src/test/java/org/apache/camel/component/salesforce/dto/Line_Item__c.java b/components/camel-salesforce/camel-salesforce-component/src/test/java/org/apache/camel/component/salesforce/dto/Line_Item__c.java deleted file mode 100644 index 31bc4ce..0000000 --- a/components/camel-salesforce/camel-salesforce-component/src/test/java/org/apache/camel/component/salesforce/dto/Line_Item__c.java +++ /dev/null @@ -1,74 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.apache.camel.component.salesforce.dto; - -import com.thoughtworks.xstream.annotations.XStreamAlias; -import org.apache.camel.component.salesforce.api.dto.AbstractSObjectBase; -import org.codehaus.jackson.annotate.JsonProperty; - -@XStreamAlias("Line_Item__c") -public class Line_Item__c extends AbstractSObjectBase { - - private Double Unit_Price__c; - - private Double Units_Sold__c; - - private String Merchandise__c; - - private String Invoice_Statement__c; - - @JsonProperty("Unit_Price__c") - public Double getUnit_Price__c() { - return Unit_Price__c; - } - - @JsonProperty("Unit_Price__c") - public void setUnit_Price__c(Double unit_Price__c) { - Unit_Price__c = unit_Price__c; - } - - @JsonProperty("Units_Sold__c") - public Double getUnits_Sold__c() { - return Units_Sold__c; - } - - @JsonProperty("Units_Sold__c") - public void setUnits_Sold__c(Double units_Sold__c) { - Units_Sold__c = units_Sold__c; - } - - @JsonProperty("Merchandise__c") - public String getMerchandise__c() { - return Merchandise__c; - } - - @JsonProperty("Merchandise__c") - public void setMerchandise__c(String merchandise__c) { - Merchandise__c = merchandise__c; - } - - @JsonProperty("Invoice_Statement__c") - public String getInvoice_Statement__c() { - return Invoice_Statement__c; - } - - @JsonProperty("Invoice_Statement__c") - public void setInvoice_Statement__c(String invoice_Statement__c) { - Invoice_Statement__c = invoice_Statement__c; - } - -} http://git-wip-us.apache.org/repos/asf/camel/blob/9d5892e6/components/camel-salesforce/camel-salesforce-component/src/test/java/org/apache/camel/component/salesforce/dto/Merchandise__c.java ---------------------------------------------------------------------- diff --git a/components/camel-salesforce/camel-salesforce-component/src/test/java/org/apache/camel/component/salesforce/dto/Merchandise__c.java b/components/camel-salesforce/camel-salesforce-component/src/test/java/org/apache/camel/component/salesforce/dto/Merchandise__c.java deleted file mode 100644 index f7a76db..0000000 --- a/components/camel-salesforce/camel-salesforce-component/src/test/java/org/apache/camel/component/salesforce/dto/Merchandise__c.java +++ /dev/null @@ -1,61 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.apache.camel.component.salesforce.dto; - -import com.thoughtworks.xstream.annotations.XStreamAlias; -import org.apache.camel.component.salesforce.api.dto.AbstractSObjectBase; -import org.codehaus.jackson.annotate.JsonProperty; - -@XStreamAlias("Merchandise__c") -public class Merchandise__c extends AbstractSObjectBase { - - private String Description__c; - - private Double Price__c; - - private Double Total_Inventory__c; - - @JsonProperty("Description__c") - public String getDescription__c() { - return Description__c; - } - - @JsonProperty("Description__c") - public void setDescription__c(String description__c) { - Description__c = description__c; - } - - @JsonProperty("Price__c") - public Double getPrice__c() { - return Price__c; - } - - @JsonProperty("Price__c") - public void setPrice__c(Double price__c) { - Price__c = price__c; - } - - @JsonProperty("Total_Inventory__c") - public Double getTotal_Inventory__c() { - return Total_Inventory__c; - } - - @JsonProperty("Total_Inventory__c") - public void setTotal_Inventory__c(Double total_Inventory__c) { - Total_Inventory__c = total_Inventory__c; - } -} http://git-wip-us.apache.org/repos/asf/camel/blob/9d5892e6/components/camel-salesforce/camel-salesforce-component/src/test/java/org/apache/camel/component/salesforce/dto/QueryRecordsLine_Item__c.java ---------------------------------------------------------------------- diff --git a/components/camel-salesforce/camel-salesforce-component/src/test/java/org/apache/camel/component/salesforce/dto/QueryRecordsLine_Item__c.java b/components/camel-salesforce/camel-salesforce-component/src/test/java/org/apache/camel/component/salesforce/dto/QueryRecordsLine_Item__c.java deleted file mode 100644 index 34dcad4..0000000 --- a/components/camel-salesforce/camel-salesforce-component/src/test/java/org/apache/camel/component/salesforce/dto/QueryRecordsLine_Item__c.java +++ /dev/null @@ -1,35 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.apache.camel.component.salesforce.dto; - -import java.util.List; - -import com.thoughtworks.xstream.annotations.XStreamImplicit; -import org.apache.camel.component.salesforce.api.dto.AbstractQueryRecordsBase; - -public class QueryRecordsLine_Item__c extends AbstractQueryRecordsBase { - @XStreamImplicit - private List<Line_Item__c> records; - - public List<Line_Item__c> getRecords() { - return records; - } - - public void setRecords(List<Line_Item__c> records) { - this.records = records; - } -} http://git-wip-us.apache.org/repos/asf/camel/blob/9d5892e6/components/camel-salesforce/camel-salesforce-component/src/test/java/org/apache/camel/component/salesforce/dto/generated/Document.java ---------------------------------------------------------------------- diff --git a/components/camel-salesforce/camel-salesforce-component/src/test/java/org/apache/camel/component/salesforce/dto/generated/Document.java b/components/camel-salesforce/camel-salesforce-component/src/test/java/org/apache/camel/component/salesforce/dto/generated/Document.java new file mode 100644 index 0000000..017172d --- /dev/null +++ b/components/camel-salesforce/camel-salesforce-component/src/test/java/org/apache/camel/component/salesforce/dto/generated/Document.java @@ -0,0 +1,201 @@ +/* + * Salesforce DTO generated by camel-salesforce-maven-plugin + * Generated on: Tue May 14 21:15:54 PDT 2013 + */ +package org.apache.camel.component.salesforce.dto.generated; + +import com.thoughtworks.xstream.annotations.XStreamAlias; +import org.apache.camel.component.salesforce.api.dto.AbstractSObjectBase; +import org.codehaus.jackson.annotate.JsonProperty; + +/** + * Salesforce DTO for SObject Document + */ +@XStreamAlias("Document") +public class Document extends AbstractSObjectBase { + + // FolderId + private String FolderId; + + @JsonProperty("FolderId") + public String getFolderId() { + return this.FolderId; + } + + @JsonProperty("FolderId") + public void setFolderId(String FolderId) { + this.FolderId = FolderId; + } + + // DeveloperName + private String DeveloperName; + + @JsonProperty("DeveloperName") + public String getDeveloperName() { + return this.DeveloperName; + } + + @JsonProperty("DeveloperName") + public void setDeveloperName(String DeveloperName) { + this.DeveloperName = DeveloperName; + } + + // NamespacePrefix + private String NamespacePrefix; + + @JsonProperty("NamespacePrefix") + public String getNamespacePrefix() { + return this.NamespacePrefix; + } + + @JsonProperty("NamespacePrefix") + public void setNamespacePrefix(String NamespacePrefix) { + this.NamespacePrefix = NamespacePrefix; + } + + // ContentType + private String ContentType; + + @JsonProperty("ContentType") + public String getContentType() { + return this.ContentType; + } + + @JsonProperty("ContentType") + public void setContentType(String ContentType) { + this.ContentType = ContentType; + } + + // Type + private String Type; + + @JsonProperty("Type") + public String getType() { + return this.Type; + } + + @JsonProperty("Type") + public void setType(String Type) { + this.Type = Type; + } + + // IsPublic + private Boolean IsPublic; + + @JsonProperty("IsPublic") + public Boolean getIsPublic() { + return this.IsPublic; + } + + @JsonProperty("IsPublic") + public void setIsPublic(Boolean IsPublic) { + this.IsPublic = IsPublic; + } + + // BodyLength + private Integer BodyLength; + + @JsonProperty("BodyLength") + public Integer getBodyLength() { + return this.BodyLength; + } + + @JsonProperty("BodyLength") + public void setBodyLength(Integer BodyLength) { + this.BodyLength = BodyLength; + } + + // Body + // blob field url, use getBlobField to get the content + @XStreamAlias("Body") + private String BodyUrl; + + @JsonProperty("Body") + public String getBodyUrl() { + return this.BodyUrl; + } + + @JsonProperty("Body") + public void setBodyUrl(String BodyUrl) { + this.BodyUrl = BodyUrl; + } + + // Url + private String Url; + + @JsonProperty("Url") + public String getUrl() { + return this.Url; + } + + @JsonProperty("Url") + public void setUrl(String Url) { + this.Url = Url; + } + + // Description + private String Description; + + @JsonProperty("Description") + public String getDescription() { + return this.Description; + } + + @JsonProperty("Description") + public void setDescription(String Description) { + this.Description = Description; + } + + // Keywords + private String Keywords; + + @JsonProperty("Keywords") + public String getKeywords() { + return this.Keywords; + } + + @JsonProperty("Keywords") + public void setKeywords(String Keywords) { + this.Keywords = Keywords; + } + + // IsInternalUseOnly + private Boolean IsInternalUseOnly; + + @JsonProperty("IsInternalUseOnly") + public Boolean getIsInternalUseOnly() { + return this.IsInternalUseOnly; + } + + @JsonProperty("IsInternalUseOnly") + public void setIsInternalUseOnly(Boolean IsInternalUseOnly) { + this.IsInternalUseOnly = IsInternalUseOnly; + } + + // AuthorId + private String AuthorId; + + @JsonProperty("AuthorId") + public String getAuthorId() { + return this.AuthorId; + } + + @JsonProperty("AuthorId") + public void setAuthorId(String AuthorId) { + this.AuthorId = AuthorId; + } + + // IsBodySearchable + private Boolean IsBodySearchable; + + @JsonProperty("IsBodySearchable") + public Boolean getIsBodySearchable() { + return this.IsBodySearchable; + } + + @JsonProperty("IsBodySearchable") + public void setIsBodySearchable(Boolean IsBodySearchable) { + this.IsBodySearchable = IsBodySearchable; + } + +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/camel/blob/9d5892e6/components/camel-salesforce/camel-salesforce-component/src/test/java/org/apache/camel/component/salesforce/dto/generated/Line_Item__c.java ---------------------------------------------------------------------- diff --git a/components/camel-salesforce/camel-salesforce-component/src/test/java/org/apache/camel/component/salesforce/dto/generated/Line_Item__c.java b/components/camel-salesforce/camel-salesforce-component/src/test/java/org/apache/camel/component/salesforce/dto/generated/Line_Item__c.java new file mode 100644 index 0000000..2a92461 --- /dev/null +++ b/components/camel-salesforce/camel-salesforce-component/src/test/java/org/apache/camel/component/salesforce/dto/generated/Line_Item__c.java @@ -0,0 +1,74 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.camel.component.salesforce.dto.generated; + +import com.thoughtworks.xstream.annotations.XStreamAlias; +import org.apache.camel.component.salesforce.api.dto.AbstractSObjectBase; +import org.codehaus.jackson.annotate.JsonProperty; + +@XStreamAlias("Line_Item__c") +public class Line_Item__c extends AbstractSObjectBase { + + private Double Unit_Price__c; + + private Double Units_Sold__c; + + private String Merchandise__c; + + private String Invoice_Statement__c; + + @JsonProperty("Unit_Price__c") + public Double getUnit_Price__c() { + return Unit_Price__c; + } + + @JsonProperty("Unit_Price__c") + public void setUnit_Price__c(Double unit_Price__c) { + Unit_Price__c = unit_Price__c; + } + + @JsonProperty("Units_Sold__c") + public Double getUnits_Sold__c() { + return Units_Sold__c; + } + + @JsonProperty("Units_Sold__c") + public void setUnits_Sold__c(Double units_Sold__c) { + Units_Sold__c = units_Sold__c; + } + + @JsonProperty("Merchandise__c") + public String getMerchandise__c() { + return Merchandise__c; + } + + @JsonProperty("Merchandise__c") + public void setMerchandise__c(String merchandise__c) { + Merchandise__c = merchandise__c; + } + + @JsonProperty("Invoice_Statement__c") + public String getInvoice_Statement__c() { + return Invoice_Statement__c; + } + + @JsonProperty("Invoice_Statement__c") + public void setInvoice_Statement__c(String invoice_Statement__c) { + Invoice_Statement__c = invoice_Statement__c; + } + +} http://git-wip-us.apache.org/repos/asf/camel/blob/9d5892e6/components/camel-salesforce/camel-salesforce-component/src/test/java/org/apache/camel/component/salesforce/dto/generated/Merchandise__c.java ---------------------------------------------------------------------- diff --git a/components/camel-salesforce/camel-salesforce-component/src/test/java/org/apache/camel/component/salesforce/dto/generated/Merchandise__c.java b/components/camel-salesforce/camel-salesforce-component/src/test/java/org/apache/camel/component/salesforce/dto/generated/Merchandise__c.java new file mode 100644 index 0000000..f506d12 --- /dev/null +++ b/components/camel-salesforce/camel-salesforce-component/src/test/java/org/apache/camel/component/salesforce/dto/generated/Merchandise__c.java @@ -0,0 +1,61 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.camel.component.salesforce.dto.generated; + +import com.thoughtworks.xstream.annotations.XStreamAlias; +import org.apache.camel.component.salesforce.api.dto.AbstractSObjectBase; +import org.codehaus.jackson.annotate.JsonProperty; + +@XStreamAlias("Merchandise__c") +public class Merchandise__c extends AbstractSObjectBase { + + private String Description__c; + + private Double Price__c; + + private Double Total_Inventory__c; + + @JsonProperty("Description__c") + public String getDescription__c() { + return Description__c; + } + + @JsonProperty("Description__c") + public void setDescription__c(String description__c) { + Description__c = description__c; + } + + @JsonProperty("Price__c") + public Double getPrice__c() { + return Price__c; + } + + @JsonProperty("Price__c") + public void setPrice__c(Double price__c) { + Price__c = price__c; + } + + @JsonProperty("Total_Inventory__c") + public Double getTotal_Inventory__c() { + return Total_Inventory__c; + } + + @JsonProperty("Total_Inventory__c") + public void setTotal_Inventory__c(Double total_Inventory__c) { + Total_Inventory__c = total_Inventory__c; + } +} http://git-wip-us.apache.org/repos/asf/camel/blob/9d5892e6/components/camel-salesforce/camel-salesforce-component/src/test/java/org/apache/camel/component/salesforce/dto/generated/QueryRecordsLine_Item__c.java ---------------------------------------------------------------------- diff --git a/components/camel-salesforce/camel-salesforce-component/src/test/java/org/apache/camel/component/salesforce/dto/generated/QueryRecordsLine_Item__c.java b/components/camel-salesforce/camel-salesforce-component/src/test/java/org/apache/camel/component/salesforce/dto/generated/QueryRecordsLine_Item__c.java new file mode 100644 index 0000000..ebe18f3 --- /dev/null +++ b/components/camel-salesforce/camel-salesforce-component/src/test/java/org/apache/camel/component/salesforce/dto/generated/QueryRecordsLine_Item__c.java @@ -0,0 +1,35 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.camel.component.salesforce.dto.generated; + +import java.util.List; + +import com.thoughtworks.xstream.annotations.XStreamImplicit; +import org.apache.camel.component.salesforce.api.dto.AbstractQueryRecordsBase; + +public class QueryRecordsLine_Item__c extends AbstractQueryRecordsBase { + @XStreamImplicit + private List<Line_Item__c> records; + + public List<Line_Item__c> getRecords() { + return records; + } + + public void setRecords(List<Line_Item__c> records) { + this.records = records; + } +}
