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

ru.yandex.qatools.allure.data.io.AttachmentReader Maven / Gradle / Ivy

There is a newer version: 1.5.4
Show newest version
package ru.yandex.qatools.allure.data.io;

import com.google.inject.Inject;
import ru.yandex.qatools.allure.data.AttachmentInfo;
import ru.yandex.qatools.allure.data.plugins.AttachmentsIndex;

import java.util.Iterator;

/**
 * @author Dmitry Baev [email protected]
 *         Date: 19.02.15
 */
public class AttachmentReader implements Reader {

    @Inject
    private AttachmentsIndex index;

    @Override
    public Iterator iterator() {
        return index.findAll().iterator();
    }

    public AttachmentsIndex getIndex() {
        return index;
    }

    public void setIndex(AttachmentsIndex index) {
        this.index = index;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy