ModelPathTest.groovy

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
More optimizations around ModelPath

  1. … 2 more files in changeset.
Restore ability to have dots in `ModelPath` components

This fixes a regression, where tasks could have dots in names.

+review REVIEW-5921

  1. … 3 more files in changeset.
Fix broken unit tests

This commit also removes a weird behavior of `ModelPath` that supported dots in names. This is very confusing and caused the discovery

of the 2 other broken tests fixed in this commit.

+review REVIEW-5921

  1. … 2 more files in changeset.
Reworked a couple of hotspots on ModelPath.

  1. … 1 more file in changeset.
Removed some unused methods.

  1. … 1 more file in changeset.
Added MutableModelNode.applyToAllLinksTransitive() to allow an action to be applied to all descendants of a particular type for a given node

  1. … 5 more files in changeset.
Use a better name for the method which creates descendant paths.

+review REVIEW-5353

  1. … 3 more files in changeset.
Collection mutation rule specifies input taking mutation rule for particular model element

+review REVIEW-5353

  1. … 68 more files in changeset.
Added a root node to the model graph and cleaned up MutableModelNode so that links are always added using a ModelCreator.

This means all graph additions are done by linking a node from another node, and so we can apply consistent validation and behaviour.

  1. … 10 more files in changeset.
Some changes to allow ModelPath to better deal with name components that aren't well formed (eg task names).

  1. … 1 more file in changeset.
Better error messages for invalid model paths.

+review REVIEW-5034

  1. … 3 more files in changeset.
Allow @Model annotations to create elements at a nested path.

More work to be done on a better error message when the path is invalid.

+review REVIEW-5034

  1. … 3 more files in changeset.
Validate model element names.

Model element names must be [a-zA-Z_][a-zA-Z0-9_]*

+review REVIEW-5034

    • -0
    • +80
    ./ModelPathTest.groovy
  1. … 7 more files in changeset.