@Test public void testGetCachedEntityMetadata() throws IOException { requests(); Metadata metadata = metadataService.getCachedEntityMetadata("defect"); Assert.assertNull(metadata); metadataService.getEntityMetadata("defect"); metadata = metadataService.getCachedEntityMetadata("defect"); Assert.assertEquals("defect", metadata.getEntityType()); Assert.assertEquals(Integer.class, metadata.getField("id").getClazz()); Assert.assertEquals(metadata, metadataService.getEntityMetadata("defect")); }
public Metadata getCachedEntityMetadata(String entityType) { return getCachedValue(entityType); }
MetadataService extends AbstractCachingService<String, Metadata, AbstractCachingService.Callback<Metadata>> { public Metadata getCachedEntityMetadata(String entityType) { return getCachedValue(entityType); } }
MetadataService extends AbstractCachingService<String, Metadata, AbstractCachingService.Callback<Metadata>> { public Metadata getCachedEntityMetadata(String entityType) { return getCachedValue(entityType); } MetadataService(Project project, MetadataSimpleService metadataService, RestService restService); }
MetadataService extends AbstractCachingService<String, Metadata, AbstractCachingService.Callback<Metadata>> { public Metadata getCachedEntityMetadata(String entityType) { return getCachedValue(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 Metadata getCachedEntityMetadata(String entityType) { return getCachedValue(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);  }