MetadataArtifactResolveTestFixture.groovy

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Normalize `ModuleIdentifier`

This commit reworks the `ComponentModuleIdentifier`/`ComponentModuleSelector`/`ModuleVersionSelector`

classes to use `ModuleIdentifier` under the hood, instead of storing denormalized strings. This has

the advantage that we can reduce the use of the module identifier factory, which is called very

often during dependency resolution. Sharing instances reduces the need for conversions, and makes

comparisons faster.

    • -1
    • +2
    ./MetadataArtifactResolveTestFixture.groovy
  1. … 164 more files in changeset.
Migrate test to ComponentMetadataRule usage

This covers a number of tests that were missed on the previous pass.

    • -3
    • +8
    ./MetadataArtifactResolveTestFixture.groovy
  1. … 7 more files in changeset.
Added `ArtifactResult.getId()` which returns an identifier for the artifact. This will allow the artifact to be correlated with the components in the dependency graph result, if required.

For artifacts returned by `Configuration.getIncoming().getArtifacts()` the id is currently a placeholder so cannot actually be used for this purpose. The dependency graph result also does not currently include all components.

    • -1
    • +8
    ./MetadataArtifactResolveTestFixture.groovy
  1. … 6 more files in changeset.
Fix test fixture for querying artifacts of project component

    • -1
    • +28
    ./MetadataArtifactResolveTestFixture.groovy
  1. … 3 more files in changeset.
Clarifying tests for artifact query integration tests

+review REVIEW-5282

    • -0
    • +25
    ./MetadataArtifactResolveTestFixture.groovy
  1. … 2 more files in changeset.
Handle ProjectIdentifiers more gracefully in ArtifactResolutionQuery

- Instead of failing the query, return an UnresolvedComponentResult

+review REVIEW-5282

    • -2
    • +2
    ./MetadataArtifactResolveTestFixture.groovy
  1. … 3 more files in changeset.
Include IvyModule and MavenModule component types in default imports

+review REVIEW-5282

    • -5
    • +0
    ./MetadataArtifactResolveTestFixture.groovy
  1. … 3 more files in changeset.
Check UnresolvedComponentResult failure for integration tests.

+review REVIEW-5282

    • -7
    • +38
    ./MetadataArtifactResolveTestFixture.groovy
  1. … 2 more files in changeset.
Removed convenience method. Needs more specing. Users will need to implement this functionality in their own builds.

+review REVIEW-5282

    • -22
    • +10
    ./MetadataArtifactResolveTestFixture.groovy
  1. … 7 more files in changeset.
Moved metadata component and artifact types to proper modules.

+review REVIEW-5282

    • -0
    • +5
    ./MetadataArtifactResolveTestFixture.groovy
  1. … 14 more files in changeset.
Added test coverage for querying metadata artifacts.

+review REVIEW-5282

    • -7
    • +109
    ./MetadataArtifactResolveTestFixture.groovy
  1. … 5 more files in changeset.
Ground work for accessing the Ivy and Maven metadata artifacts via the Artifact Query API.

    • -0
    • +48
    ./MetadataArtifactResolveTestFixture.groovy
  1. … 15 more files in changeset.