All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.ait.lienzo.test.settings.Settings Maven / Gradle / Ivy

There is a newer version: 7.74.1.Final
Show newest version
/*
 * Copyright (c) 2017 Ahome' Innovation Technologies. All rights reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.ait.lienzo.test.settings;

import java.util.Collection;
import java.util.LinkedHashMap;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;

import com.ait.lienzo.test.translator.LienzoMockitoClassTranslator;

/**
 * The runtime settings.
 *
 * @author Roger Martinez
 * @since 1.0
 *
 */
public final class Settings
{
    private final Map                                            stubs;

    private final Collection                                             jsoStubs;

    private final Collection                                             jsoMocks;

    private final Collection                                             mocks;

    private final Collection translators;

    Settings(final Collection translators)
    {
        this.stubs = new LinkedHashMap();
        this.jsoStubs = new LinkedHashSet();
        this.jsoMocks = new LinkedHashSet();
        this.mocks = new LinkedHashSet();
        this.translators = translators;
    }

    Settings(final Map stubs, final Set jsoStubs, final Set jsoMocks, final Set mocks, final List translators)
    {
        this.stubs = stubs;
        this.jsoStubs = jsoStubs;
        this.jsoMocks = jsoMocks;
        this.mocks = mocks;
        this.translators = translators;
    }

    public Map getStubs()
    {
        return stubs;
    }

    public Collection getJSOStubs()
    {
        return jsoStubs;
    }

    public Collection getJSOMocks()
    {
        return jsoMocks;
    }

    public Collection getMocks()
    {
        return mocks;
    }

    public Collection getAdditionalTranslators()
    {
        return translators;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy