Actually you can’t access the methods declared private thing. so You have to use the another way to test the below code.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
publicclassNaverConvertApi {
/** It calculate the distances between two times taken from parameters */ private String getTimeInterval(String dateTimeStr1, String dateTimeStr2)throws Exception { SimpleDateFormatdateFormat=newSimpleDateFormat("YYYYMMddHHmm");