<commit_before>package org.mockito.release.internal.gradle.util

import org.gradle.api.publish.maven.MavenPublication
import org.gradle.testfixtures.ProjectBuilder
import spock.lang.Specification

class PomCustomizerTest extends Specification {

    def project = new ProjectBuilder().build()

    def "registers xml action to customize pom"() {
        when:
        project.plugins.apply("java")
        project.plugins.apply("maven-publish")

        then:
        project.publishing.publications {
            mainJar(MavenPublication) {
                from project.components.java
                PomCustomizer.customizePom(project, it)
            }
        }
    }
}<commit_msg>Fixed failing test<commit_after>package org.mockito.release.internal.gradle.util

import org.gradle.api.publish.maven.MavenPublication
import org.gradle.testfixtures.ProjectBuilder
import spock.lang.Specification

class PomCustomizerTest extends Specification {

    def project = new ProjectBuilder().build()

    def "registers xml action to customize pom"() {
        when:
        project.plugins.apply("java")
        project.plugins.apply("maven-publish")

        then:
        project.publishing.publications {
            mainJar(MavenPublication) {
                from project.components.java
                PomCustomizer.customizePom(project, null, it)
            }
        }
    }
}
{'fraction_non_alphanumeric': 0.08893709327548807, 'fraction_numerical': 0.0, 'mean_word_length': 2.642105263157895, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '986158', 'n_tokens_mistral': 389, 'n_tokens_neox': 367, 'n_words': 69}