We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b412671 commit 818f448Copy full SHA for 818f448
src/main/java/javax/money/convert/ProviderContext.java
@@ -330,7 +330,7 @@ public Builder setValidTo(long timestamp) {
330
* @return this, for chaining.
331
*/
332
public Builder setValidTo(Object dateTime) {
333
- set(dateTime, ProviderAttribute.VALID_FROM);
+ set(dateTime, ProviderAttribute.VALID_TO);
334
return this;
335
}
336
src/test/java/javax/money/convert/ProviderContextTest.java
@@ -41,7 +41,6 @@ public void testGetValidFromMillis() throws Exception{
41
42
43
@Test
44
- @Ignore
45
public void testGetValidTo1() throws Exception{
46
Date date = new Date();
47
ProviderContext ctx = new ProviderContext.Builder("myprov").setValidTo(date).create();
0 commit comments