Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix tests as the clientId type change broke eveything

  • Loading branch information...
commit 2ccc6ae9de2a75d922a06d783777ebb50f4b618d 1 parent d42f501
@xetorthio xetorthio authored
Showing with 12 additions and 12 deletions.
  1. +12 −12 src/test/java/com/mercadolibre/sdk/MeliTest.java
View
24 src/test/java/com/mercadolibre/sdk/MeliTest.java
@@ -13,7 +13,7 @@
public void testGetAuthUrl() {
assertEquals(
"https://auth.mercadolibre.com.ar/authorization?response_type=code&client_id=123456&redirect_uri=http%3A%2F%2Fsomeurl.com",
- new Meli(123456, "client secret")
+ new Meli(123456l, "client secret")
.getAuthUrl("http://someurl.com"));
}
@@ -21,7 +21,7 @@ public void testGetAuthUrl() {
public void testAuthorizationFailure() throws AuthorizationFailure {
Meli.apiUrl = "http://localhost:3000";
- new Meli(123456, "client secret").authorize("bad code",
+ new Meli(123456l, "client secret").authorize("bad code",
"http://someurl.com");
}
@@ -29,7 +29,7 @@ public void testAuthorizationFailure() throws AuthorizationFailure {
public void testAuthorizationSuccess() throws AuthorizationFailure {
Meli.apiUrl = "http://localhost:3000";
- Meli m = new Meli(123456, "client secret");
+ Meli m = new Meli(123456l, "client secret");
m.authorize("valid code with refresh token", "http://someurl.com");
assertEquals("valid token", m.getAccessToken());
@@ -40,7 +40,7 @@ public void testAuthorizationSuccess() throws AuthorizationFailure {
public void testGet() throws MeliException, IOException {
Meli.apiUrl = "http://localhost:3000";
- Meli m = new Meli(123456, "client secret", "valid token");
+ Meli m = new Meli(123456l, "client secret", "valid token");
Response response = m.get("/sites");
@@ -52,7 +52,7 @@ public void testGet() throws MeliException, IOException {
public void testGetWithRefreshToken() throws MeliException, IOException {
Meli.apiUrl = "http://localhost:3000";
- Meli m = new Meli(123456, "client secret", "expired token",
+ Meli m = new Meli(123456l, "client secret", "expired token",
"valid refresh token");
FluentStringsMap params = new FluentStringsMap();
@@ -65,7 +65,7 @@ public void testGetWithRefreshToken() throws MeliException, IOException {
@Test
public void testErrorHandling() throws IOException, MeliException {
- Meli m = new Meli(123456, "client secret", "invalid token");
+ Meli m = new Meli(123456l, "client secret", "invalid token");
FluentStringsMap params = new FluentStringsMap();
params.add("access_token", m.getAccessToken());
@@ -74,7 +74,7 @@ public void testErrorHandling() throws IOException, MeliException {
}
public void testPost() throws MeliException {
- Meli m = new Meli(123456, "client secret", "valid token");
+ Meli m = new Meli(123456l, "client secret", "valid token");
FluentStringsMap params = new FluentStringsMap();
params.add("access_token", m.getAccessToken());
@@ -84,7 +84,7 @@ public void testPost() throws MeliException {
}
public void testPostWithRefreshToken() throws MeliException {
- Meli m = new Meli(123456, "client secret", "expired token",
+ Meli m = new Meli(123456l, "client secret", "expired token",
"valid refresh token");
FluentStringsMap params = new FluentStringsMap();
@@ -95,7 +95,7 @@ public void testPostWithRefreshToken() throws MeliException {
}
public void testPut() throws MeliException {
- Meli m = new Meli(123456, "client secret", "valid token");
+ Meli m = new Meli(123456l, "client secret", "valid token");
FluentStringsMap params = new FluentStringsMap();
params.add("access_token", m.getAccessToken());
@@ -105,7 +105,7 @@ public void testPut() throws MeliException {
}
public void testPutWithRefreshToken() throws MeliException {
- Meli m = new Meli(123456, "client secret", "expired token",
+ Meli m = new Meli(123456l, "client secret", "expired token",
"valid refresh token");
FluentStringsMap params = new FluentStringsMap();
@@ -116,7 +116,7 @@ public void testPutWithRefreshToken() throws MeliException {
}
public void testDelete() throws MeliException {
- Meli m = new Meli(123456, "client secret", "valid token");
+ Meli m = new Meli(123456l, "client secret", "valid token");
FluentStringsMap params = new FluentStringsMap();
params.add("access_token", m.getAccessToken());
@@ -126,7 +126,7 @@ public void testDelete() throws MeliException {
}
public void testDeleteWithRefreshToken() throws MeliException {
- Meli m = new Meli(123456, "client secret", "expired token",
+ Meli m = new Meli(123456l, "client secret", "expired token",
"valid refresh token");
FluentStringsMap params = new FluentStringsMap();
Please sign in to comment.
Something went wrong with that request. Please try again.