fun testConfigurations()

in project-system-gradle-psd/testSrc/com/android/tools/idea/gradle/structure/model/android/PsAndroidModuleTest.kt [1097:1395]


  fun testConfigurations() {
    val preparedProject = projectRule.prepareTestProject(AndroidCoreTestProject.PSD_SAMPLE_GROOVY)
    projectRule.psTestWithProject(preparedProject) {
      val appModule = moduleWithSyncedModel(project, "app")
      assertNotNull(appModule)

      assertThat(appModule.getConfigurations()).containsExactly(
        "implementation",
        "releaseImplementation",
        "specialReleaseImplementation",
        "debugImplementation",
        "basicImplementation",
        "paidImplementation",
        "barImplementation",
        "otherBarImplementation",
        "basicBarImplementation",
        "basicBarReleaseImplementation",
        "basicBarSpecialReleaseImplementation",
        "basicBarDebugImplementation",
        "paidBarImplementation",
        "paidBarReleaseImplementation",
        "paidBarSpecialReleaseImplementation",
        "paidBarDebugImplementation",
        "basicOtherBarImplementation",
        "basicOtherBarReleaseImplementation",
        "basicOtherBarSpecialReleaseImplementation",
        "basicOtherBarDebugImplementation",
        "paidOtherBarImplementation",
        "paidOtherBarReleaseImplementation",
        "paidOtherBarSpecialReleaseImplementation",
        "paidOtherBarDebugImplementation",
        "testImplementation",
        "testReleaseImplementation",
        "testSpecialReleaseImplementation",
        "testDebugImplementation",
        "testBasicImplementation",
        "testPaidImplementation",
        "testBarImplementation",
        "testOtherBarImplementation",
        "testBasicBarImplementation",
        "testBasicBarReleaseImplementation",
        "testBasicBarSpecialReleaseImplementation",
        "testBasicBarDebugImplementation",
        "testPaidBarImplementation",
        "testPaidBarReleaseImplementation",
        "testPaidBarSpecialReleaseImplementation",
        "testPaidBarDebugImplementation",
        "testBasicOtherBarImplementation",
        "testBasicOtherBarReleaseImplementation",
        "testBasicOtherBarSpecialReleaseImplementation",
        "testBasicOtherBarDebugImplementation",
        "testPaidOtherBarImplementation",
        "testPaidOtherBarReleaseImplementation",
        "testPaidOtherBarSpecialReleaseImplementation",
        "testPaidOtherBarDebugImplementation",
        "androidTestImplementation",
        "androidTestBasicImplementation",
        "androidTestPaidImplementation",
        "androidTestBarImplementation",
        "androidTestBasicBarImplementation",
        "androidTestPaidBarImplementation",
        "androidTestOtherBarImplementation",
        "androidTestBasicOtherBarImplementation",
        "androidTestPaidOtherBarImplementation",

        "api",
        "releaseApi",
        "specialReleaseApi",
        "debugApi",
        "basicApi",
        "paidApi",
        "barApi",
        "otherBarApi",
        "basicBarApi",
        "basicBarReleaseApi",
        "basicBarSpecialReleaseApi",
        "basicBarDebugApi",
        "paidBarApi",
        "paidBarReleaseApi",
        "paidBarSpecialReleaseApi",
        "paidBarDebugApi",
        "basicOtherBarApi",
        "basicOtherBarReleaseApi",
        "basicOtherBarSpecialReleaseApi",
        "basicOtherBarDebugApi",
        "paidOtherBarApi",
        "paidOtherBarReleaseApi",
        "paidOtherBarSpecialReleaseApi",
        "paidOtherBarDebugApi",
        "testApi",
        "testReleaseApi",
        "testSpecialReleaseApi",
        "testDebugApi",
        "testBasicApi",
        "testPaidApi",
        "testBarApi",
        "testOtherBarApi",
        "testBasicBarApi",
        "testBasicBarReleaseApi",
        "testBasicBarSpecialReleaseApi",
        "testBasicBarDebugApi",
        "testPaidBarApi",
        "testPaidBarReleaseApi",
        "testPaidBarSpecialReleaseApi",
        "testPaidBarDebugApi",
        "testBasicOtherBarApi",
        "testBasicOtherBarReleaseApi",
        "testBasicOtherBarSpecialReleaseApi",
        "testBasicOtherBarDebugApi",
        "testPaidOtherBarApi",
        "testPaidOtherBarReleaseApi",
        "testPaidOtherBarSpecialReleaseApi",
        "testPaidOtherBarDebugApi",
        "androidTestApi",
        "androidTestBasicApi",
        "androidTestPaidApi",
        "androidTestBarApi",
        "androidTestBasicBarApi",
        "androidTestPaidBarApi",
        "androidTestOtherBarApi",
        "androidTestBasicOtherBarApi",
        "androidTestPaidOtherBarApi",

        "compileOnly",
        "releaseCompileOnly",
        "specialReleaseCompileOnly",
        "debugCompileOnly",
        "basicCompileOnly",
        "paidCompileOnly",
        "barCompileOnly",
        "otherBarCompileOnly",
        "basicBarCompileOnly",
        "basicBarReleaseCompileOnly",
        "basicBarSpecialReleaseCompileOnly",
        "basicBarDebugCompileOnly",
        "paidBarCompileOnly",
        "paidBarReleaseCompileOnly",
        "paidBarSpecialReleaseCompileOnly",
        "paidBarDebugCompileOnly",
        "basicOtherBarCompileOnly",
        "basicOtherBarReleaseCompileOnly",
        "basicOtherBarSpecialReleaseCompileOnly",
        "basicOtherBarDebugCompileOnly",
        "paidOtherBarCompileOnly",
        "paidOtherBarReleaseCompileOnly",
        "paidOtherBarSpecialReleaseCompileOnly",
        "paidOtherBarDebugCompileOnly",
        "testCompileOnly",
        "testReleaseCompileOnly",
        "testSpecialReleaseCompileOnly",
        "testDebugCompileOnly",
        "testBasicCompileOnly",
        "testPaidCompileOnly",
        "testBarCompileOnly",
        "testOtherBarCompileOnly",
        "testBasicBarCompileOnly",
        "testBasicBarReleaseCompileOnly",
        "testBasicBarSpecialReleaseCompileOnly",
        "testBasicBarDebugCompileOnly",
        "testPaidBarCompileOnly",
        "testPaidBarReleaseCompileOnly",
        "testPaidBarSpecialReleaseCompileOnly",
        "testPaidBarDebugCompileOnly",
        "testBasicOtherBarCompileOnly",
        "testBasicOtherBarReleaseCompileOnly",
        "testBasicOtherBarSpecialReleaseCompileOnly",
        "testBasicOtherBarDebugCompileOnly",
        "testPaidOtherBarCompileOnly",
        "testPaidOtherBarReleaseCompileOnly",
        "testPaidOtherBarSpecialReleaseCompileOnly",
        "testPaidOtherBarDebugCompileOnly",
        "androidTestCompileOnly",
        "androidTestBasicCompileOnly",
        "androidTestPaidCompileOnly",
        "androidTestBarCompileOnly",
        "androidTestBasicBarCompileOnly",
        "androidTestPaidBarCompileOnly",
        "androidTestOtherBarCompileOnly",
        "androidTestBasicOtherBarCompileOnly",
        "androidTestPaidOtherBarCompileOnly",

        "runtimeOnly",
        "releaseRuntimeOnly",
        "specialReleaseRuntimeOnly",
        "debugRuntimeOnly",
        "basicRuntimeOnly",
        "paidRuntimeOnly",
        "barRuntimeOnly",
        "otherBarRuntimeOnly",
        "basicBarRuntimeOnly",
        "basicBarReleaseRuntimeOnly",
        "basicBarSpecialReleaseRuntimeOnly",
        "basicBarDebugRuntimeOnly",
        "paidBarRuntimeOnly",
        "paidBarReleaseRuntimeOnly",
        "paidBarSpecialReleaseRuntimeOnly",
        "paidBarDebugRuntimeOnly",
        "basicOtherBarRuntimeOnly",
        "basicOtherBarReleaseRuntimeOnly",
        "basicOtherBarSpecialReleaseRuntimeOnly",
        "basicOtherBarDebugRuntimeOnly",
        "paidOtherBarRuntimeOnly",
        "paidOtherBarReleaseRuntimeOnly",
        "paidOtherBarSpecialReleaseRuntimeOnly",
        "paidOtherBarDebugRuntimeOnly",
        "testRuntimeOnly",
        "testReleaseRuntimeOnly",
        "testSpecialReleaseRuntimeOnly",
        "testDebugRuntimeOnly",
        "testBasicRuntimeOnly",
        "testPaidRuntimeOnly",
        "testBarRuntimeOnly",
        "testOtherBarRuntimeOnly",
        "testBasicBarRuntimeOnly",
        "testBasicBarReleaseRuntimeOnly",
        "testBasicBarSpecialReleaseRuntimeOnly",
        "testBasicBarDebugRuntimeOnly",
        "testPaidBarRuntimeOnly",
        "testPaidBarReleaseRuntimeOnly",
        "testPaidBarSpecialReleaseRuntimeOnly",
        "testPaidBarDebugRuntimeOnly",
        "testBasicOtherBarRuntimeOnly",
        "testBasicOtherBarReleaseRuntimeOnly",
        "testBasicOtherBarSpecialReleaseRuntimeOnly",
        "testBasicOtherBarDebugRuntimeOnly",
        "testPaidOtherBarRuntimeOnly",
        "testPaidOtherBarReleaseRuntimeOnly",
        "testPaidOtherBarSpecialReleaseRuntimeOnly",
        "testPaidOtherBarDebugRuntimeOnly",
        "androidTestRuntimeOnly",
        "androidTestBasicRuntimeOnly",
        "androidTestPaidRuntimeOnly",
        "androidTestBarRuntimeOnly",
        "androidTestBasicBarRuntimeOnly",
        "androidTestPaidBarRuntimeOnly",
        "androidTestOtherBarRuntimeOnly",
        "androidTestBasicOtherBarRuntimeOnly",
        "androidTestPaidOtherBarRuntimeOnly",

        "annotationProcessor",
        "releaseAnnotationProcessor",
        "specialReleaseAnnotationProcessor",
        "debugAnnotationProcessor",
        "basicAnnotationProcessor",
        "paidAnnotationProcessor",
        "barAnnotationProcessor",
        "otherBarAnnotationProcessor",
        "basicBarAnnotationProcessor",
        "basicBarReleaseAnnotationProcessor",
        "basicBarSpecialReleaseAnnotationProcessor",
        "basicBarDebugAnnotationProcessor",
        "paidBarAnnotationProcessor",
        "paidBarReleaseAnnotationProcessor",
        "paidBarSpecialReleaseAnnotationProcessor",
        "paidBarDebugAnnotationProcessor",
        "basicOtherBarAnnotationProcessor",
        "basicOtherBarReleaseAnnotationProcessor",
        "basicOtherBarSpecialReleaseAnnotationProcessor",
        "basicOtherBarDebugAnnotationProcessor",
        "paidOtherBarAnnotationProcessor",
        "paidOtherBarReleaseAnnotationProcessor",
        "paidOtherBarSpecialReleaseAnnotationProcessor",
        "paidOtherBarDebugAnnotationProcessor",
        "testAnnotationProcessor",
        "testReleaseAnnotationProcessor",
        "testSpecialReleaseAnnotationProcessor",
        "testDebugAnnotationProcessor",
        "testBasicAnnotationProcessor",
        "testPaidAnnotationProcessor",
        "testBarAnnotationProcessor",
        "testOtherBarAnnotationProcessor",
        "testBasicBarAnnotationProcessor",
        "testBasicBarReleaseAnnotationProcessor",
        "testBasicBarSpecialReleaseAnnotationProcessor",
        "testBasicBarDebugAnnotationProcessor",
        "testPaidBarAnnotationProcessor",
        "testPaidBarReleaseAnnotationProcessor",
        "testPaidBarSpecialReleaseAnnotationProcessor",
        "testPaidBarDebugAnnotationProcessor",
        "testBasicOtherBarAnnotationProcessor",
        "testBasicOtherBarReleaseAnnotationProcessor",
        "testBasicOtherBarSpecialReleaseAnnotationProcessor",
        "testBasicOtherBarDebugAnnotationProcessor",
        "testPaidOtherBarAnnotationProcessor",
        "testPaidOtherBarReleaseAnnotationProcessor",
        "testPaidOtherBarSpecialReleaseAnnotationProcessor",
        "testPaidOtherBarDebugAnnotationProcessor",
        "androidTestAnnotationProcessor",
        "androidTestBasicAnnotationProcessor",
        "androidTestPaidAnnotationProcessor",
        "androidTestBarAnnotationProcessor",
        "androidTestBasicBarAnnotationProcessor",
        "androidTestPaidBarAnnotationProcessor",
        "androidTestOtherBarAnnotationProcessor",
        "androidTestBasicOtherBarAnnotationProcessor",
        "androidTestPaidOtherBarAnnotationProcessor"
      )
    }
  }