JetBrains IntelliJ Gradle Dependencies Plugin

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.005 seconds

TestSubject:

Issues:

See:

Features


should map a gradle configuration

Result: PASS Time: 0.003 seconds

def mock = Mock(org.gradle.api.artifacts.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 Configuration
model.name() == 'configurationName'
noExceptionThrown()