Repository: aries-jax-rs-whiteboard Updated Branches: refs/heads/master 324bc303c -> 4d04b13b3
Source formatting Project: http://git-wip-us.apache.org/repos/asf/aries-jax-rs-whiteboard/repo Commit: http://git-wip-us.apache.org/repos/asf/aries-jax-rs-whiteboard/commit/2ac4c23d Tree: http://git-wip-us.apache.org/repos/asf/aries-jax-rs-whiteboard/tree/2ac4c23d Diff: http://git-wip-us.apache.org/repos/asf/aries-jax-rs-whiteboard/diff/2ac4c23d Branch: refs/heads/master Commit: 2ac4c23d6f41a068a83bd1c77550afc65ee91ef9 Parents: 324bc30 Author: Carlos Sierra <[email protected]> Authored: Thu Feb 15 14:51:52 2018 +0100 Committer: Carlos Sierra <[email protected]> Committed: Thu Feb 15 14:51:52 2018 +0100 ---------------------------------------------------------------------- .../introspection/ClassIntrospectorTest.java | 39 ++++++++++++++------ 1 file changed, 28 insertions(+), 11 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/aries-jax-rs-whiteboard/blob/2ac4c23d/jax-rs.whiteboard/src/test/java/org/apache/aries/jax/rs/whiteboard/internal/introspection/ClassIntrospectorTest.java ---------------------------------------------------------------------- diff --git a/jax-rs.whiteboard/src/test/java/org/apache/aries/jax/rs/whiteboard/internal/introspection/ClassIntrospectorTest.java b/jax-rs.whiteboard/src/test/java/org/apache/aries/jax/rs/whiteboard/internal/introspection/ClassIntrospectorTest.java index ba88857..168640c 100644 --- a/jax-rs.whiteboard/src/test/java/org/apache/aries/jax/rs/whiteboard/internal/introspection/ClassIntrospectorTest.java +++ b/jax-rs.whiteboard/src/test/java/org/apache/aries/jax/rs/whiteboard/internal/introspection/ClassIntrospectorTest.java @@ -49,7 +49,9 @@ public class ClassIntrospectorTest { Bus bus = BusFactory.getDefaultBus(true); ResourceMethodInfoDTO[] resourceMethodInfoDTOS = - ClassIntrospector.getResourceMethodInfos(PlainResource.class, bus).toArray( + ClassIntrospector.getResourceMethodInfos( + PlainResource.class, bus + ).toArray( new ResourceMethodInfoDTO[0] ); @@ -73,7 +75,8 @@ public class ClassIntrospectorTest { ResourceMethodInfoDTO[] resourceMethodInfoDTOS = ClassIntrospector.getResourceMethodInfos( - PlainResourceSeveralOperationsWithNameBinding.class, bus).toArray( + PlainResourceSeveralOperationsWithNameBinding.class, bus + ).toArray( new ResourceMethodInfoDTO[0] ); @@ -119,7 +122,8 @@ public class ClassIntrospectorTest { ResourceMethodInfoDTO[] resourceMethodInfoDTOS = ClassIntrospector.getResourceMethodInfos( - PlainResourceSeveralOperations.class, bus).toArray( + PlainResourceSeveralOperations.class, bus + ).toArray( new ResourceMethodInfoDTO[0] ); @@ -165,7 +169,8 @@ public class ClassIntrospectorTest { ResourceMethodInfoDTO[] resourceMethodInfoDTOS = ClassIntrospector.getResourceMethodInfos( - PlainResourceSeveralOperationsCommonPath.class, bus).toArray( + PlainResourceSeveralOperationsCommonPath.class, bus + ).toArray( new ResourceMethodInfoDTO[0] ); @@ -212,7 +217,8 @@ public class ClassIntrospectorTest { ResourceMethodInfoDTO[] resourceMethodInfoDTOS = ClassIntrospector.getResourceMethodInfos( - PlainResourceSeveralOperationsDifferentPath.class, bus).toArray( + PlainResourceSeveralOperationsDifferentPath.class, bus + ).toArray( new ResourceMethodInfoDTO[0] ); @@ -258,7 +264,8 @@ public class ClassIntrospectorTest { ResourceMethodInfoDTO[] resourceMethodInfoDTOS = ClassIntrospector.getResourceMethodInfos( - ResourceWithSubResource.class, bus).toArray( + ResourceWithSubResource.class, bus + ).toArray( new ResourceMethodInfoDTO[0] ); @@ -282,7 +289,9 @@ public class ClassIntrospectorTest { resourceMethodInfoDTO.path = "/resource"; resourceMethodInfoDTO.nameBindings = new String[]{}; - assertTrue(wrappers.remove(new ResourceMethodInfoDTOWrapper(resourceMethodInfoDTO))); + assertTrue( + wrappers.remove( + new ResourceMethodInfoDTOWrapper(resourceMethodInfoDTO))); resourceMethodInfoDTO = new ResourceMethodInfoDTO(); @@ -294,7 +303,9 @@ public class ClassIntrospectorTest { resourceMethodInfoDTO.path = "/resource/subresource"; resourceMethodInfoDTO.nameBindings = new String[]{}; - assertTrue(wrappers.remove(new ResourceMethodInfoDTOWrapper(resourceMethodInfoDTO))); + assertTrue( + wrappers.remove( + new ResourceMethodInfoDTOWrapper(resourceMethodInfoDTO))); resourceMethodInfoDTO = new ResourceMethodInfoDTO(); @@ -309,7 +320,9 @@ public class ClassIntrospectorTest { resourceMethodInfoDTO.path = "/resource/subresource"; resourceMethodInfoDTO.nameBindings = new String[]{}; - assertTrue(wrappers.remove(new ResourceMethodInfoDTOWrapper(resourceMethodInfoDTO))); + assertTrue( + wrappers.remove( + new ResourceMethodInfoDTOWrapper(resourceMethodInfoDTO))); resourceMethodInfoDTO = new ResourceMethodInfoDTO(); @@ -321,7 +334,9 @@ public class ClassIntrospectorTest { resourceMethodInfoDTO.path = "/resource/subresource/{path}"; resourceMethodInfoDTO.nameBindings = new String[]{}; - assertTrue(wrappers.remove(new ResourceMethodInfoDTOWrapper(resourceMethodInfoDTO))); + assertTrue( + wrappers.remove( + new ResourceMethodInfoDTOWrapper(resourceMethodInfoDTO))); resourceMethodInfoDTO = new ResourceMethodInfoDTO(); @@ -335,7 +350,9 @@ public class ClassIntrospectorTest { resourceMethodInfoDTO.path = "/resource/subresource/{path}"; resourceMethodInfoDTO.nameBindings = new String[]{}; - assertTrue(wrappers.remove(new ResourceMethodInfoDTOWrapper(resourceMethodInfoDTO))); + assertTrue( + wrappers.remove( + new ResourceMethodInfoDTOWrapper(resourceMethodInfoDTO))); assertTrue(wrappers.isEmpty()); }
