ModelMapIntegrationTest.groovy

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Software Model @UnsupportedWithInstantExecution

Signed-off-by: Paul Merlin <paul@gradle.com>

  1. … 76 more files in changeset.
Mark software model tests as @UnsupportedWithInstantExecution

to reduce CI time and noise when making changes

Signed-off-by: Paul Merlin <paul@gradle.com>

  1. … 77 more files in changeset.
Mark software model tests as @UnsupportedWithInstantExecution

to reduce CI time and noise when making changes

Signed-off-by: Paul Merlin <paul@gradle.com>

  1. … 77 more files in changeset.
Mark software model tests as @UnsupportedWithInstantExecution

to reduce CI time and noise when making changes

Signed-off-by: Paul Merlin <paul@gradle.com>

  1. … 77 more files in changeset.
Rename @FailsWithInstantExecution to @ToBeFixedForInstantExecution

Signed-off-by: Paul Merlin <paul@gradle.com>

  1. … 872 more files in changeset.
Annotate integ tests failing with instant execution in :modelCore

Signed-off-by: Paul Merlin <paul@gradle.com>

  1. … 26 more files in changeset.
Annotate integ tests failing with instant execution in :modelCore

Signed-off-by: Paul Merlin <paul@gradle.com>

  1. … 26 more files in changeset.
Annotate integ tests failing with instant execution in :modelCore

Signed-off-by: Paul Merlin <paul@gradle.com>

  1. … 26 more files in changeset.
Pass an immutable (and readable) view of the subject to `@Validate` rules.

Also added a new exception type to distinguish between mutating a read only view and mutating a closed view.

  1. … 16 more files in changeset.
Reworked display name for views of `ModelMap` and `ModelSet` (and subtypes) elements so that the same display name for a given element is used regardless of the view type.

Added some test coverage for viewing these elements as various types.

  1. … 11 more files in changeset.
Added `ModelElement` interface, which is a view that provides some basic meta-data for a particular model element. Currently supported by `ModelMap` and `ModelSet` elements.

Also changed the generated display name for `ModelSet` views to be consistent with that provided for `ModelMap` views.

  1. … 14 more files in changeset.
Split up `ComponentModelBasePlugin` to 2 separate plugins: one which deals with the very base `ComponentSpec` type and infrastructure, and one which deals with the higher level component types such as `LibrarySpec` and `ApplicationSpec`.

  1. … 14 more files in changeset.
Ensure that the various core component types can be used to create model elements.

  1. … 4 more files in changeset.
Changed the `ModelMap` 'cannot add element of unknown type' error message to list only those known types for which it is actually possible to use to create an element.

In particular, filters those types that don't satisfy all the type constraints for the map.

This change allows a more general hierarchy to be handled by particular registry, while providing somewhat useful error messages when a more specific hierarchy is required.

    • -2
    • +131
    ./ModelMapIntegrationTest.groovy
  1. … 23 more files in changeset.
Replaced most usages of `BinaryTypeBuilder` and `ComponentTypeBuilder` with the more general `TypeBuilder`.

  1. … 48 more files in changeset.
Fix redundant rule descriptor in error message

+review REVIEW-5801

  1. … 1 more file in changeset.
Better error message when trying to create element in ModelMap with unknown type

+review REVIEW-5801

  1. … 8 more files in changeset.
Test for error message when creating unknown type in model map

Seems like this is already property implemented.

+review REVIEW-5801

Better way to test parametrized model map element types

+review REVIEW-5799

  1. … 1 more file in changeset.
Better way to test parametrized model map element types

+review REVIEW-5799

  1. … 1 more file in changeset.
NodeBackedModelMap.create() to respect chained filtering

Previously NodeBackedModelMap’s create() methods didn’t take filtering

into account, and allowed creating any type that the underlying factory

was able to construct. Now that is fixed. Further update is coming to

make the resulting error message nicer.

+review REVIEW-5738

  1. … 4 more files in changeset.
Add tests for model maps

This is to cover some cases in gradle/langos#82

    • -0
    • +83
    ./ModelMapIntegrationTest.groovy