@Test public void testDescribeMetadata() throws ApiException { final DescribeMetadataResult actual = mdconn.describeMetadata(); DescribeMetadataResult expected = (DescribeMetadataResult) TestFixtureUtils .loadFixtures("/sObjectFixtures/MetadataConnectionTests/describeMetadata.xml"); assertEquals(expected.getOrganizationNamespace(), actual.getOrganizationNamespace()); assertEquals(expected.isPartialSaveAllowed(), actual.isPartialSaveAllowed()); assertEquals(expected.isTestRequired(), actual.isTestRequired()); assertEquals(expected.getObjectList().size(), actual.getObjectList().size()); for (int i = 0; i < expected.getObjectList().size(); i++) { final DescribeMetadataObject expectedObj = expected.getObjectList().get(i); final DescribeMetadataObject actualObj = actual.getObjectList().get(i); String message = "Expected: " + expectedObj.getXmlName() + "; actual: " + actualObj.getXmlName(); assertEquals(message, expectedObj.getChildXmlNames(), actualObj.getChildXmlNames()); assertEquals(message, expectedObj.getDirectoryName(), actualObj.getDirectoryName()); assertEquals(message, expectedObj.isInFolder(), actualObj.isInFolder()); assertEquals(message, expectedObj.isMetaFile(), actualObj.isMetaFile()); assertEquals(message, expectedObj.getSuffix(), actualObj.getSuffix()); assertEquals(message, expectedObj.getXmlName(), actualObj.getXmlName()); } }
@Override @Nonnull public synchronized DescribeMetadataResult describeMetadata() throws ApiException { return this.describeMetadata(ApiVersion.API_VERSION_DOUBLE); }
MetadataConnectionImpl extends AbstractSalesforceConnection implements MetadataConnection { @Override @Nonnull public synchronized DescribeMetadataResult describeMetadata() throws ApiException { return this.describeMetadata(ApiVersion.API_VERSION_DOUBLE); } }
MetadataConnectionImpl extends AbstractSalesforceConnection implements MetadataConnection { @Override @Nonnull public synchronized DescribeMetadataResult describeMetadata() throws ApiException { return this.describeMetadata(ApiVersion.API_VERSION_DOUBLE); } MetadataConnectionImpl(@Nonnull CallSemaphore semaphore, @Nonnull ConnectionBundleImpl bundle,
            MetricRegistry metricRegistry); }
MetadataConnectionImpl extends AbstractSalesforceConnection implements MetadataConnection { @Override @Nonnull public synchronized DescribeMetadataResult describeMetadata() throws ApiException { return this.describeMetadata(ApiVersion.API_VERSION_DOUBLE); } MetadataConnectionImpl(@Nonnull CallSemaphore semaphore, @Nonnull ConnectionBundleImpl bundle,
            MetricRegistry metricRegistry); @Override @Nonnull WaitForAsyncResult waitForAsyncResults(@Nonnull List<AsyncResult> results, long maxMillisToWait); @Override @Nonnull synchronized List<AsyncResult> checkStatus(@Nonnull List<Id> idsToCheck); @Override @Nonnull synchronized List<AsyncResult> create(@Nonnull List<Metadata> metadataList); @Override @Nonnull synchronized List<AsyncResult> delete(@Nonnull List<Metadata> metadataList); @Override @Nonnull synchronized List<AsyncResult> update(@Nonnull List<UpdateMetadata> metadataList); @Override @Nonnull synchronized List<FileProperties> listMetadata(@Nonnull List<ListMetadataQuery> queries); @Override @Nonnull synchronized AsyncResult retrieve(@Nonnull RetrieveRequest retrieveRequest); @Override @Nonnull synchronized RetrieveResult getRetrieveResult(@Nonnull Id id); @Override @Nonnull synchronized DescribeMetadataResult describeMetadata(); @Override @Nonnull synchronized DescribeMetadataResult describeMetadata(double apiVersion); }
MetadataConnectionImpl extends AbstractSalesforceConnection implements MetadataConnection { @Override @Nonnull public synchronized DescribeMetadataResult describeMetadata() throws ApiException { return this.describeMetadata(ApiVersion.API_VERSION_DOUBLE); } MetadataConnectionImpl(@Nonnull CallSemaphore semaphore, @Nonnull ConnectionBundleImpl bundle,
            MetricRegistry metricRegistry); @Override @Nonnull WaitForAsyncResult waitForAsyncResults(@Nonnull List<AsyncResult> results, long maxMillisToWait); @Override @Nonnull synchronized List<AsyncResult> checkStatus(@Nonnull List<Id> idsToCheck); @Override @Nonnull synchronized List<AsyncResult> create(@Nonnull List<Metadata> metadataList); @Override @Nonnull synchronized List<AsyncResult> delete(@Nonnull List<Metadata> metadataList); @Override @Nonnull synchronized List<AsyncResult> update(@Nonnull List<UpdateMetadata> metadataList); @Override @Nonnull synchronized List<FileProperties> listMetadata(@Nonnull List<ListMetadataQuery> queries); @Override @Nonnull synchronized AsyncResult retrieve(@Nonnull RetrieveRequest retrieveRequest); @Override @Nonnull synchronized RetrieveResult getRetrieveResult(@Nonnull Id id); @Override @Nonnull synchronized DescribeMetadataResult describeMetadata(); @Override @Nonnull synchronized DescribeMetadataResult describeMetadata(double apiVersion);  }