AbstractTaskTest.groovy

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Allow replacing task actions

The overload for List.set was missing from our decorating

action list, which makes it harder to replace a specific action.

  1. … 1 more file in changeset.
Allow replacing task actions

The overload for List.set was missing from our decorating

action list, which makes it harder to replace a specific action.

  1. … 1 more file in changeset.
Separate `ITaskFactory` from `NamedEntityInstantiator<Task>` so that the instantiator is applied as a decoration over the factory.

  1. … 37 more files in changeset.
Remove Task.deleteAllActions

  1. … 6 more files in changeset.
Stop using atomic types in non-thread-safe contexts (#5813)

- Replace AtomicReference with MutableReference

- Replace AtomicBoolean with MutableBoolean

  1. … 17 more files in changeset.
Allow creation of Task with constructor arguments (#4809)

* Allow creation of Task with constructor arguments

Rough spike on exposing constructor arguments in Task creation DSL

Fixed codestyle failure

Fixed binary compatibility failure

Fixed docs checkstyle on Task.TASK_PARAMS

Fixed infinite recursion

Fixed "broken" tests

Rename TASK_PARAMS to TASK_CONSTRUCTOR_ARGS

Add TaskContainer.create(String, Class<>, Object...)

Add better description to TaskContainer.create(String, Class, Object...)

Add @since & @Incubating to TaskContainer.create(String, Class, Object...)

Ignore some tests of DependencyInjectingInstantiator whose output *should* change

Fix tests in DefaultTaskContainerTest

Avoid explicit cast of DirectInstantiator.INSTANCE to DirectInstantiator

Back out addition of NamedEntityInstantiator.create(String, Class, Object...)

Fix omitting constructorArgs from previous cleanup

Revert DefaultTaskCollection.create(String, Class) to use instantiator

Revert optimize import

Fail if constructorArgs is not a List<> or Object[]

Remove handling of non-@Inject constructor with constructor args

Revert DependencyInjectingInstantiatorTest

Move TaskInternal logic from DefaultTaskContainer to TaskFactory

Make ITaskFactory extend NamedEntityInstantiator again

* Fix AnnotationProcessingTaskFactory.create(String, Class) double-processing

* Update DefaultTaskContainerTest to use ITaskFactory.createTask() for some mocks

* Reduce size of ITaskFactory interface

* Add DefaultTaskContainer.createTask() to avoid adding task multiple times

* Fix test failures related to removing ITaskFactory.createTask(Map)

* Optimize imports

* Optimize imports

* Fix test failures related to removing ITaskFactory.createTask(Map)

* Add tests for Task constructor arguments in Groovy build script

* Add tests for Task constructor arguments in Java plugin via API

* Add tests for Task constructor arguments in Kotlin build script

* Add tests that check for constructorArgs being List or Object[]

  1. … 14 more files in changeset.
Remove usage of Task.execute from tests

  1. … 29 more files in changeset.
Added method to `TestUtil` to get hold of an `ObjectFactory` to use in unit tests, rather than recreating a bunch of stuff in the unit test.

  1. … 2 more files in changeset.
Use test fixture to create `Instantiator` in unit test, rather than assembling the pieces from scratch.

  1. … 1 more file in changeset.
Convert Ear plugin to use public ObjectFactory instead of internal Instantiator

  1. … 6 more files in changeset.
Make task creation cheaper

  1. … 5 more files in changeset.
AbstractTaskTest isa AbstractProjectBuilderSpec

- This change converts the entire class hierarchy under AbstractTaskTest

to extend from AbstractProjectBuilderSpec.

- This should ensure that fewer files are left behind by tests, and the

temporary directory names actually match their testclass/method names.

    • -0
    • +289
    ./AbstractTaskTest.groovy
  1. … 33 more files in changeset.