Skip to content

Commit

Permalink
Version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
anurag committed Aug 6, 2012
1 parent 7e8cfe1 commit a4c0e8d
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 13 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
=== 1.1.2 2012-08-06

* Allow specification of API key at the API call level.

=== 1.1.1 2012-05-24

* Use String.length() == 0 instead of String.isEmpty() for
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Add this dependency to your project's POM:
<dependency>
<groupId>com.stripe</groupId>
<artifactId>stripe-java</artifactId>
<version>1.1.1</version>
<version>1.1.2</version>
</dependency>

### Others
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.1.1
1.1.2
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<groupId>com.stripe</groupId>
<artifactId>stripe-java</artifactId>
<packaging>jar</packaging>
<version>1.1.1</version>
<version>1.1.2</version>
<name>stripe-java</name>
<url>https://github.com/stripe/stripe-java</url>
<dependencies>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/stripe/Stripe.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
public abstract class Stripe
{
public static final String API_BASE = "https://api.stripe.com/v1";
public static final String VERSION = "1.1.1";
public static final String VERSION = "1.1.2";
public static String apiKey;
}
10 changes: 1 addition & 9 deletions src/test/java/com/stripe/StripeTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -324,20 +324,17 @@ public void testInvalidCard() throws StripeException {
}

@Test public void testTokenCreate() throws StripeException {

Token token = Token.create(defaultTokenParams);
assertFalse(token.getUsed());
}

@Test public void testTokenRetrieve() throws StripeException {

Token createdToken = Token.create(defaultTokenParams);
Token retrievedToken = Token.retrieve(createdToken.getId());
assertEquals(createdToken.getId(), retrievedToken.getId());
}

@Test public void testTokenUse() throws StripeException {

Token createdToken = Token.create(defaultTokenParams);
Map<String, Object> chargeWithTokenParams = new HashMap<String, Object>();
chargeWithTokenParams.put("amount", 199);
Expand Down Expand Up @@ -405,16 +402,14 @@ public void testInvalidCard() throws StripeException {
* @throws StripeException
*/
@Test public void testPerCallAPIUsage() throws StripeException {

Charge createdCharge = Charge.create(defaultChargeParams, Stripe.apiKey);
assertFalse(createdCharge.getRefunded());

try {
Charge.create(defaultChargeParams, "INVALID_KEY_HERE");
fail();
} catch (Exception e) {}
}

@Test public void testChargeCreatePerCallAPIKey() throws StripeException {
Charge createdCharge = Charge.create(defaultChargeParams, Stripe.apiKey);
assertFalse(createdCharge.getRefunded());
Expand Down Expand Up @@ -635,20 +630,17 @@ public void testInvalidCardPerCallAPIKey() throws StripeException {
}

@Test public void testTokenCreatePerCallAPIKey() throws StripeException {

Token token = Token.create(defaultTokenParams, Stripe.apiKey);
assertFalse(token.getUsed());
}

@Test public void testTokenRetrievePerCallAPIKey() throws StripeException {

Token createdToken = Token.create(defaultTokenParams, Stripe.apiKey);
Token retrievedToken = Token.retrieve(createdToken.getId(), Stripe.apiKey);
assertEquals(createdToken.getId(), retrievedToken.getId());
}

@Test public void testTokenUsePerCallAPIKey() throws StripeException {

Token createdToken = Token.create(defaultTokenParams, Stripe.apiKey);
Map<String, Object> chargeWithTokenParams = new HashMap<String, Object>();
chargeWithTokenParams.put("amount", 199);
Expand Down

0 comments on commit a4c0e8d

Please sign in to comment.