public static List convertToRequestsContext()

in src/main/java/platform/qa/base/convertors/ContextConvertor.java [34:45]


    public static List<Request> convertToRequestsContext(Object context) {
        List<Request> convertedContext = new ArrayList<>();
        if (context instanceof Request) {
            convertedContext.add((Request) context);
        }
        if (context instanceof List<?>) {
            convertedContext = ((List<?>) context).stream()
                    .map(item -> (Request) item)
                    .collect(Collectors.toList());
        }
        return convertedContext;
    }