From f11f17ad56495ddcbd94de7315d4476d7f587816 Mon Sep 17 00:00:00 2001
From: LeandroSilva <leandro.silva@virtual-identity.com>
Date: Fri, 9 Aug 2024 15:19:11 +0200
Subject: [PATCH] fix: CARITAS-243 * remove
 UPLOAD_FILE_TO_FEEDBACK_ROOM_METHOD_NAME

---
 .../api/controller/UploadControllerTest.java     | 16 ----------------
 .../helper/MethodAndParameterConstants.java      |  1 -
 2 files changed, 17 deletions(-)

diff --git a/src/test/java/de/caritas/cob/uploadservice/api/controller/UploadControllerTest.java b/src/test/java/de/caritas/cob/uploadservice/api/controller/UploadControllerTest.java
index 6616c39..23a4314 100644
--- a/src/test/java/de/caritas/cob/uploadservice/api/controller/UploadControllerTest.java
+++ b/src/test/java/de/caritas/cob/uploadservice/api/controller/UploadControllerTest.java
@@ -1,7 +1,5 @@
 package de.caritas.cob.uploadservice.api.controller;
 
-import static de.caritas.cob.uploadservice.helper.MethodAndParameterConstants.UPLOAD_FILE_TO_FEEDBACK_ROOM_METHOD_NAME;
-import static de.caritas.cob.uploadservice.helper.MethodAndParameterConstants.UPLOAD_FILE_TO_FEEDBACK_ROOM_METHOD_PARAMS;
 import static de.caritas.cob.uploadservice.helper.MethodAndParameterConstants.UPLOAD_FILE_TO_ROOM_METHOD_NAME;
 import static de.caritas.cob.uploadservice.helper.MethodAndParameterConstants.UPLOAD_FILE_TO_ROOM_METHOD_PARAMS;
 import static org.junit.Assert.assertNotNull;
@@ -10,7 +8,6 @@
 import de.caritas.cob.uploadservice.api.facade.UploadFacade;
 import de.caritas.cob.uploadservice.api.service.EncryptionService;
 import java.lang.reflect.Method;
-import lombok.NonNull;
 import org.junit.Test;
 import org.junit.runner.RunWith;
 import org.mockito.InjectMocks;
@@ -40,17 +37,4 @@ public void test_Should_Fail_WhenMethodUploadFileToRoomDoesNotHaveTempCleanupAnn
 
     assertNotNull(annotation);
   }
-
-  @Test
-  public void test_Should_Fail_WhenMethodUploadFileToFeedbackRoomDoesNotHaveTempCleanupAnnotation()
-      throws NoSuchMethodException {
-
-    Class classToTest = uploadController.getClass();
-    Method methodToTest =
-        classToTest.getMethod(
-            UPLOAD_FILE_TO_FEEDBACK_ROOM_METHOD_NAME, UPLOAD_FILE_TO_FEEDBACK_ROOM_METHOD_PARAMS);
-    TempCleanup annotation = methodToTest.getAnnotation(TempCleanup.class);
-
-    assertNotNull(annotation);
-  }
 }
diff --git a/src/test/java/de/caritas/cob/uploadservice/helper/MethodAndParameterConstants.java b/src/test/java/de/caritas/cob/uploadservice/helper/MethodAndParameterConstants.java
index cd71411..f2815b8 100644
--- a/src/test/java/de/caritas/cob/uploadservice/helper/MethodAndParameterConstants.java
+++ b/src/test/java/de/caritas/cob/uploadservice/helper/MethodAndParameterConstants.java
@@ -19,7 +19,6 @@ public class MethodAndParameterConstants {
         String.class,
         String.class
       };
-  public static final String UPLOAD_FILE_TO_FEEDBACK_ROOM_METHOD_NAME = "uploadFileToFeedbackRoom";
   public static final Class<?>[] UPLOAD_FILE_TO_FEEDBACK_ROOM_METHOD_PARAMS =
       new Class[] {
         String.class,