@Test public void testPlainResourceSeveralOperations() { Bus bus = BusFactory.getDefaultBus(true); ResourceMethodInfoDTO[] resourceMethodInfoDTOS = ClassIntrospector.getResourceMethodInfos( PlainResourceSeveralOperations.class, bus ).toArray( new ResourceMethodInfoDTO[0] ); assertEquals(2, resourceMethodInfoDTOS.length); List<ResourceMethodInfoDTOWrapper> wrappers = Arrays.stream( resourceMethodInfoDTOS ).map( ResourceMethodInfoDTOWrapper::new ).collect( Collectors.toList() ); ResourceMethodInfoDTO resourceMethodInfoDTO = new ResourceMethodInfoDTO(); resourceMethodInfoDTO.method = HttpMethod.GET; resourceMethodInfoDTO.consumingMimeType = null; resourceMethodInfoDTO.producingMimeType = null; resourceMethodInfoDTO.path = "/"; resourceMethodInfoDTO.nameBindings = null; assertTrue( wrappers.remove( new ResourceMethodInfoDTOWrapper(resourceMethodInfoDTO))); resourceMethodInfoDTO = new ResourceMethodInfoDTO(); resourceMethodInfoDTO.method = HttpMethod.POST; resourceMethodInfoDTO.consumingMimeType = null; resourceMethodInfoDTO.producingMimeType = null; resourceMethodInfoDTO.path = "/"; resourceMethodInfoDTO.nameBindings = null; assertTrue( wrappers.remove( new ResourceMethodInfoDTOWrapper(resourceMethodInfoDTO))); }
public static Collection<ResourceMethodInfoDTO> getResourceMethodInfos( Class<?> clazz, Bus bus) { final Class<?> realClass = unwrap(clazz, bus); ClassResourceInfo classResourceInfo = ResourceUtils.createClassResourceInfo( realClass, realClass, true, true, bus); Stream<ResourceMethodInfoDTO> convert = convert( new HashSet<>(), "/", null, null, null, null, true, classResourceInfo); return convert.collect(Collectors.toList()); }
ClassIntrospector { public static Collection<ResourceMethodInfoDTO> getResourceMethodInfos( Class<?> clazz, Bus bus) { final Class<?> realClass = unwrap(clazz, bus); ClassResourceInfo classResourceInfo = ResourceUtils.createClassResourceInfo( realClass, realClass, true, true, bus); Stream<ResourceMethodInfoDTO> convert = convert( new HashSet<>(), "/", null, null, null, null, true, classResourceInfo); return convert.collect(Collectors.toList()); } }
ClassIntrospector { public static Collection<ResourceMethodInfoDTO> getResourceMethodInfos( Class<?> clazz, Bus bus) { final Class<?> realClass = unwrap(clazz, bus); ClassResourceInfo classResourceInfo = ResourceUtils.createClassResourceInfo( realClass, realClass, true, true, bus); Stream<ResourceMethodInfoDTO> convert = convert( new HashSet<>(), "/", null, null, null, null, true, classResourceInfo); return convert.collect(Collectors.toList()); }  }
ClassIntrospector { public static Collection<ResourceMethodInfoDTO> getResourceMethodInfos( Class<?> clazz, Bus bus) { final Class<?> realClass = unwrap(clazz, bus); ClassResourceInfo classResourceInfo = ResourceUtils.createClassResourceInfo( realClass, realClass, true, true, bus); Stream<ResourceMethodInfoDTO> convert = convert( new HashSet<>(), "/", null, null, null, null, true, classResourceInfo); return convert.collect(Collectors.toList()); }  static Collection<ResourceMethodInfoDTO> getResourceMethodInfos(
        Class<?> clazz, Bus bus); }
ClassIntrospector { public static Collection<ResourceMethodInfoDTO> getResourceMethodInfos( Class<?> clazz, Bus bus) { final Class<?> realClass = unwrap(clazz, bus); ClassResourceInfo classResourceInfo = ResourceUtils.createClassResourceInfo( realClass, realClass, true, true, bus); Stream<ResourceMethodInfoDTO> convert = convert( new HashSet<>(), "/", null, null, null, null, true, classResourceInfo); return convert.collect(Collectors.toList()); }  static Collection<ResourceMethodInfoDTO> getResourceMethodInfos(
        Class<?> clazz, Bus bus);  }