Skip to content

Commit

Permalink
Use current year for test
Browse files Browse the repository at this point in the history
  • Loading branch information
simonpoole committed Jul 14, 2022
1 parent 2ad29d4 commit 08b728b
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@

package ch.poole.openinghoursfragment;

import java.util.Date;

import org.junit.Assert;
import org.junit.Before;
import org.junit.Rule;
Expand Down Expand Up @@ -195,7 +197,7 @@ public void addYearRange() {
}
Assert.assertTrue(TestUtils.clickText(device, false, "Show interval", true));
Assert.assertTrue(TestUtils.clickText(device, false, "Save", true));
Assert.assertEquals("2021 Sa 09:00-17:00; PH closed", mActivityRule.getActivity().getResult());
Assert.assertEquals(Integer.toString(1900 + new Date().getYear()) + " Sa 09:00-17:00; PH closed", mActivityRule.getActivity().getResult());
}

@Test
Expand Down

0 comments on commit 08b728b

Please sign in to comment.