Back to project page BehatReporter.
The source code is released under:
Copyright (C) 2013 Fabian Kiss <headrevision@gmail.com> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software...
If you think the Android project BehatReporter listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package headrevision.BehatReporter.report; //www .j ava 2s .c o m import headrevision.BehatReporter.json.ParserException; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; import java.util.Locale; import com.fasterxml.jackson.databind.JsonNode; public class ReportParser extends ItemParser { public ReportParser(JsonNode item) { super(item, new FeatureParserFactory()); } @Override public boolean hasTitle() throws ParserException { return false; } public Date parseDate() throws ParserException { SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss", Locale.ENGLISH); Date date; try { date = dateFormat.parse(parseText("date")); } catch (ParseException e) { throw (new ParserException(e)); } return date; } }