I am new to writing JUnit test cases. Below is my class:
public class DateTime {
public static void main(String[] args) {
DateFormat dateFormat = new SimpleDateFormat("yyyy/MM/dd, HH:mm:ss");
//get current date time with Date()
Date date = new Date();
System.out.println("Date,Time:"+dateFormat.format(date));
}
}
How can i write test cases for this class and how many?