Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for NotATask (0.23 sec)

  1. subprojects/core/src/test/groovy/org/gradle/api/internal/project/taskfactory/TaskFactoryTest.groovy

        }
    
        void testCreateTaskForTypeWhichDoesNotImplementTask() {
            when:
            taskFactory.create(new TaskIdentity(NotATask, 'task', null, Path.path(':task'), null, 12))
    
            then:
            InvalidUserDataException e = thrown()
            e.message == "Cannot create task ':task' of type 'NotATask' as it does not implement the Task interface."
        }
    
        void testCreateTaskForUnsupportedType() {
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 25 21:08:17 UTC 2022
    - 4.9K bytes
    - Viewed (0)
  2. subprojects/core/src/test/groovy/org/gradle/api/internal/tasks/DefaultTaskContainerTest.groovy

            when:
            container.create([name: 'task', Type: NotATask])
    
            then:
            exception = thrown()
            exception.message == "Could not create task 'task': Unknown argument(s) in task definition: [Type]"
        }
    
        static class NotATask {
        }
    
        void 'can create task with Action'() {
            Action<Task> action = Mock()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 17 14:36:44 UTC 2024
    - 44.9K bytes
    - Viewed (0)
Back to top