BuildControllerAdapterTest.groovy

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
spelling: parameterized

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

  1. … 14 more files in changeset.
Improve error messages for ToolingParameterProxy

ToolingParameterProxy#isValid is replaced by #validateParameter which instead

of returning a boolean indicating if the given Class<?> is a valid parameter

type, it throws an error with a precise description message if not valid.

  1. … 3 more files in changeset.
Fix test expectation

Improve error messages in BuildControllerAdapter

    • -6
    • +25
    ./BuildControllerAdapterTest.groovy
  1. … 7 more files in changeset.
Code clean up for parameterized models

Refactorings and code clean up folloiwing commit "Introduce creation of

parameterized tooling models"

    • -9
    • +73
    ./BuildControllerAdapterTest.groovy
  1. … 26 more files in changeset.
Apply all model mixins in build actions

Up until now many compatibilty mappings were only applied

when calling `ProjectConnection.getModel()`, but not when using

`BuildController.getModel()`. As a result, models retrieved by

a build action were less user friendly.

Both code paths now use the same compatibility mapping logic.

  1. … 30 more files in changeset.
Fixed broken unit test.

Provide ProjectIdentifier to models retrieved by model action

The BuildControllerAdapter is provided with the root directory of the build

and provides the project identifier when adapting models created by the BuildController.

  1. … 7 more files in changeset.
Moved the new tooling model types into a `gradle` subpackage.

  1. … 18 more files in changeset.
Changed BuildController.getModel(target, type) so that it understands `GradleProject`, `IdeaModule` and `EclipseProject` as targets.

Also added findModel() variants for each getModel() method.

    • -5
    • +27
    ./BuildControllerAdapterTest.groovy
  1. … 17 more files in changeset.
Wired up `BuildController.getModel(target, type)`.

    • -5
    • +29
    ./BuildControllerAdapterTest.groovy
  1. … 12 more files in changeset.
Fleshed out the `GradleBuild` tooling model.

  1. … 9 more files in changeset.
Added some methods (with dummy implementations) to `BuildController` to allow models from a particular project to be requested.

    • -2
    • +34
    ./BuildControllerAdapterTest.groovy
  1. … 6 more files in changeset.
Busted out the protocol -> consumer and provider -> protocol adapters for BuildController to top-level classes and added some coverage.

    • -0
    • +44
    ./BuildControllerAdapterTest.groovy
  1. … 10 more files in changeset.