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

ru.yandex.qatools.allure.storages.TestSuiteStorage Maven / Gradle / Ivy

There is a newer version: 1.4.0.RC9
Show newest version
package ru.yandex.qatools.allure.storages;

import ru.yandex.qatools.allure.model.TestSuiteResult;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

/**
 * @author Dmitry Baev [email protected]
 *         Date: 13.12.13
 */
public class TestSuiteStorage {

    private final Map testSuiteData = new ConcurrentHashMap<>();

    public TestSuiteResult get(String uid) {
        if (!testSuiteData.containsKey(uid)) {
            testSuiteData.put(uid, new TestSuiteResult());
        }
        return testSuiteData.get(uid);
    }

    public void remove(String uid) {
        testSuiteData.remove(uid);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy