[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [libeufin] branch master updated: introducing nullable refe
From: |
gnunet |
Subject: |
[GNUnet-SVN] [libeufin] branch master updated: introducing nullable references |
Date: |
Thu, 17 Oct 2019 16:08:20 +0200 |
This is an automated email from the git hooks/post-receive script.
marcello pushed a commit to branch master
in repository libeufin.
The following commit(s) were added to refs/heads/master by this push:
new 60b6588 introducing nullable references
60b6588 is described below
commit 60b65886f825057a74e208de9a345c61115c128d
Author: Marcello Stanisci <address@hidden>
AuthorDate: Thu Oct 17 16:08:14 2019 +0200
introducing nullable references
---
sandbox/src/test/kotlin/DbTest.kt | 35 +++++++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+)
diff --git a/sandbox/src/test/kotlin/DbTest.kt
b/sandbox/src/test/kotlin/DbTest.kt
new file mode 100644
index 0000000..68f49e1
--- /dev/null
+++ b/sandbox/src/test/kotlin/DbTest.kt
@@ -0,0 +1,35 @@
+package tech.libeufin.sandbox
+
+import org.jetbrains.exposed.dao.EntityID
+import org.jetbrains.exposed.sql.transactions.transaction
+import org.junit.BeforeClass
+import org.junit.Test
+import org.junit.Before
+
+class DbTest {
+
+ @Before
+ fun setUp() {
+ dbCreateTables()
+ }
+
+ /**
+ * This function creates a EBICS subscriber _first_, and
+ * subsequently tries to insert a mock bianry value into
+ * the keys columns of the subscriber.
+ */
+ @Test
+ fun storeBinary() {
+ transaction {
+ // join table
+ val subscriber = createSubscriber()
+
+ val key = EbicsPublicKey.new {
+ pub = "BINARYVALUE".toByteArray()
+ state = KeyStates.NEW
+ }
+
+ subscriber.authorizationKey = key
+ }
+ }
+}
\ No newline at end of file
--
To stop receiving notification emails like this one, please contact
address@hidden.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [libeufin] branch master updated: introducing nullable references,
gnunet <=