Signature test fixed. New reference signature as api & token secret must be urlencoded.
This commit is contained in:
1 parent
cf84381127
commit
896e738156
1 file changed
+2
-2
@@ -3,7 +3,7 @@ package org.scribe.services;
|
||||
import static org.junit.Assert.*;
|
||||
|
||||
import org.junit.*;
|
||||
import org.scribe.exceptions.OAuthException;
|
||||
import org.scribe.exceptions.*;
|
||||
|
||||
public class HMACSha1SignatureServiceTest
|
||||
{
|
||||
@@ -29,7 +29,7 @@ public class HMACSha1SignatureServiceTest
|
||||
String apiSecret = "api secret";
|
||||
String tokenSecret = "token secret";
|
||||
String baseString = "base string";
|
||||
String signature = "cyxvUDZY/5cQBcBiKulaNgnhN/w=";
|
||||
String signature = "uGymw2KHOTWI699YEaoi5xyLT50=";
|
||||
assertEquals(signature, service.getSignature(baseString, apiSecret, tokenSecret));
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user