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

com.aventstack.extentreports.reporter.configuration.ViewOrder Maven / Gradle / Ivy

There is a newer version: 5.1.2
Show newest version
package com.aventstack.extentreports.reporter.configuration;

import java.util.Arrays;
import java.util.List;

import lombok.Getter;
import lombok.NoArgsConstructor;

@Getter
@NoArgsConstructor
public class ViewOrder> {
    private static final List DEFAULT_ORDER = Arrays.asList(new ViewName[]{
            ViewName.TEST,
            ViewName.EXCEPTION,
            ViewName.CATEGORY,
            ViewName.DEVICE,
            ViewName.AUTHOR,
            ViewName.LOG,
            ViewName.DASHBOARD
    });

    private List viewOrder = DEFAULT_ORDER;
    private ViewConfigurer configurer;

    public ViewOrder(ViewConfigurer configurer) {
        this.configurer = configurer;
    }

    @SuppressWarnings("unchecked")
    public ViewConfigurer as(List order) {
        this.viewOrder = order;
        return (ViewConfigurer) configurer;
    }

    public ViewConfigurer as(ViewName[] viewOrder) {
        return as(Arrays.asList(viewOrder));
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy