Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 1ff8348e authored by Wylem Bars's avatar Wylem Bars
Browse files

IUAINFRA-53 | Fix unit tests

parent 17574cc3
No related branches found
No related tags found
1 merge request!4Feature/iuainfra 53
...@@ -18,7 +18,7 @@ class AsymmetricSignatureTest { ...@@ -18,7 +18,7 @@ class AsymmetricSignatureTest {
@Covers(requirements = "TOKENPROV-010") @Covers(requirements = "TOKENPROV-010")
void getPrivateKey(){ void getPrivateKey(){
AsymmetricSignature signature = new AsymmetricSignature(ALGORITHM, KEY, PASSWORD); AsymmetricSignature signature = new AsymmetricSignature(ALGORITHM, KEY, PASSWORD);
assertEquals(KEY, signature.getPrivateKey(), "Getter shall return the value of privateKey !"); assertArrayEquals(KEY, signature.getPrivateKey(), "Getter shall return the value of privateKey !");
} }
/** /**
......
...@@ -16,7 +16,7 @@ class PasswordTest { ...@@ -16,7 +16,7 @@ class PasswordTest {
@Covers(requirements = "TOKENPROV-031") @Covers(requirements = "TOKENPROV-031")
void getKey() { void getKey() {
Password publicKey = new Password(VALUE); Password publicKey = new Password(VALUE);
assertEquals(VALUE, publicKey.getValue(), "Getter shall return the value of value !"); assertArrayEquals(VALUE, publicKey.getValue(), "Getter shall return the value of value !");
} }
/** /**
......
...@@ -3,10 +3,7 @@ package net.ihe.gazelle.app.accesstokenproviderapi.business; ...@@ -3,10 +3,7 @@ package net.ihe.gazelle.app.accesstokenproviderapi.business;
import net.ihe.gazelle.lib.annotations.Covers; import net.ihe.gazelle.lib.annotations.Covers;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.*;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import static org.junit.jupiter.api.Assertions.assertTrue;
class PublicKeyTest { class PublicKeyTest {
...@@ -19,7 +16,7 @@ class PublicKeyTest { ...@@ -19,7 +16,7 @@ class PublicKeyTest {
@Covers(requirements = "TOKENPROV-031") @Covers(requirements = "TOKENPROV-031")
void getKey() { void getKey() {
PublicKey publicKey = new PublicKey(KEY); PublicKey publicKey = new PublicKey(KEY);
assertEquals(KEY, publicKey.getKey(), "Getter shall return the value of key !"); assertArrayEquals(KEY, publicKey.getKey(), "Getter shall return the value of key !");
} }
/** /**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment