Community
Participate
Working Groups
From looking at test coverage, there are a number of areas in composite repositories that are not tested. We should add tests for: - Parsing a malformed composite*.xml file, ensuring an appropriate exception when client class loadRepository - The following methods on CompositeArtifactRepository are not tested at all: - contains(IArtifactDescriptor) - contains(IArtifactKey) - getArtifact(IArtifactDescriptor, OutputStream, IProgressMonitor) - getArtifacts(IArtifactRequest[], IProgressMonitor - CompositeMetadataRepositoryFactory#validate is not tested
Created attachment 117950 [details] Adds additional test cases Adds the additional test cases as well as some quick minor bug fixes. I'd like to try and get a better verification for the syntax error but the message is a generic "no repository at the location." I'm open to any ideas. Additionally, I would have liked to see how the parser handed duplicate tags but this is blocked by Bug 255401. Please use the test data attached below
Created attachment 117951 [details] Testdata for invalid composite artifact repository metadata Unzip into the /testdata/artifactRepo folder, please.
Created attachment 117952 [details] Testdata for invalid composite metadata repositories metadata Unzip into /Testdata/metadataRepo/ folder, please.
Thanks Andrew. New tests released.