<commit_before>package fi.vincit.multiusertest.runner;

import fi.vincit.multiusertest.annotation.TestUsers;
import fi.vincit.multiusertest.util.UserIdentifier;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.Description;
import org.junit.runner.notification.RunNotifier;
import org.junit.runners.ParentRunner;
import org.junit.runners.model.FrameworkMethod;
import org.junit.runners.model.InitializationError;

import java.util.Collections;
import java.util.List;

import static org.hamcrest.core.Is.is;
import static org.junit.Assert.assertThat;

public class MultiUserTestRunnerTest {

    @Ignore
    public static class NoAnnotation {
    }

    private MultiUserTestClassRunnerFactory factory;


    @Ignore
    public static class TestRunner extends ParentRunner<FrameworkMethod> {

        private Class<?> klass;
        private UserIdentifier creator;
        private UserIdentifier user;

        public TestRunner(Class<?> klass, UserIdentifier creator, UserIdentifier user) throws InitializationError {
            super(klass);
            this.klass = klass;
            this.creator = creator;
            this.user = user;
        }

        @Override
        protected List<FrameworkMethod> getChildren() {
            return Collections.emptyList();
        }

        @Override
        protected Description describeChild(FrameworkMethod frameworkMethod) {
            return Description.createSuiteDescription("Test class");
        }

        @Override
        protected void runChild(FrameworkMethod frameworkMethod, RunNotifier runNotifier) {
        }

        public Class<?> getKlass() {
            return klass;
        }

        public UserIdentifier getCreator() {
            return creator;
        }

        public UserIdentifier getUser() {
            return user;
        }
    }

    @TestUsers(creators = "role:ROLE_USERS", runner = TestRunner.class)
    @Ignore
    public static class OneCreator {
    }

    @TestUsers(creators = "role:ROLE_USERS", users = {"user:Foo", "role:Bar"}, runner = TestRunner.class)
    @Ignore
    public static class OneCreator_MultipleUsers {
    }
<commit_msg>Remove obsolete variables from MultiUserTestRunnerTest<commit_after>package fi.vincit.multiusertest.runner;

import fi.vincit.multiusertest.annotation.TestUsers;
import fi.vincit.multiusertest.util.UserIdentifier;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.Description;
import org.junit.runner.notification.RunNotifier;
import org.junit.runners.ParentRunner;
import org.junit.runners.model.FrameworkMethod;
import org.junit.runners.model.InitializationError;

import java.util.Collections;
import java.util.List;

import static org.hamcrest.core.Is.is;
import static org.junit.Assert.assertThat;

public class MultiUserTestRunnerTest {

    @Ignore
    public static class NoAnnotation {
    }


    @Ignore
    public static class TestRunner extends ParentRunner<FrameworkMethod> {

        private UserIdentifier creator;
        private UserIdentifier user;

        public TestRunner(Class<?> clazz, UserIdentifier creator, UserIdentifier user) throws InitializationError {
            super(clazz);
            this.creator = creator;
            this.user = user;
        }

        @Override
        protected List<FrameworkMethod> getChildren() {
            return Collections.emptyList();
        }

        @Override
        protected Description describeChild(FrameworkMethod frameworkMethod) {
            return Description.createSuiteDescription("Test class");
        }

        @Override
        protected void runChild(FrameworkMethod frameworkMethod, RunNotifier runNotifier) {
        }

        public UserIdentifier getCreator() {
            return creator;
        }

        public UserIdentifier getUser() {
            return user;
        }
    }

    @TestUsers(creators = "role:ROLE_USERS", runner = TestRunner.class)
    @Ignore
    public static class OneCreator {
    }

    @TestUsers(creators = "role:ROLE_USERS", users = {"user:Foo", "role:Bar"}, runner = TestRunner.class)
    @Ignore
    public static class OneCreator_MultipleUsers {
    }

{'fraction_non_alphanumeric': 0.08303335733141348, 'fraction_numerical': 0.0, 'mean_word_length': 2.9695238095238095, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, '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': '3837268', 'n_tokens_mistral': 1112, 'n_tokens_neox': 1092, 'n_words': 251}