From cabb951195619ed738b8df7f8c83601d6066ccae Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Sebastian=20K=C3=BCrten?= <sebastian@mobanisto.de>
Date: Fri, 8 Oct 2021 09:45:52 +0200
Subject: [PATCH] Move testing code for displaying conversation data to
 separate file

---
 .idea/runConfigurations/TestListConversationDataKt.xml | 10 ++++++++++
 .../briar/desktop/testdata/ConversationsData.kt        |  9 ---------
 .../briar/desktop/testdata/TestListConversationData.kt | 10 ++++++++++
 3 files changed, 20 insertions(+), 9 deletions(-)
 create mode 100644 .idea/runConfigurations/TestListConversationDataKt.xml
 create mode 100644 src/test/kotlin/org/briarproject/briar/desktop/testdata/TestListConversationData.kt

diff --git a/.idea/runConfigurations/TestListConversationDataKt.xml b/.idea/runConfigurations/TestListConversationDataKt.xml
new file mode 100644
index 0000000000..969cc64f71
--- /dev/null
+++ b/.idea/runConfigurations/TestListConversationDataKt.xml
@@ -0,0 +1,10 @@
+<component name="ProjectRunConfigurationManager">
+  <configuration default="false" name="TestListConversationDataKt" type="JetRunConfigurationType" nameIsGenerated="true">
+    <option name="MAIN_CLASS_NAME" value="org.briarproject.briar.desktop.testdata.TestListConversationDataKt" />
+    <module name="briar-desktop.test" />
+    <shortenClasspath name="NONE" />
+    <method v="2">
+      <option name="Make" enabled="true" />
+    </method>
+  </configuration>
+</component>
\ No newline at end of file
diff --git a/src/test/kotlin/org/briarproject/briar/desktop/testdata/ConversationsData.kt b/src/test/kotlin/org/briarproject/briar/desktop/testdata/ConversationsData.kt
index 9c46ed649c..74fee8baa6 100644
--- a/src/test/kotlin/org/briarproject/briar/desktop/testdata/ConversationsData.kt
+++ b/src/test/kotlin/org/briarproject/briar/desktop/testdata/ConversationsData.kt
@@ -98,12 +98,3 @@ val conversations = conversations {
         }
     }
 }
-
-fun main(args: Array<String>) {
-    for (conversation in conversations.persons) {
-        println("conversation with: ${conversation.name}")
-        for (message in conversation.messages) {
-            println("  ${message.direction} ${message.text} ${message.read} ${message.date}")
-        }
-    }
-}
diff --git a/src/test/kotlin/org/briarproject/briar/desktop/testdata/TestListConversationData.kt b/src/test/kotlin/org/briarproject/briar/desktop/testdata/TestListConversationData.kt
new file mode 100644
index 0000000000..192669f8f8
--- /dev/null
+++ b/src/test/kotlin/org/briarproject/briar/desktop/testdata/TestListConversationData.kt
@@ -0,0 +1,10 @@
+package org.briarproject.briar.desktop.testdata
+
+fun main(args: Array<String>) {
+    for (conversation in conversations.persons) {
+        println("conversation with: ${conversation.name}")
+        for (message in conversation.messages) {
+            println("  ${message.direction} ${message.text} ${message.read} ${message.date}")
+        }
+    }
+}
-- 
GitLab