@Test public void testGetCachedFailure() throws IOException { handler.addRequest(false, "GET", "/qcbin/rest/domains/domain/projects/project/customization/entities/non-existing-type/fields", 404); try { metadataService.getEntityMetadata("non-existing-type"); Assert.fail("should have failed"); } catch (Exception e) { } try { metadataService.getEntityMetadata("non-existing-type"); Assert.fail("should have failed"); } catch (Exception e) { } }
public Exception getCachedFailure(String entityType) { return super.getCachedFailure(entityType); }
MetadataService extends AbstractCachingService<String, Metadata, AbstractCachingService.Callback<Metadata>> { public Exception getCachedFailure(String entityType) { return super.getCachedFailure(entityType); } }
MetadataService extends AbstractCachingService<String, Metadata, AbstractCachingService.Callback<Metadata>> { public Exception getCachedFailure(String entityType) { return super.getCachedFailure(entityType); } MetadataService(Project project, MetadataSimpleService metadataService, RestService restService); }
MetadataService extends AbstractCachingService<String, Metadata, AbstractCachingService.Callback<Metadata>> { public Exception getCachedFailure(String entityType) { return super.getCachedFailure(entityType); } MetadataService(Project project, MetadataSimpleService metadataService, RestService restService); Metadata getEntityMetadata(String entityName); void loadEntityMetadataAsync(String entityName, MetadataCallback callback); Metadata getCachedEntityMetadata(String entityType); Exception getCachedFailure(String entityType); }
MetadataService extends AbstractCachingService<String, Metadata, AbstractCachingService.Callback<Metadata>> { public Exception getCachedFailure(String entityType) { return super.getCachedFailure(entityType); } MetadataService(Project project, MetadataSimpleService metadataService, RestService restService); Metadata getEntityMetadata(String entityName); void loadEntityMetadataAsync(String entityName, MetadataCallback callback); Metadata getCachedEntityMetadata(String entityType); Exception getCachedFailure(String entityType);  }