@Test public void testDescribeGlobal() throws ApiException { DescribeGlobalResult actual = this.conn.describeGlobal(); DescribeGlobalResult expected = (DescribeGlobalResult) TestFixtureUtils .loadFixtures("/sObjectFixtures/ConnectionTests/describeGlobalResult.xml"); assertEquals(expected.getEncoding(), actual.getEncoding()); assertEquals(expected.getMaxBatchSize(), actual.getMaxBatchSize()); assertSetEquals(expected.getSObjectNames(), actual.getSObjectNames()); for (int i = 0; i < expected.getSObjectTypes().size(); i++) { final GlobalSObjectDescription exType = expected.getSObjectTypes().get(i); final GlobalSObjectDescription acType = actual.getSObjectTypes().get(i); String message = "exType: " + exType.getLabel() + "; acType: " + acType.getLabel(); assertEquals(message, exType.getKeyPrefix(), acType.getKeyPrefix()); assertEquals(message, exType.getLabel(), acType.getLabel()); assertEquals(message, exType.getLabelPlural(), acType.getLabelPlural()); assertEquals(message, exType.getName(), acType.getName()); assertBooleanEquals(message, exType.isActivateable(), acType.isActivateable()); assertBooleanEquals(message, exType.isCreateable(), acType.isCreateable()); assertBooleanEquals(message, exType.isCustom(), acType.isCustom()); assertBooleanEquals(message, exType.isCustomSetting(), acType.isCustomSetting()); assertBooleanEquals(message, exType.isDeletable(), acType.isDeletable()); assertBooleanEquals(message, exType.isDeprecatedAndHidden(), acType.isDeprecatedAndHidden()); assertBooleanEquals(message, exType.isFeedEnabled(), acType.isFeedEnabled()); assertBooleanEquals(message, exType.isLayoutable(), acType.isLayoutable()); assertBooleanEquals(message, exType.isMergeable(), acType.isMergeable()); assertBooleanEquals(message, exType.isQueryable(), acType.isQueryable()); assertBooleanEquals(message, exType.isReplicateable(), acType.isReplicateable()); assertBooleanEquals(message, exType.isRetrieveable(), acType.isRetrieveable()); assertBooleanEquals(message, exType.isSearchable(), acType.isSearchable()); assertBooleanEquals(message, exType.isTriggerable(), acType.isTriggerable()); assertBooleanEquals(message, exType.isUndeletable(), acType.isUndeletable()); assertBooleanEquals(message, exType.isUpdateable(), acType.isUpdateable()); } }
@Nonnull @Override public synchronized DescribeGlobalResult describeGlobal() throws ApiException { logger.entry(); DescribeGlobal descrParam = new DescribeGlobal(); DescribeGlobalResponse response; DescribeGlobalOp op = this.new DescribeGlobalOp(); response = op.execute(descrParam); DescribeGlobalResultType stubResult = response.getResult(); DescribeGlobalResult result = new DescribeGlobalResultImpl(stubResult); logger.exit(result); return result; }
PartnerConnectionImpl extends AbstractSalesforceConnection implements PartnerConnection { @Nonnull @Override public synchronized DescribeGlobalResult describeGlobal() throws ApiException { logger.entry(); DescribeGlobal descrParam = new DescribeGlobal(); DescribeGlobalResponse response; DescribeGlobalOp op = this.new DescribeGlobalOp(); response = op.execute(descrParam); DescribeGlobalResultType stubResult = response.getResult(); DescribeGlobalResult result = new DescribeGlobalResultImpl(stubResult); logger.exit(result); return result; } }
PartnerConnectionImpl extends AbstractSalesforceConnection implements PartnerConnection { @Nonnull @Override public synchronized DescribeGlobalResult describeGlobal() throws ApiException { logger.entry(); DescribeGlobal descrParam = new DescribeGlobal(); DescribeGlobalResponse response; DescribeGlobalOp op = this.new DescribeGlobalOp(); response = op.execute(descrParam); DescribeGlobalResultType stubResult = response.getResult(); DescribeGlobalResult result = new DescribeGlobalResultImpl(stubResult); logger.exit(result); return result; } private  PartnerConnectionImpl(@Nonnull CallSemaphore semaphore, @Nonnull ConnectionBundleImpl bundle,
            MetricRegistry metricRegistry); }
