From 20c5bd185a48ce3752d621a3c831d3a9d6064b06 Mon Sep 17 00:00:00 2001
From: KKlaue <kathariina.klaue@gmail.com>
Date: Mon, 11 Jun 2018 18:07:51 +0200
Subject: [PATCH] fix: Category

fix: ExampleFeedback
---
 .../gf/modules/peer2peerfeedback/Category.java |  2 +-
 .../peer2peerfeedback/ExampleFeedback.java     | 18 +++++++++---------
 2 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/gemeinsamforschen/src/main/java/unipotsdam/gf/modules/peer2peerfeedback/Category.java b/gemeinsamforschen/src/main/java/unipotsdam/gf/modules/peer2peerfeedback/Category.java
index 9e5b762d..161a1cc4 100644
--- a/gemeinsamforschen/src/main/java/unipotsdam/gf/modules/peer2peerfeedback/Category.java
+++ b/gemeinsamforschen/src/main/java/unipotsdam/gf/modules/peer2peerfeedback/Category.java
@@ -6,5 +6,5 @@ package unipotsdam.gf.modules.peer2peerfeedback;
  */
 
 public enum Category {
-    RECHERCHE, FORSCHUNGSFRAGE, UNTERSUCHUNGSKONZEPT, METHODIK, DURCHFÃœHRUNG, AUSWERTUNG
+    RECHERCHE, FORSCHUNGSFRAGE, UNTERSUCHUNGSKONZEPT, METHODIK, DURCHFUEHRUNG, AUSWERTUNG
 }
diff --git a/gemeinsamforschen/src/main/java/unipotsdam/gf/modules/peer2peerfeedback/ExampleFeedback.java b/gemeinsamforschen/src/main/java/unipotsdam/gf/modules/peer2peerfeedback/ExampleFeedback.java
index a840ac5f..9c143933 100644
--- a/gemeinsamforschen/src/main/java/unipotsdam/gf/modules/peer2peerfeedback/ExampleFeedback.java
+++ b/gemeinsamforschen/src/main/java/unipotsdam/gf/modules/peer2peerfeedback/ExampleFeedback.java
@@ -10,19 +10,19 @@ import java.io.File;
 
 public class ExampleFeedback {
 
-    User feebackrec = new User();
+    String feedbacktopic = "Vorschlag zur Methodik";
+    String feedbacktype = "Text";
+    Category feedbackcategory = Category.METHODIK;
+    User feedbackrec = new User();
     User feedbacksend = new User();
+    File file = new File("src/main/resources/example.txt"); //gibt erstmal nur einen Pfad an
+    //String path = file.getAbsolutePath();
 
 
-    public Peer2PeerFeedback examplePeerFeedback (String feedbacktopic, String feedbacktype, Category feedbackcategory, File document, User feedbacksender, User feedbackreceiver){
+    public Peer2PeerFeedback examplePeerFeedback (){
 
-        Peer2PeerFeedback example = new Peer2PeerFeedback(feedbacktopic, feedbacktype, feedbackcategory, document, feedbacksender, feedbackreceiver);
-        example.setFeedbacktopic("Vorschlag zur Methodik");
-        example.setDocument(new File("C:/exampleMethodik.txt"));
-        example.setFeedbackcategory(Category.METHODIK);
-        example.setFeedbacktype("Text");
-        example.setFeedbacksender(feedbacksend);
-        example.setFeedbackreceiver(feebackrec);
+        Peer2PeerFeedback example = new Peer2PeerFeedback(feedbacktopic, feedbacktype,
+                feedbackcategory, file, feedbacksend, feedbackrec);
 
         return example;
     }
-- 
GitLab