This commit is contained in:
Suresh Kumar Anaparti 2026-04-15 11:18:17 +05:30
parent fbacf27221
commit e633b543a4
No known key found for this signature in database
GPG Key ID: D7CEAE3A9E71D0AA
1 changed files with 0 additions and 4 deletions

View File

@ -33,7 +33,6 @@ import static org.mockito.Mockito.when;
import java.io.IOException;
import java.lang.reflect.Field;
import java.lang.reflect.Modifier;
import java.net.InetSocketAddress;
import javax.naming.ConfigurationException;
@ -75,9 +74,6 @@ public class AgentTest {
// fix LOGGER access to inject mock
Field field = link.getClass().getDeclaredField("LOGGER");
field.setAccessible(true);
Field modifiersField = Field.class.getDeclaredField("modifiers");
modifiersField.setAccessible(true);
modifiersField.setInt(field, field.getModifiers() & ~Modifier.FINAL);
field.set(null, logger);
when(logger.isTraceEnabled()).thenReturn(true);