Skip to content

Commit

Permalink
Disable the unit test formatRelativeDate until RelativeTimeFormatter …
Browse files Browse the repository at this point in the history
…fixed
  • Loading branch information
dpocock committed Jan 6, 2015
1 parent 53721b1 commit 50ff268
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions jsmpp/src/test/java/org/jsmpp/util/DateFormatterTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public void formatAbsoluteDateRussia() {
assertEquals(timeFormatter.format(date), "130701010000024+");
}

@Test(groups="checkintest")
@Test(groups="checkintest",enabled=false) // FIXME - enable again after fixing issues below
public void formatRelativeDate() {
RelativeTimeFormatter timeFormatter = new RelativeTimeFormatter(TimeZone.getTimeZone("America/Denver"));

Expand All @@ -126,18 +126,18 @@ public void formatRelativeDate() {
date.set(Calendar.SECOND, 0);
date.set(Calendar.MILLISECOND, 0);

assertEquals(timeFormatter.format(date), "130101050000000R");
assertEquals(timeFormatter.format(date), "130101050000000R"); // FIXME - should be a relative time but looks like an absolute value

// at this date Denver has already daylight saving time but not Germany
date.set(Calendar.MONTH, Calendar.MARCH);
date.set(Calendar.DAY_OF_MONTH, 20);

assertEquals(timeFormatter.format(date), "130320060000000R");
assertEquals(timeFormatter.format(date), "130320060000000R"); // FIXME - should be a relative time but looks like an absolute value

// at this date Denver and Germany has daylight saving time
date.set(Calendar.MONTH, Calendar.APRIL);
date.set(Calendar.DAY_OF_MONTH, 1);

assertEquals(timeFormatter.format(date), "130401050000000R");
assertEquals(timeFormatter.format(date), "130401050000000R"); // FIXME - should be a relative time but looks like an absolute value
}
}

0 comments on commit 50ff268

Please sign in to comment.