<commit_before>package pl.droidsonroids.gradle.jenkins

import com.android.build.gradle.AppExtension
import com.android.builder.core.DefaultBuildType
import com.android.builder.core.DefaultProductFlavor
import com.android.builder.model.ProductFlavor
import org.junit.Test
import static org.assertj.core.api.Assertions.*;

public class JenkinsPluginTest extends BasePluginTest {

    @Test
    void testAddJenkinsTestableBuildType() {
        DefaultBuildType buildType = new DefaultBuildType("test")
        buildType.jenkinsTestable true
        assertThat(buildType.isJenkinsTestable).isTrue()
    }

    @Test
    void testAddJenkinsTestableFlavor() {
        ProductFlavor flavor = new DefaultProductFlavor("test")
        flavor.jenkinsTestable true
        assertThat(flavor.isJenkinsTestable).isTrue()
    }

    @Test
    void testBuildTypeOverriding() {
        android.buildTypes.create('dev', {
            jenkinsTestable true
        })
        android.buildTypes.create('store', {
            jenkinsTestable false
        })
        android.productFlavors.create('staging', {
            jenkinsTestable true
        })
        android.productFlavors.create('production', {
            jenkinsTestable false
        })
        project.evaluate()
        def expectedTestableVariantNames = ['productionDev',
                                            'productionJenkinsRelease',
                                            'stagingDebug',
                                            'stagingDev',
                                            'stagingRelease',
                                            'stagingJenkinsRelease']
        def testableVariantNames = []
        project.tasks.getByName(MonkeyTask.MONKEY_TASK_NAME).applicationVariants.each { testableVariantNames.add it.name }
        assertThat(testableVariantNames).hasSameElementsAs(expectedTestableVariantNames)
    }
}<commit_msg>tests adjusted to new behavior<commit_after>package pl.droidsonroids.gradle.jenkins

import com.android.builder.core.DefaultBuildType
import com.android.builder.core.DefaultProductFlavor
import com.android.builder.model.ProductFlavor
import org.junit.Test

import static org.assertj.core.api.Assertions.assertThat

public class JenkinsPluginTest extends BasePluginTest {

    @Test
    void testAddJenkinsTestableBuildType() {
        DefaultBuildType buildType = new DefaultBuildType("test")
        buildType.jenkinsTestable true
        assertThat(buildType.isJenkinsTestable).isTrue()
    }

    @Test
    void testAddJenkinsTestableFlavor() {
        ProductFlavor flavor = new DefaultProductFlavor("test")
        flavor.jenkinsTestable true
        assertThat(flavor.isJenkinsTestable).isTrue()
    }

    @Test
    void testBuildTypeOverriding() {
        android.buildTypes.create('dev', {
            jenkinsTestable true
        })
        android.buildTypes.create('store', {
            jenkinsTestable false
        })
        android.productFlavors.create('staging', {
            jenkinsTestable true
        })
        android.productFlavors.create('production', {
            jenkinsTestable false
        })
        project.evaluate()
        def expectedTestableVariantNames = ['productionDev',
                                            'stagingDebug',
                                            'stagingDev',
                                            'stagingRelease']
        def testableVariantNames = []
        project.tasks.getByName(MonkeyTask.MONKEY_TASK_NAME).applicationVariants.each { testableVariantNames.add it.name }
        assertThat(testableVariantNames).hasSameElementsAs(expectedTestableVariantNames)
    }
}
{'fraction_non_alphanumeric': 0.07860262008733625, 'fraction_numerical': 0.0, 'mean_word_length': 2.2899461400359065, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 16, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5015271', 'n_tokens_mistral': 932, 'n_tokens_neox': 909, 'n_words': 140}