Skip to content

Commit

Permalink
Fixed test and updated Commons dependency to 1.3.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
federicoiosue committed Apr 17, 2019
1 parent 5a5f796 commit 91dfebb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion omniNotes/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ dependencies {
exclude group: 'com.android.support'
}
implementation 'com.github.federicoiosue:Springpad-Importer:1.0.1'
implementation ('com.github.federicoiosue:Omni-Notes-Commons:1.3.0-SNAPSHOT') {
implementation ('com.github.federicoiosue:Omni-Notes-Commons:1.3.0') {
exclude group: 'org.projectlombok'
}
implementation ('com.github.federicoiosue:checklistview:3.2.1') {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,9 @@ public void prettyTime() {
@Test
public void getPresetReminder() {
long mockedNextMinute = 1497315847L;
Long testReminder = null;
PowerMockito.stub(PowerMockito.method(DateUtils.class, "getNextMinute")).toReturn(mockedNextMinute);
assertTrue(mockedNextMinute == DateUtils.getPresetReminder(null));
junit.framework.Assert.assertEquals(mockedNextMinute, DateUtils.getPresetReminder(testReminder));
}

@Test
Expand Down

0 comments on commit 91dfebb

Please sign in to comment.