Skip to content
Browse files

Fixed invalid assignement for validTo.

Added default currency to default provider.
  • Loading branch information...
1 parent b412671 commit 818f448614e049ca474bea7574bab84900b9ea8c @atsticks atsticks committed Mar 6, 2014
View
2 src/main/java/javax/money/convert/ProviderContext.java
@@ -330,7 +330,7 @@ public Builder setValidTo(long timestamp) {
* @return this, for chaining.
*/
public Builder setValidTo(Object dateTime) {
- set(dateTime, ProviderAttribute.VALID_FROM);
+ set(dateTime, ProviderAttribute.VALID_TO);
return this;
}
View
1 src/test/java/javax/money/convert/ProviderContextTest.java
@@ -41,7 +41,6 @@ public void testGetValidFromMillis() throws Exception{
}
@Test
- @Ignore
public void testGetValidTo1() throws Exception{
Date date = new Date();
ProviderContext ctx = new ProviderContext.Builder("myprov").setValidTo(date).create();

0 comments on commit 818f448

Please sign in to comment.
Something went wrong with that request. Please try again.