fix stests
This commit is contained in:
parent
2f01f8c7da
commit
3a4810e54f
1 changed files with 2 additions and 17 deletions
|
@ -8,8 +8,7 @@
|
|||
|
||||
package ch.ethz.seb.sebserver.gbl.client;
|
||||
|
||||
import static org.junit.Assert.assertNotNull;
|
||||
import static org.junit.Assert.assertTrue;
|
||||
import static org.junit.Assert.*;
|
||||
import static org.mockito.Mockito.mock;
|
||||
import static org.mockito.Mockito.when;
|
||||
|
||||
|
@ -37,21 +36,7 @@ public class ClientCredentialServiceImplTest {
|
|||
assertNotNull(clientCredentials);
|
||||
assertNotNull(clientCredentials.clientId);
|
||||
assertNotNull(clientCredentials.secret);
|
||||
assertNotNull(clientCredentials.accessToken);
|
||||
|
||||
// String encrypted =
|
||||
// cryptor.encrypt(clientName, "secret1").toString();
|
||||
// String decrypted = cryptor.decrypt(encrypted, "secret1").toString();
|
||||
//
|
||||
// assertEquals(clientName, decrypted);
|
||||
//
|
||||
// final String clientSecret = "fbjreij39ru29305ruࣣàèLöäöäü65%(/%(ç87";
|
||||
//
|
||||
// encrypted =
|
||||
// cryptor.encrypt(clientSecret, "secret1").toString();
|
||||
// decrypted = cryptor.decrypt(encrypted, "secret1").toString();
|
||||
//
|
||||
// assertEquals(clientSecret, decrypted);
|
||||
assertNull(clientCredentials.accessToken);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue