Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed invalid assignement for validTo.

Added default currency to default provider.
  • Loading branch information...
commit 818f448614e049ca474bea7574bab84900b9ea8c 1 parent b412671
@atsticks atsticks authored
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();
Please sign in to comment.
Something went wrong with that request. Please try again.