Skip to content

Instantly share code, notes, and snippets.

@pradeepwebonise
pradeepwebonise / .json
Created October 9, 2017 12:50
videoFeed
[{"id":5600348978001,"name":"Breeders' Cup Focus - Distaff - October 6th, 2017","shortDescription":"On this week's Breeders' Cup Focus, Dan Illman and Mike Beer discuss the Distaff.","publishedDate":1507323326197,"thumbnailURL":"http://brightcove.vo.llnwd.net/v1/unsecured/media/719509166001/201710/1146/719509166001_5600377523001_5600348978001-th.jpg?pubId=719509166001","linkURL":null,"url":"http://video.drf.com/#category/videos/stakes-preview","playListName":"Stakes Previews","playListId":777161619001},{"id":5596879102001,"name":"DRF Breeding Report - Breeders' Cup - Juvenile Fillies Contenders","shortDescription":"Dan Illman and Nicole Russo analyze contenders for the Juvenile Fillies division of the Breeders' Cup","publishedDate":1507053839048,"thumbnailURL":"http://brightcove.vo.llnwd.net/v1/unsecured/media/719509166001/201710/602/719509166001_5596891349001_5596879102001-th.jpg?pubId=719509166001","linkURL":null,"url":"http://video.drf.com/#category/videos/learn-how-to-play","playListName":"Learning To Pla
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
import org.xml.sax.InputSource;
import org.xml.sax.SAXException;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationException;
String callScheduleDate = "07-06-2018";
String callScheduleTime = "04:04";
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("MM-dd-yyyy HH:mm");
try
{
Date date = simpleDateFormat.parse(callScheduleDate+" "+ callScheduleTime);
System.out.println("date : "+ date);
}
catch (ParseException ex)
{
{"loan": {
"leaseId": null,
"userId": "101",
"status": "",
"property": {
"appraisal": {
"softMarketInd": true
},
"propertyType": null,
"purchasePrice": 0,
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.InjectMocks;
import org.mockito.Mock;
import org.mockito.MockitoAnnotations;
import org.springframework.http.MediaType;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import org.springframework.test.web.servlet.MockMvc;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.junit.Before;
import org.junit.Test;
import org.mockito.InjectMocks;
import org.mockito.Mock;
import org.mockito.MockitoAnnotations;
import org.springframework.http.MediaType;
import org.springframework.test.web.servlet.MockMvc;
import org.springframework.test.web.servlet.MvcResult;
import org.springframework.test.web.servlet.setup.MockMvcBuilders;