Sha256: 7f9e1a6467cef873571f7c0e7d470f3ffed82449dd7e89aa4b649f977a3d2265

Contents?: true

Size: 1.21 KB

Versions: 12

Compression:

Stored size: 1.21 KB

Contents

require_relative '../../support/feature_helper'

describe 'Gradle Dependencies' do
  # As a Java developer
  # I want to be able to manage Gradle dependencies

  let(:java_developer) { LicenseFinder::TestingDSL::User.new }

  specify 'are shown in reports for a single-module project' do
    LicenseFinder::TestingDSL::GradleProject.create
    java_developer.run_license_finder('single-module-gradle')
    expect(java_developer).to be_seeing_line 'junit, 4.11, "Common Public License Version 1.0"'
  end

  specify 'are shown in reports for a multi-module project' do
    LicenseFinder::TestingDSL::GradleProject::MultiModule.create
    java_developer.run_license_finder('multi-module-gradle')
    expect(java_developer).to be_seeing_line 'junit, 4.12, "Eclipse Public License 1.0"'
    expect(java_developer).to be_seeing_line 'mockito-core, 1.9.5, "The MIT License"'
  end

  specify 'show both file-based jars and downloaded dependencies' do
    LicenseFinder::TestingDSL::GradleProject::FileBasedLibs.create
    java_developer.run_license_finder('file-based-libs-gradle')
    expect(java_developer).to be_seeing_line 'data.json-0.2.3.jar, unknown, unknown'
    expect(java_developer).to be_seeing_line 'guava, 18.0, "Apache 2.0"'
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
license_finder-2.1.2 features/features/package_managers/gradle_spec.rb
license_finder-2.1.1 features/features/package_managers/gradle_spec.rb
license_finder-2.1.0 features/features/package_managers/gradle_spec.rb
license_finder-2.1.0.rc9 features/features/package_managers/gradle_spec.rb
license_finder-2.1.0.rc8 features/features/package_managers/gradle_spec.rb
license_finder-2.1.0.rc7 features/features/package_managers/gradle_spec.rb
license_finder-2.1.0.rc6 features/features/package_managers/gradle_spec.rb
license_finder-2.1.0.rc5 features/features/package_managers/gradle_spec.rb
license_finder-2.1.0.rc4 features/features/package_managers/gradle_spec.rb
license_finder-2.1.0.rc3 features/features/package_managers/gradle_spec.rb
license_finder-2.1.0.rc2 features/features/package_managers/gradle_spec.rb
license_finder-2.1.0.rc1 features/features/package_managers/gradle_spec.rb