diff options
Diffstat (limited to 'wallet/src/commonTest/kotlin/net/taler')
12 files changed, 22 insertions, 16 deletions
diff --git a/wallet/src/commonTest/kotlin/net/taler/lib/wallet/Base32CrockfordTest.kt b/wallet/src/commonTest/kotlin/net/taler/lib/crypto/Base32CrockfordTest.kt index 0f16971..f1c5be1 100644 --- a/wallet/src/commonTest/kotlin/net/taler/lib/wallet/Base32CrockfordTest.kt +++ b/wallet/src/commonTest/kotlin/net/taler/lib/crypto/Base32CrockfordTest.kt @@ -14,7 +14,7 @@ * GNU Taler; see the file COPYING. If not, see <http://www.gnu.org/licenses/> */ -package net.taler.lib.wallet +package net.taler.lib.crypto import kotlin.test.Ignore import kotlin.test.Test diff --git a/wallet/src/commonTest/kotlin/net/taler/lib/wallet/crypto/EllipticCurveTest.kt b/wallet/src/commonTest/kotlin/net/taler/lib/crypto/EllipticCurveTest.kt index 10fbcc1..4cdd5b9 100644 --- a/wallet/src/commonTest/kotlin/net/taler/lib/wallet/crypto/EllipticCurveTest.kt +++ b/wallet/src/commonTest/kotlin/net/taler/lib/crypto/EllipticCurveTest.kt @@ -14,9 +14,8 @@ * GNU Taler; see the file COPYING. If not, see <http://www.gnu.org/licenses/> */ -package net.taler.lib.wallet.crypto +package net.taler.lib.crypto -import net.taler.lib.wallet.Base32Crockford import kotlin.random.Random import kotlin.test.Test import kotlin.test.assertEquals diff --git a/wallet/src/commonTest/kotlin/net/taler/lib/wallet/crypto/KdfTest.kt b/wallet/src/commonTest/kotlin/net/taler/lib/crypto/KdfTest.kt index 291930d..c75f484 100644 --- a/wallet/src/commonTest/kotlin/net/taler/lib/wallet/crypto/KdfTest.kt +++ b/wallet/src/commonTest/kotlin/net/taler/lib/crypto/KdfTest.kt @@ -14,11 +14,10 @@ * GNU Taler; see the file COPYING. If not, see <http://www.gnu.org/licenses/> */ -package net.taler.lib.wallet.crypto +package net.taler.lib.crypto -import net.taler.lib.wallet.Base32Crockford -import net.taler.lib.wallet.crypto.Kdf.HMAC_SHA256_BLOCK_SIZE -import net.taler.lib.wallet.crypto.Kdf.HMAC_SHA512_BLOCK_SIZE +import net.taler.lib.crypto.Kdf.HMAC_SHA256_BLOCK_SIZE +import net.taler.lib.crypto.Kdf.HMAC_SHA512_BLOCK_SIZE import kotlin.test.Test import kotlin.test.assertEquals import kotlin.test.assertTrue diff --git a/wallet/src/commonTest/kotlin/net/taler/lib/wallet/crypto/Sha256Test.kt b/wallet/src/commonTest/kotlin/net/taler/lib/crypto/Sha256Test.kt index a71734a..9c47806 100644 --- a/wallet/src/commonTest/kotlin/net/taler/lib/wallet/crypto/Sha256Test.kt +++ b/wallet/src/commonTest/kotlin/net/taler/lib/crypto/Sha256Test.kt @@ -14,7 +14,7 @@ * GNU Taler; see the file COPYING. If not, see <http://www.gnu.org/licenses/> */ -package net.taler.lib.wallet.crypto +package net.taler.lib.crypto import kotlin.test.Test import kotlin.test.assertEquals diff --git a/wallet/src/commonTest/kotlin/net/taler/lib/wallet/crypto/Sha512Test.kt b/wallet/src/commonTest/kotlin/net/taler/lib/crypto/Sha512Test.kt index 59fd730..a3e817f 100644 --- a/wallet/src/commonTest/kotlin/net/taler/lib/wallet/crypto/Sha512Test.kt +++ b/wallet/src/commonTest/kotlin/net/taler/lib/crypto/Sha512Test.kt @@ -14,9 +14,8 @@ * GNU Taler; see the file COPYING. If not, see <http://www.gnu.org/licenses/> */ -package net.taler.lib.wallet.crypto +package net.taler.lib.crypto -import net.taler.lib.wallet.Base32Crockford import kotlin.random.Random import kotlin.test.Test import kotlin.test.assertEquals diff --git a/wallet/src/commonTest/kotlin/net/taler/lib/wallet/AmountTest.kt b/wallet/src/commonTest/kotlin/net/taler/lib/wallet/AmountTest.kt index ccee992..fbfd4e7 100644 --- a/wallet/src/commonTest/kotlin/net/taler/lib/wallet/AmountTest.kt +++ b/wallet/src/commonTest/kotlin/net/taler/lib/wallet/AmountTest.kt @@ -17,6 +17,7 @@ package net.taler.lib.wallet import net.taler.lib.common.Amount +import net.taler.lib.crypto.Base32Crockford import kotlin.test.Test import kotlin.test.assertEquals diff --git a/wallet/src/commonTest/kotlin/net/taler/lib/wallet/TimestampTest.kt b/wallet/src/commonTest/kotlin/net/taler/lib/wallet/TimestampTest.kt index b0f3b32..b3709b7 100644 --- a/wallet/src/commonTest/kotlin/net/taler/lib/wallet/TimestampTest.kt +++ b/wallet/src/commonTest/kotlin/net/taler/lib/wallet/TimestampTest.kt @@ -17,6 +17,7 @@ package net.taler.lib.wallet import net.taler.lib.common.Timestamp +import net.taler.lib.crypto.Base32Crockford import kotlin.random.Random import kotlin.test.Test import kotlin.test.assertEquals diff --git a/wallet/src/commonTest/kotlin/net/taler/lib/wallet/WalletApiTest.kt b/wallet/src/commonTest/kotlin/net/taler/lib/wallet/api/WalletApiTest.kt index 511eb79..e4abf0f 100644 --- a/wallet/src/commonTest/kotlin/net/taler/lib/wallet/WalletApiTest.kt +++ b/wallet/src/commonTest/kotlin/net/taler/lib/wallet/api/WalletApiTest.kt @@ -14,9 +14,10 @@ * GNU Taler; see the file COPYING. If not, see <http://www.gnu.org/licenses/> */ -package net.taler.lib.wallet +package net.taler.lib.wallet.api import net.taler.lib.common.Amount +import net.taler.lib.wallet.runCoroutine import kotlin.test.Ignore import kotlin.test.Test import kotlin.test.assertEquals @@ -25,7 +26,7 @@ import kotlin.test.assertTrue @Ignore // Live-Test which fails when test environment changes or is not available class WalletApiTest { - private val api = WalletApi() + private val api = WalletApiImpl() private val exchangeBaseUrl = "https://exchange.test.taler.net/" private val withdrawUri = diff --git a/wallet/src/commonTest/kotlin/net/taler/lib/wallet/crypto/DepositTest.kt b/wallet/src/commonTest/kotlin/net/taler/lib/wallet/crypto/DepositTest.kt index e3017a3..28354c9 100644 --- a/wallet/src/commonTest/kotlin/net/taler/lib/wallet/crypto/DepositTest.kt +++ b/wallet/src/commonTest/kotlin/net/taler/lib/wallet/crypto/DepositTest.kt @@ -18,8 +18,10 @@ package net.taler.lib.wallet.crypto import net.taler.lib.common.Amount import net.taler.lib.common.Timestamp -import net.taler.lib.wallet.crypto.Deposit.CoinDepositPermission -import net.taler.lib.wallet.crypto.Deposit.DepositInfo +import net.taler.lib.crypto.CryptoFactory +import net.taler.lib.crypto.Deposit +import net.taler.lib.crypto.Deposit.CoinDepositPermission +import net.taler.lib.crypto.Deposit.DepositInfo import kotlin.test.Test import kotlin.test.assertEquals diff --git a/wallet/src/commonTest/kotlin/net/taler/lib/wallet/crypto/RecoupTest.kt b/wallet/src/commonTest/kotlin/net/taler/lib/wallet/crypto/RecoupTest.kt index 035b7d7..4e18391 100644 --- a/wallet/src/commonTest/kotlin/net/taler/lib/wallet/crypto/RecoupTest.kt +++ b/wallet/src/commonTest/kotlin/net/taler/lib/wallet/crypto/RecoupTest.kt @@ -17,6 +17,7 @@ package net.taler.lib.wallet.crypto import net.taler.lib.common.Amount +import net.taler.lib.crypto.CryptoFactory import net.taler.lib.wallet.CoinRecord import net.taler.lib.wallet.CoinSourceType.REFRESH import net.taler.lib.wallet.CoinSourceType.WITHDRAW diff --git a/wallet/src/commonTest/kotlin/net/taler/lib/wallet/crypto/RefreshPlanchetTest.kt b/wallet/src/commonTest/kotlin/net/taler/lib/wallet/crypto/RefreshPlanchetTest.kt index a56d191..830fef1 100644 --- a/wallet/src/commonTest/kotlin/net/taler/lib/wallet/crypto/RefreshPlanchetTest.kt +++ b/wallet/src/commonTest/kotlin/net/taler/lib/wallet/crypto/RefreshPlanchetTest.kt @@ -16,7 +16,9 @@ package net.taler.lib.wallet.crypto -import net.taler.lib.wallet.Base32Crockford +import net.taler.lib.crypto.CryptoFactory +import net.taler.lib.crypto.FreshCoin +import net.taler.lib.crypto.Base32Crockford import kotlin.test.Test import kotlin.test.assertEquals diff --git a/wallet/src/commonTest/kotlin/net/taler/lib/wallet/crypto/SignatureTest.kt b/wallet/src/commonTest/kotlin/net/taler/lib/wallet/crypto/SignatureTest.kt index b3228b9..59a9fd5 100644 --- a/wallet/src/commonTest/kotlin/net/taler/lib/wallet/crypto/SignatureTest.kt +++ b/wallet/src/commonTest/kotlin/net/taler/lib/wallet/crypto/SignatureTest.kt @@ -18,7 +18,8 @@ package net.taler.lib.wallet.crypto import net.taler.lib.common.Amount import net.taler.lib.common.Timestamp -import net.taler.lib.wallet.Base32Crockford +import net.taler.lib.crypto.CryptoFactory +import net.taler.lib.crypto.Base32Crockford import net.taler.lib.wallet.crypto.Signature.PurposeBuilder import net.taler.lib.wallet.exchange.DenominationRecord import net.taler.lib.wallet.exchange.DenominationStatus.Unverified |