fun testConfigurationRequiresWorkaround()

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


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

      assertThat(appModule.getConfigurations().filter { appModule.configurationRequiresWorkaround(it) }).containsExactly(
        "basicBarImplementation",
        "basicBarReleaseImplementation",
        "basicBarSpecialReleaseImplementation",
        "basicBarDebugImplementation",
        "paidBarImplementation",
        "paidBarReleaseImplementation",
        "paidBarSpecialReleaseImplementation",
        "paidBarDebugImplementation",
        "basicOtherBarImplementation",
        "basicOtherBarReleaseImplementation",
        "basicOtherBarSpecialReleaseImplementation",
        "basicOtherBarDebugImplementation",
        "paidOtherBarImplementation",
        "paidOtherBarReleaseImplementation",
        "paidOtherBarSpecialReleaseImplementation",
        "paidOtherBarDebugImplementation",

        "testBasicBarImplementation",
        "testBasicBarReleaseImplementation",
        "testBasicBarSpecialReleaseImplementation",
        "testBasicBarDebugImplementation",
        "testPaidBarImplementation",
        "testPaidBarReleaseImplementation",
        "testPaidBarSpecialReleaseImplementation",
        "testPaidBarDebugImplementation",
        "testBasicOtherBarImplementation",
        "testBasicOtherBarReleaseImplementation",
        "testBasicOtherBarSpecialReleaseImplementation",
        "testBasicOtherBarDebugImplementation",
        "testPaidOtherBarImplementation",
        "testPaidOtherBarReleaseImplementation",
        "testPaidOtherBarSpecialReleaseImplementation",
        "testPaidOtherBarDebugImplementation",

        "androidTestBasicBarImplementation",
        "androidTestPaidBarImplementation",
        "androidTestBasicOtherBarImplementation",
        "androidTestPaidOtherBarImplementation",

        "basicBarApi",
        "basicBarReleaseApi",
        "basicBarSpecialReleaseApi",
        "basicBarDebugApi",
        "paidBarApi",
        "paidBarReleaseApi",
        "paidBarSpecialReleaseApi",
        "paidBarDebugApi",
        "basicOtherBarApi",
        "basicOtherBarReleaseApi",
        "basicOtherBarSpecialReleaseApi",
        "basicOtherBarDebugApi",
        "paidOtherBarApi",
        "paidOtherBarReleaseApi",
        "paidOtherBarSpecialReleaseApi",
        "paidOtherBarDebugApi",
        "testBasicBarApi",
        "testBasicBarReleaseApi",
        "testBasicBarSpecialReleaseApi",
        "testBasicBarDebugApi",
        "testPaidBarApi",
        "testPaidBarReleaseApi",
        "testPaidBarSpecialReleaseApi",
        "testPaidBarDebugApi",
        "testBasicOtherBarApi",
        "testBasicOtherBarReleaseApi",
        "testBasicOtherBarSpecialReleaseApi",
        "testBasicOtherBarDebugApi",
        "testPaidOtherBarApi",
        "testPaidOtherBarReleaseApi",
        "testPaidOtherBarSpecialReleaseApi",
        "testPaidOtherBarDebugApi",
        "androidTestBasicBarApi",
        "androidTestPaidBarApi",
        "androidTestBasicOtherBarApi",
        "androidTestPaidOtherBarApi",

        "basicBarCompileOnly",
        "basicBarReleaseCompileOnly",
        "basicBarSpecialReleaseCompileOnly",
        "basicBarDebugCompileOnly",
        "paidBarCompileOnly",
        "paidBarReleaseCompileOnly",
        "paidBarSpecialReleaseCompileOnly",
        "paidBarDebugCompileOnly",
        "basicOtherBarCompileOnly",
        "basicOtherBarReleaseCompileOnly",
        "basicOtherBarSpecialReleaseCompileOnly",
        "basicOtherBarDebugCompileOnly",
        "paidOtherBarCompileOnly",
        "paidOtherBarReleaseCompileOnly",
        "paidOtherBarSpecialReleaseCompileOnly",
        "paidOtherBarDebugCompileOnly",
        "testBasicBarCompileOnly",
        "testBasicBarReleaseCompileOnly",
        "testBasicBarSpecialReleaseCompileOnly",
        "testBasicBarDebugCompileOnly",
        "testPaidBarCompileOnly",
        "testPaidBarReleaseCompileOnly",
        "testPaidBarSpecialReleaseCompileOnly",
        "testPaidBarDebugCompileOnly",
        "testBasicOtherBarCompileOnly",
        "testBasicOtherBarReleaseCompileOnly",
        "testBasicOtherBarSpecialReleaseCompileOnly",
        "testBasicOtherBarDebugCompileOnly",
        "testPaidOtherBarCompileOnly",
        "testPaidOtherBarReleaseCompileOnly",
        "testPaidOtherBarSpecialReleaseCompileOnly",
        "testPaidOtherBarDebugCompileOnly",
        "androidTestBasicBarCompileOnly",
        "androidTestPaidBarCompileOnly",
        "androidTestBasicOtherBarCompileOnly",
        "androidTestPaidOtherBarCompileOnly",

        "basicBarRuntimeOnly",
        "basicBarReleaseRuntimeOnly",
        "basicBarSpecialReleaseRuntimeOnly",
        "basicBarDebugRuntimeOnly",
        "paidBarRuntimeOnly",
        "paidBarReleaseRuntimeOnly",
        "paidBarSpecialReleaseRuntimeOnly",
        "paidBarDebugRuntimeOnly",
        "basicOtherBarRuntimeOnly",
        "basicOtherBarReleaseRuntimeOnly",
        "basicOtherBarSpecialReleaseRuntimeOnly",
        "basicOtherBarDebugRuntimeOnly",
        "paidOtherBarRuntimeOnly",
        "paidOtherBarReleaseRuntimeOnly",
        "paidOtherBarSpecialReleaseRuntimeOnly",
        "paidOtherBarDebugRuntimeOnly",
        "testBasicBarRuntimeOnly",
        "testBasicBarReleaseRuntimeOnly",
        "testBasicBarSpecialReleaseRuntimeOnly",
        "testBasicBarDebugRuntimeOnly",
        "testPaidBarRuntimeOnly",
        "testPaidBarReleaseRuntimeOnly",
        "testPaidBarSpecialReleaseRuntimeOnly",
        "testPaidBarDebugRuntimeOnly",
        "testBasicOtherBarRuntimeOnly",
        "testBasicOtherBarReleaseRuntimeOnly",
        "testBasicOtherBarSpecialReleaseRuntimeOnly",
        "testBasicOtherBarDebugRuntimeOnly",
        "testPaidOtherBarRuntimeOnly",
        "testPaidOtherBarReleaseRuntimeOnly",
        "testPaidOtherBarSpecialReleaseRuntimeOnly",
        "testPaidOtherBarDebugRuntimeOnly",
        "androidTestBasicBarRuntimeOnly",
        "androidTestPaidBarRuntimeOnly",
        "androidTestBasicOtherBarRuntimeOnly",
        "androidTestPaidOtherBarRuntimeOnly",

        "basicBarAnnotationProcessor",
        "basicBarReleaseAnnotationProcessor",
        "basicBarSpecialReleaseAnnotationProcessor",
        "basicBarDebugAnnotationProcessor",
        "paidBarAnnotationProcessor",
        "paidBarReleaseAnnotationProcessor",
        "paidBarSpecialReleaseAnnotationProcessor",
        "paidBarDebugAnnotationProcessor",
        "basicOtherBarAnnotationProcessor",
        "basicOtherBarReleaseAnnotationProcessor",
        "basicOtherBarSpecialReleaseAnnotationProcessor",
        "basicOtherBarDebugAnnotationProcessor",
        "paidOtherBarAnnotationProcessor",
        "paidOtherBarReleaseAnnotationProcessor",
        "paidOtherBarSpecialReleaseAnnotationProcessor",
        "paidOtherBarDebugAnnotationProcessor",
        "testBasicBarAnnotationProcessor",
        "testBasicBarReleaseAnnotationProcessor",
        "testBasicBarSpecialReleaseAnnotationProcessor",
        "testBasicBarDebugAnnotationProcessor",
        "testPaidBarAnnotationProcessor",
        "testPaidBarReleaseAnnotationProcessor",
        "testPaidBarSpecialReleaseAnnotationProcessor",
        "testPaidBarDebugAnnotationProcessor",
        "testBasicOtherBarAnnotationProcessor",
        "testBasicOtherBarReleaseAnnotationProcessor",
        "testBasicOtherBarSpecialReleaseAnnotationProcessor",
        "testBasicOtherBarDebugAnnotationProcessor",
        "testPaidOtherBarAnnotationProcessor",
        "testPaidOtherBarReleaseAnnotationProcessor",
        "testPaidOtherBarSpecialReleaseAnnotationProcessor",
        "testPaidOtherBarDebugAnnotationProcessor",
        "androidTestBasicBarAnnotationProcessor",
        "androidTestPaidBarAnnotationProcessor",
        "androidTestBasicOtherBarAnnotationProcessor",
        "androidTestPaidOtherBarAnnotationProcessor"
      )
    }
  }