(String[] args)
| 12 | */ |
| 13 | public class TimerTest { |
| 14 | public static void main(String[] args) throws ParseException { |
| 15 | Timer t = new Timer(); |
| 16 | |
| 17 | String s = "2015-04-12 15:55:30"; |
| 18 | SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); |
| 19 | Date d = sdf.parse(s); |
| 20 | |
| 21 | t.schedule(new DeleteFolder(new File("d:\\hello")), d); |
| 22 | } |
| 23 | } |
| 24 | |
| 25 | class DeleteFolder extends TimerTask { |
nothing calls this directly
no outgoing calls
no test coverage detected