<commit_before>package net.bytebuddy.description.modifier;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
import org.objectweb.asm.Opcodes;

import java.util.Arrays;
import java.util.Collection;

import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.MatcherAssert.assertThat;

@RunWith(Parameterized.class)
public class FieldManifestationTest extends AbstractModifierContributorTest {

    private final boolean isFinal, isVolatile, isTransient, isPlain;

    public FieldManifestationTest(ModifierContributor modifierContributor,
                                  int expectedModifier,
                                  boolean defaultModifier,
                                  boolean isFinal,
                                  boolean isVolatile,
                                  boolean isTransient,
                                  boolean isPlain) {
        super(modifierContributor, expectedModifier, defaultModifier);
        this.isFinal = isFinal;
        this.isVolatile = isVolatile;
        this.isTransient = isTransient;
        this.isPlain = isPlain;
    }

    @Parameterized.Parameters
    public static Collection<Object[]> data() {
        return Arrays.asList(new Object[][]{
                {FieldManifestation.PLAIN, 0, true, false, false, false, true},
                {FieldManifestation.FINAL, Opcodes.ACC_FINAL, false, true, false, false, false},
                {FieldManifestation.VOLATILE, Opcodes.ACC_VOLATILE, false, false, true, false, false},
                {FieldManifestation.TRANSIENT, Opcodes.ACC_TRANSIENT, false, false, true, true, false},
                {FieldManifestation.VOLATILE_TRANSIENT, Opcodes.ACC_VOLATILE | Opcodes.ACC_TRANSIENT, false, false, true, true, false},
        });
    }

    @Test
    public void testProperties() throws Exception {
        assertThat(((FieldManifestation) modifierContributor).isFinal(), is(isFinal));
        assertThat(((FieldManifestation) modifierContributor).isVolatile(), is(isVolatile));
        assertThat(((FieldManifestation) modifierContributor).isTransient(), is(isTransient));<commit_msg>Fixed test.<commit_after>package net.bytebuddy.description.modifier;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
import org.objectweb.asm.Opcodes;

import java.util.Arrays;
import java.util.Collection;

import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.MatcherAssert.assertThat;

@RunWith(Parameterized.class)
public class FieldManifestationTest extends AbstractModifierContributorTest {

    private final boolean isFinal, isVolatile, isTransient, isPlain;

    public FieldManifestationTest(ModifierContributor modifierContributor,
                                  int expectedModifier,
                                  boolean defaultModifier,
                                  boolean isFinal,
                                  boolean isVolatile,
                                  boolean isTransient,
                                  boolean isPlain) {
        super(modifierContributor, expectedModifier, defaultModifier);
        this.isFinal = isFinal;
        this.isVolatile = isVolatile;
        this.isTransient = isTransient;
        this.isPlain = isPlain;
    }

    @Parameterized.Parameters
    public static Collection<Object[]> data() {
        return Arrays.asList(new Object[][]{
                {FieldManifestation.PLAIN, 0, true, false, false, false, true},
                {FieldManifestation.FINAL, Opcodes.ACC_FINAL, false, true, false, false, false},
                {FieldManifestation.VOLATILE, Opcodes.ACC_VOLATILE, false, false, true, false, false},
                {FieldManifestation.TRANSIENT, Opcodes.ACC_TRANSIENT, false, false, false, true, false},
                {FieldManifestation.VOLATILE_TRANSIENT, Opcodes.ACC_VOLATILE | Opcodes.ACC_TRANSIENT, false, false, true, true, false},
        });
    }

    @Test
    public void testProperties() throws Exception {
        assertThat(((FieldManifestation) modifierContributor).isFinal(), is(isFinal));
        assertThat(((FieldManifestation) modifierContributor).isVolatile(), is(isVolatile));
        assertThat(((FieldManifestation) modifierContributor).isTransient(), is(isTransient));
{'fraction_non_alphanumeric': 0.08884249594061702, 'fraction_numerical': 0.00046392948271862676, 'mean_word_length': 2.7268798617113226, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 12, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3755787', 'n_tokens_mistral': 1170, 'n_tokens_neox': 1155, 'n_words': 236}