Here you can find the source of formatLocalDateJsr310ForJsonPath(LocalDate date)
Parameter | Description |
---|---|
date | a parameter |
public static String formatLocalDateJsr310ForJsonPath(LocalDate date)
//package com.java2s; //License from project: LGPL import java.time.LocalDate; public class Main { /**// w w w.j a va 2s. c om * Used to format a LocalDate to the format provided by the Jackson JSR310 Converter * Used for jsonPath assertions * @param date * @return */ public static String formatLocalDateJsr310ForJsonPath(LocalDate date) { return "[" + date.getYear() + "," + date.getMonthValue() + "," + date.getDayOfMonth() + "]"; } }