FileResource { @ApiOperation(value = "documents") @Path("/{workspaceId}/documents/{documentId}/{version}") public DocumentBinaryResource documentFile() { return documentBinaryResource; } FileResource(); @ApiOperation(value = "documents") @Path("/{workspaceId}/documents/{documentId}/{version}") DocumentBinaryResource documentFile(); @ApiOperation(value = "parts") @Path("/{workspaceId}/parts/{partNumber}/{version}") PartBinaryResource partFile(); @ApiOperation(value = "document-templates") @Path("/{workspaceId}/document-templates/{templateId}/") @RolesAllowed({UserGroupMapping.REGULAR_USER_ROLE_ID}) DocumentTemplateBinaryResource documentTemplateFile(); @ApiOperation(value = "part-templates") @Path("/{workspaceId}/part-templates/{templateId}/") @RolesAllowed({UserGroupMapping.REGULAR_USER_ROLE_ID}) PartTemplateBinaryResource partTemplateFile(); @ApiOperation(value = "product-instances") @Path("/{workspaceId}/product-instances/{serialNumber}/{ciId}/") @RolesAllowed({UserGroupMapping.REGULAR_USER_ROLE_ID}) ProductInstanceBinaryResource productInstanceFile();  }
@Test public void documentFileTest() { DocumentBinaryResource _documentBinaryResource = resource.documentFile(); Assert.assertEquals(documentBinaryResource, _documentBinaryResource); }