@Test public void testBuildClassMetadataNoResources() { WADLGenerator generator = new WADLGenerator(); Set<Class<?>> classes = new HashSet<Class<?>>(); Set<ClassMetadata> metadataSet = generator.buildClassMetdata(classes); Assert.assertEquals(0, metadataSet.size()); classes.add(NotAResourceWithPath.class); metadataSet = generator.buildClassMetdata(classes); Assert.assertEquals(0, metadataSet.size()); }
Set<ClassMetadata> buildClassMetdata(Set<Class<?>> classes) { Set<ClassMetadata> metadataSet = new HashSet<ClassMetadata>(classes.size()); for (Class<?> c : classes) { if (!isResource(c)) { continue; } ClassMetadata metadata = ResourceMetadataCollector.collectMetadata(c); metadataSet.add(metadata); } return metadataSet; }
WADLGenerator { Set<ClassMetadata> buildClassMetdata(Set<Class<?>> classes) { Set<ClassMetadata> metadataSet = new HashSet<ClassMetadata>(classes.size()); for (Class<?> c : classes) { if (!isResource(c)) { continue; } ClassMetadata metadata = ResourceMetadataCollector.collectMetadata(c); metadataSet.add(metadata); } return metadataSet; } }
WADLGenerator { Set<ClassMetadata> buildClassMetdata(Set<Class<?>> classes) { Set<ClassMetadata> metadataSet = new HashSet<ClassMetadata>(classes.size()); for (Class<?> c : classes) { if (!isResource(c)) { continue; } ClassMetadata metadata = ResourceMetadataCollector.collectMetadata(c); metadataSet.add(metadata); } return metadataSet; }  }
WADLGenerator { Set<ClassMetadata> buildClassMetdata(Set<Class<?>> classes) { Set<ClassMetadata> metadataSet = new HashSet<ClassMetadata>(classes.size()); for (Class<?> c : classes) { if (!isResource(c)) { continue; } ClassMetadata metadata = ResourceMetadataCollector.collectMetadata(c); metadataSet.add(metadata); } return metadataSet; }  Application generate(String baseURI, Set<Class<?>> classes); }
WADLGenerator { Set<ClassMetadata> buildClassMetdata(Set<Class<?>> classes) { Set<ClassMetadata> metadataSet = new HashSet<ClassMetadata>(classes.size()); for (Class<?> c : classes) { if (!isResource(c)) { continue; } ClassMetadata metadata = ResourceMetadataCollector.collectMetadata(c); metadataSet.add(metadata); } return metadataSet; }  Application generate(String baseURI, Set<Class<?>> classes);  }