Skip to content

Commit

Permalink
fix: CARITAS-243
Browse files Browse the repository at this point in the history
* remove UPLOAD_FILE_TO_FEEDBACK_ROOM_METHOD_NAME
  • Loading branch information
Leandro13Silva13 committed Aug 9, 2024
1 parent 69a3d41 commit f11f17a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 17 deletions.
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -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;
Expand Down Expand Up @@ -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);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit f11f17a

Please sign in to comment.