import javax.servlet.http.HttpSession;
import org.apache.commons.codec.binary.Hex;
-import org.drools.core.command.assertion.AssertEquals;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
@Test(expected=RoleFunctionException.class)
public void decodeFunctionCodeTestWithException() throws DecoderException, RoleFunctionException {
PowerMockito.mockStatic(Hex.class);
- PowerMockito.when(Hex.decodeHex(Matchers.any())).thenThrow(DecoderException.class);
+ PowerMockito.when(Hex.decodeHex(Matchers.anyString().toCharArray())).thenThrow(DecoderException.class);
EPUserUtils.decodeFunctionCode("n+");
}