@Test public void testGetEntityMetadataAsync_failure() throws InterruptedException, IOException { handler.addRequest(false, "GET", "/qcbin/rest/domains/domain/projects/project/customization/entities/non-existing-type/fields", 404); handler.async(); metadataSimpleService.getEntityMetadataAsync("non-existing-type", new MetadataService.MetadataCallback() { @Override public void metadataLoaded(final Metadata metadata) { handler.fail("Should have failed for wrong entity type"); } @Override public void metadataFailed() { handler.done(); } }); }
void getEntityMetadataAsync(String entityType, MetadataService.MetadataCallback callback) { getValueAsync(entityType, MetadataService.Proxy.create(callback)); }
MetadataSimpleService extends AbstractCachingService<String, Metadata, AbstractCachingService.Callback<Metadata>> { void getEntityMetadataAsync(String entityType, MetadataService.MetadataCallback callback) { getValueAsync(entityType, MetadataService.Proxy.create(callback)); } }
MetadataSimpleService extends AbstractCachingService<String, Metadata, AbstractCachingService.Callback<Metadata>> { void getEntityMetadataAsync(String entityType, MetadataService.MetadataCallback callback) { getValueAsync(entityType, MetadataService.Proxy.create(callback)); } MetadataSimpleService(Project project); }
MetadataSimpleService extends AbstractCachingService<String, Metadata, AbstractCachingService.Callback<Metadata>> { void getEntityMetadataAsync(String entityType, MetadataService.MetadataCallback callback) { getValueAsync(entityType, MetadataService.Proxy.create(callback)); } MetadataSimpleService(Project project);  }
MetadataSimpleService extends AbstractCachingService<String, Metadata, AbstractCachingService.Callback<Metadata>> { void getEntityMetadataAsync(String entityType, MetadataService.MetadataCallback callback) { getValueAsync(entityType, MetadataService.Proxy.create(callback)); } MetadataSimpleService(Project project);   }