gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [libeufin] 02/02: rename methods


From: gnunet
Subject: [GNUnet-SVN] [libeufin] 02/02: rename methods
Date: Tue, 22 Oct 2019 11:43:05 +0200

This is an automated email from the git hooks/post-receive script.

marcello pushed a commit to branch master
in repository libeufin.

commit 14cabeb098524400fa64d404384a589b95509c96
Author: Marcello Stanisci <address@hidden>
AuthorDate: Tue Oct 22 11:36:11 2019 +0200

    rename methods
---
 sandbox/src/main/kotlin/Main.kt               | 4 ++--
 sandbox/src/main/kotlin/XML.kt                | 4 ++--
 sandbox/src/test/kotlin/JaxbTest.kt           | 2 +-
 sandbox/src/test/kotlin/MarshalNonJaxbTest.kt | 2 +-
 sandbox/src/test/kotlin/ResponseTest.kt       | 2 +-
 5 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/sandbox/src/main/kotlin/Main.kt b/sandbox/src/main/kotlin/Main.kt
index 1c5de3f..1539f26 100644
--- a/sandbox/src/main/kotlin/Main.kt
+++ b/sandbox/src/main/kotlin/Main.kt
@@ -369,7 +369,7 @@ private suspend fun ApplicationCall.ebicsweb() {
                     respondText(
                         contentType = ContentType.Application.Xml,
                         status = HttpStatusCode.OK) {
-                            
xmlProcess.getStringFromJaxb(response.get()).toString()
+                            
xmlProcess.convertJaxbToString(response.get()).toString()
                     }
 
                     return
@@ -393,7 +393,7 @@ private suspend fun ApplicationCall.ebicsweb() {
                 )
             )
 
-            val responseText: String? = 
xmlProcess.getStringFromJaxb(hevResponse.get())
+            val responseText: String? = 
xmlProcess.convertJaxbToString(hevResponse.get())
 
             respondText(
                 contentType = ContentType.Application.Xml,
diff --git a/sandbox/src/main/kotlin/XML.kt b/sandbox/src/main/kotlin/XML.kt
index 75faa21..25f3a02 100644
--- a/sandbox/src/main/kotlin/XML.kt
+++ b/sandbox/src/main/kotlin/XML.kt
@@ -242,7 +242,7 @@ class XML {
      * @param document the DOM to extract the string from.
      * @return the final String, or null if errors occur.
      */
-    fun getStringFromDocument(document: Document): String? {
+    fun convertDocumentToString(document: Document): String? {
 
         try {
             /* Make Transformer.  */
@@ -272,7 +272,7 @@ class XML {
      * @param obj the JAXB instance
      * @return String representation of @a object, or null if errors occur
      */
-    fun <T> getStringFromJaxb(obj: JAXBElement<T>): String? {
+    fun <T> convertJaxbToString(obj: JAXBElement<T>): String? {
         val sw = StringWriter()
 
         try {
diff --git a/sandbox/src/test/kotlin/JaxbTest.kt 
b/sandbox/src/test/kotlin/JaxbTest.kt
index 8072b90..5de2cec 100644
--- a/sandbox/src/test/kotlin/JaxbTest.kt
+++ b/sandbox/src/test/kotlin/JaxbTest.kt
@@ -63,7 +63,7 @@ class JaxbTest {
      */
     @Test
     fun jaxbToString() {
-        processor.getStringFromJaxb(hevResponseJaxb.get())
+        processor.convertJaxbToString(hevResponseJaxb.get())
     }
 
     /**
diff --git a/sandbox/src/test/kotlin/MarshalNonJaxbTest.kt 
b/sandbox/src/test/kotlin/MarshalNonJaxbTest.kt
index 887d2fb..cc4759b 100644
--- a/sandbox/src/test/kotlin/MarshalNonJaxbTest.kt
+++ b/sandbox/src/test/kotlin/MarshalNonJaxbTest.kt
@@ -35,6 +35,6 @@ class MarshalNonJaxbTest {
         )
 
         val proc = XML()
-        println(proc.getStringFromJaxb(obj.get()))
+        println(proc.convertJaxbToString(obj.get()))
     }
 }
\ No newline at end of file
diff --git a/sandbox/src/test/kotlin/ResponseTest.kt 
b/sandbox/src/test/kotlin/ResponseTest.kt
index ffeb847..dea6973 100644
--- a/sandbox/src/test/kotlin/ResponseTest.kt
+++ b/sandbox/src/test/kotlin/ResponseTest.kt
@@ -17,7 +17,7 @@ class ResponseTest {
             "All is OK."
         )
 
-        print(xmlprocess.getStringFromJaxb(response.get()))
+        print(xmlprocess.convertJaxbToString(response.get()))
 
 
     }

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]