PartnerConnectionImpl extends AbstractSalesforceConnection implements PartnerConnection { @Nonnull @Override public synchronized DescribeGlobalResult describeGlobal() throws ApiException { logger.entry(); DescribeGlobal descrParam = new DescribeGlobal(); DescribeGlobalResponse response; DescribeGlobalOp op = this.new DescribeGlobalOp(); response = op.execute(descrParam); DescribeGlobalResultType stubResult = response.getResult(); DescribeGlobalResult result = new DescribeGlobalResultImpl(stubResult); logger.exit(result); return result; } private  PartnerConnectionImpl(@Nonnull CallSemaphore semaphore, @Nonnull ConnectionBundleImpl bundle,
            MetricRegistry metricRegistry); @Override synchronized int count(@Nonnull String sObjectType, @Nonnull String condition); @Override synchronized int count(@Nonnull String sObjectType); @Override synchronized int countAll(@Nonnull String sObjectType, @Nonnull String condition); @Override synchronized int countAll(@Nonnull String sObjectType); @Nonnull @Override synchronized List<SaveResult> create(@Nonnull List<SObject> sObjects); @Nonnull @Override synchronized List<DeleteResult> delete(@Nonnull List<Id> ids); @Nonnull @Override synchronized DescribeGlobalResult describeGlobal(); @Nonnull @Override synchronized SObjectDescription describeSObject(@Nonnull String sObjectType); @Nonnull @Override synchronized List<SObjectDescription> describeSObjects(@Nonnull List<String> sObjectTypes); @Nonnull @Override synchronized List<EmptyRecycleBinResult> emptyRecycleBin(@Nonnull List<Id> ids); @Nonnull @Override synchronized DateTime getServerTimestamp(); @Nonnull @Override synchronized UserInfo getUserInfo(); @Nonnull @Override synchronized PartnerQueryResult query(@Nonnull String queryStr); @Nonnull @Override synchronized PartnerQueryResult queryAll(@Nonnull String queryStr); @Nonnull @Override synchronized PartnerQueryResult queryMore(@Nonnull PartnerQueryLocator locator); @Nonnull @Override synchronized List<SObject> retrieve(@Nonnull String sObjectType, @Nonnull List<Id> ids,
            @Nonnull List<String> fieldList); @Nonnull @Override synchronized Map<Id, SObject> retrieveExtended(@Nonnull String sObjectType, @Nonnull List<Id> ids,
            @Nonnull List<String> fields,
            int maxFieldNameChunkSize); @Nonnull @Override synchronized List<UndeleteResult> undelete(@Nonnull List<Id> ids); @Nonnull @Override synchronized List<SaveResult> update(@Nonnull List<SObject> sObjects); @Nonnull @Override synchronized List<UpsertResult> upsert(@Nonnull String externalIdFieldName, @Nonnull List<SObject> sObjects); }
PartnerConnectionImpl extends AbstractSalesforceConnection implements PartnerConnection { @Nonnull @Override public synchronized DescribeGlobalResult describeGlobal() throws ApiException { logger.entry(); DescribeGlobal descrParam = new DescribeGlobal(); DescribeGlobalResponse response; DescribeGlobalOp op = this.new DescribeGlobalOp(); response = op.execute(descrParam); DescribeGlobalResultType stubResult = response.getResult(); DescribeGlobalResult result = new DescribeGlobalResultImpl(stubResult); logger.exit(result); return result; } private  PartnerConnectionImpl(@Nonnull CallSemaphore semaphore, @Nonnull ConnectionBundleImpl bundle,
            MetricRegistry metricRegistry); @Override synchronized int count(@Nonnull String sObjectType, @Nonnull String condition); @Override synchronized int count(@Nonnull String sObjectType); @Override synchronized int countAll(@Nonnull String sObjectType, @Nonnull String condition); @Override synchronized int countAll(@Nonnull String sObjectType); @Nonnull @Override synchronized List<SaveResult> create(@Nonnull List<SObject> sObjects); @Nonnull @Override synchronized List<DeleteResult> delete(@Nonnull List<Id> ids); @Nonnull @Override synchronized DescribeGlobalResult describeGlobal(); @Nonnull @Override synchronized SObjectDescription describeSObject(@Nonnull String sObjectType); @Nonnull @Override synchronized List<SObjectDescription> describeSObjects(@Nonnull List<String> sObjectTypes); @Nonnull @Override synchronized List<EmptyRecycleBinResult> emptyRecycleBin(@Nonnull List<Id> ids); @Nonnull @Override synchronized DateTime getServerTimestamp(); @Nonnull @Override synchronized UserInfo getUserInfo(); @Nonnull @Override synchronized PartnerQueryResult query(@Nonnull String queryStr); @Nonnull @Override synchronized PartnerQueryResult queryAll(@Nonnull String queryStr); @Nonnull @Override synchronized PartnerQueryResult queryMore(@Nonnull PartnerQueryLocator locator); @Nonnull @Override synchronized List<SObject> retrieve(@Nonnull String sObjectType, @Nonnull List<Id> ids,
            @Nonnull List<String> fieldList); @Nonnull @Override synchronized Map<Id, SObject> retrieveExtended(@Nonnull String sObjectType, @Nonnull List<Id> ids,
            @Nonnull List<String> fields,
            int maxFieldNameChunkSize); @Nonnull @Override synchronized List<UndeleteResult> undelete(@Nonnull List<Id> ids); @Nonnull @Override synchronized List<SaveResult> update(@Nonnull List<SObject> sObjects); @Nonnull @Override synchronized List<UpsertResult> upsert(@Nonnull String externalIdFieldName, @Nonnull List<SObject> sObjects);  }