コード例 #1
0
 @Test
 public void shouldReturnSignature() {
   String apiSecret = "api secret";
   String tokenSecret = "token secret";
   String baseString = "base string";
   String signature =
       "LUNRzQAlpdNyM9mLXm96Va6g/qVNnEAb7p7K1KM0g8IopOFQJPoOO7cvppgt7w3QyhijWJnCmvqXaaIAGrqvdyr3fIzBULh8D/iZQUNLMi08GCOA34P81XBvsc7A5uJjPDsGhJg2MzoVJ8nWJhU/lMMk4c92S1WGskeoDofRwpo=";
   assertEquals(signature, service.getSignature(baseString, apiSecret, tokenSecret));
 }
コード例 #2
0
 @Test
 public void shouldReturnSignatureMethodString() {
   String expected = "RSA-SHA1";
   assertEquals(expected, service.getSignatureMethod());
 }