@BeforeEach void setUp() { when(mockErrorConfig.getCode()).thenReturn(TESTCODE);…
- User
@BeforeEach void setUp() { when(mockErrorConfig.getCode()).thenReturn(TEST_CODE); when(mockErrorConfig.getReason()).thenReturn(TEST_REASON); when(mockErrorConfig.getMessage()).thenReturn(TEST_MESSAGE_TEMPLATE); when(mockErrorConfig.getMessageCode()).thenReturn(TEST_MESSAGE_CODE); when(mockErrorConfig.getStatus()).thenReturn(TEST_CONFIG_STATUS); }
![CDATA[ org.mockito.exceptions.misusing.UnnecessaryStubbingException: Unnecessary stubbings detected. Clean & maintainable test code requires zero unnecessary code. Following stubbings are unnecessary (click to navigate to relevant line of code): 1. -> at com.dbs.siam.identity_profile_management_service.exception_handler.ErrorExceptionMapperTest.setUp(ErrorExceptionMapperTest.java:38) 2. -> at com.dbs.siam.identity_profile_management_service.exception_handler.ErrorExceptionMapperTest.setUp(ErrorExceptionMapperTest.java:39) 3. -> at com.dbs.siam.identity_profile_management_service.exception_handler.ErrorExceptionMapperTest.setUp(ErrorExceptionMapperTest.java:40) 4. -> at com.dbs.siam.identity_profile_management_service.exception_handler.ErrorExceptionMapperTest.setUp(ErrorExceptionMapperTest.java:41) 5. -> at com.dbs.siam.identity_profile_management_service.exception_handler.ErrorExceptionMapperTest.setUp(ErrorExceptionMapperTest.java:42) Please remove unnecessary stubbings or use 'lenient' strictness. More info: javadoc for UnnecessaryStubbingException class. ]]>
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.