Commit 04d7e085 authored by Greg Messner's avatar Greg Messner
Browse files

Initial commit (#151).

parent 5a887c95
package org.gitlab4j.api;
import static org.junit.Assert.assertEquals;
import java.text.ParseException;
import java.util.Date;
import org.gitlab4j.api.utils.ISO8601;
import org.junit.Test;
public class TestISO8601 {
private static final String SPACEY_GITLAB_DATE = "2018-03-12 10:16:46 +0800";
private static final String ISO8601_GITLAB_DATE ="2018-03-12T10:16:46+0800";
@Test
public void testGitlabDateParse() throws ParseException {
Date spaceyDate = ISO8601.toDate(SPACEY_GITLAB_DATE);
Date gitlabDate = ISO8601.toDate(ISO8601_GITLAB_DATE);
assertEquals(spaceyDate, gitlabDate);
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment