Skip to content

Commit

Permalink
Prepare for 2.0.0-beta1 release; remove deprecation warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
jnizet committed Feb 23, 2016
1 parent 3083fa1 commit f9f9fd5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version = 2.0.0-beta1-SNAPSHOT
version = 2.0.0-beta1
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ public void startsAtToday() {
}

@Test
@SuppressWarnings("deprecation")
public void incrementsByOneDay() throws ParseException {
DateSequenceValueGenerator sequence = ValueGenerators.dateSequence().startingAt(july19Of2013AtMidnight());
sequence.nextValue();
Expand All @@ -59,6 +60,7 @@ public void incrementsByOneDay() throws ParseException {
}

@Test
@SuppressWarnings("deprecation")
public void allowsSettingNewStartAsDate() throws ParseException {
DateSequenceValueGenerator sequence = ValueGenerators.dateSequence().startingAt(july19Of2013AtMidnight());
assertEquals("2013-07-19T00:00:00.000", toLongString(sequence.nextValue()));
Expand All @@ -67,6 +69,7 @@ public void allowsSettingNewStartAsDate() throws ParseException {
}

@Test
@SuppressWarnings("deprecation")
public void allowsSettingNewStartAsDateWithTimeZone() throws ParseException {
DateSequenceValueGenerator sequence =
ValueGenerators.dateSequence()
Expand All @@ -83,6 +86,7 @@ public void allowsSettingNewStartAsString() throws ParseException {
}

@Test
@SuppressWarnings("deprecation")
public void allowsSettingNewStartAsCalendar() throws ParseException {
Calendar start = Calendar.getInstance();
DateSequenceValueGenerator sequence =
Expand Down Expand Up @@ -115,6 +119,7 @@ public void allowsSettingNewStartAsZonedDateTime() throws ParseException {
}

@Test
@SuppressWarnings("deprecation")
public void allowsSettingNewIncrement() throws ParseException {
DateSequenceValueGenerator sequence =
ValueGenerators.dateSequence()
Expand All @@ -125,6 +130,7 @@ public void allowsSettingNewIncrement() throws ParseException {
}

@Test
@SuppressWarnings("deprecation")
public void allowsSettingNewIncrementInYears() throws ParseException {
DateSequenceValueGenerator sequence =
ValueGenerators.dateSequence()
Expand All @@ -135,6 +141,7 @@ public void allowsSettingNewIncrementInYears() throws ParseException {
}

@Test
@SuppressWarnings("deprecation")
public void allowsSettingNewIncrementInMonths() throws ParseException {
DateSequenceValueGenerator sequence =
ValueGenerators.dateSequence()
Expand All @@ -145,6 +152,7 @@ public void allowsSettingNewIncrementInMonths() throws ParseException {
}

@Test
@SuppressWarnings("deprecation")
public void allowsSettingNewIncrementInHours() throws ParseException {
DateSequenceValueGenerator sequence =
ValueGenerators.dateSequence()
Expand All @@ -155,6 +163,7 @@ public void allowsSettingNewIncrementInHours() throws ParseException {
}

@Test
@SuppressWarnings("deprecation")
public void allowsSettingNewIncrementInMinutes() throws ParseException {
DateSequenceValueGenerator sequence =
ValueGenerators.dateSequence()
Expand All @@ -165,6 +174,7 @@ public void allowsSettingNewIncrementInMinutes() throws ParseException {
}

@Test
@SuppressWarnings("deprecation")
public void allowsSettingNewIncrementInSeconds() throws ParseException {
DateSequenceValueGenerator sequence =
ValueGenerators.dateSequence()
Expand All @@ -175,6 +185,7 @@ public void allowsSettingNewIncrementInSeconds() throws ParseException {
}

@Test
@SuppressWarnings("deprecation")
public void allowsSettingNewIncrementInMilliseconds() throws ParseException {
DateSequenceValueGenerator sequence =
ValueGenerators.dateSequence()
Expand Down

0 comments on commit f9f9fd5

Please sign in to comment.