1
0
Fork 0

Fix Date Format Error in Test

master
Joseph McCarthy 2015-12-25 01:32:03 +00:00
parent 7a1fdf07fb
commit 67682f9963
1 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@ public class WorklogTest {
public void testToString() throws Exception {
final RestClient mockRestClient = PowerMockito.mock(RestClient.class);
final JSONObject mockJSONObject = new JSONObject();
String dateString = "2015-12-24";
String dateString = "2013-09-29T20:16:19.854+0100";
mockJSONObject.put("created", dateString);
final JSONObject userJSON = new JSONObject();
@ -43,7 +43,7 @@ public class WorklogTest {
WorkLog workLog = new WorkLog(mockRestClient, mockJSONObject);
assertEquals("Thu Dec 24 00:00:00 GMT 2015 by Joseph McCarthy", workLog.toString());
assertEquals("Sun Sep 29 00:00:00 BST 2013 by Joseph McCarthy", workLog.toString());
}
@Test