use of org.gradle.api.internal.TaskInputsInternal in project gradle by gradle.
the class DependencyAutoWireTaskFactoryTest method addsDependencyOnInputFiles.
@Test
public void addsDependencyOnInputFiles() {
final TaskInternal task = context.mock(TaskInternal.class);
final TaskInputsInternal taskInputs = context.mock(TaskInputsInternal.class);
final FileCollection inputFiles = context.mock(FileCollection.class);
context.checking(new Expectations() {
{
one(delegate).createTask(map());
will(returnValue(task));
allowing(task).getInputs();
will(returnValue(taskInputs));
allowing(taskInputs).getFiles();
will(returnValue(inputFiles));
one(task).dependsOn(inputFiles);
}
});
assertThat(factory.createTask(map()), sameInstance(task));
}
Aggregations