Gradle Dependencies Check

Specification run results

View on GitHub

As a user I would like to map a Gradle configuration to a model using a custom mapper.

Total Runs Success Rate Failures Errors Skipped Total time (ms)
1 100.0% 0 0 0 0.011 seconds

TestSubject:

Issues:

See:

Features


should map a gradle configuration

Result: PASS Time: 0.006 seconds

def mock = Mock(Configuration)
def mockedDependencySet = Mock(DependencySet)
def model = testSubject.map(mock)
interaction {
    1 * mock.getName() >> 'configurationName'
    1 * mock.getDependencies() >> mockedDependencySet
    1 * mockedDependencySet.stream() >> Stream.empty()
}
model instanceof io.github.gregoranders.gradle.dependencies.tooling.model.api.Configuration
model.name() == 'configurationName'
noExceptionThrown()