Program: 90580
Project: 90580
Buggy source:
@Override public void processAction(ActionRequest portletReq,ActionResponse portletResp) throws PortletException, IOException {
  LOGGER.entering(LOG_CLASS,"String_Node_Str");
  portletResp.setRenderParameters(portletReq.getParameterMap());
  long tid=Thread.currentThread().getId();
  portletReq.setAttribute(THREADID_ATTR,tid);
  StringWriter writer=new StringWriter();
  JSR286ApiTestCaseDetails tcd=new JSR286ApiTestCaseDetails();
  ClassChecker cc=new ClassChecker(portletReq.getClass());
  TestResult tr0=tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETPORTLETINPUTSTREAM1);
  String getparm1=portletReq.getParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETPORTLETINPUTSTREAM1);
  if (getparm1 != null && getparm1.equals(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETPORTLETINPUTSTREAM1)) {
    tr0.setTcSuccess(true);
    tr0.appendTcDetail("String_Node_Str");
  }
 else {
    portletResp.setRenderParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETPORTLETINPUTSTREAM1,V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETPORTLETINPUTSTREAM1);
  }
  tr0.writeTo(writer);
  TestResult tr1=tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETPORTLETINPUTSTREAM2);
  String getparm2=portletReq.getParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETPORTLETINPUTSTREAM2);
  if (getparm2 != null && getparm2.equals(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETPORTLETINPUTSTREAM2)) {
    try {
      portletReq.getReader();
      portletReq.getPortletInputStream();
      tr1.appendTcDetail("String_Node_Str");
    }
 catch (    IllegalStateException iae) {
      tr1.setTcSuccess(true);
    }
  }
 else {
    portletResp.setRenderParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETPORTLETINPUTSTREAM2,V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETPORTLETINPUTSTREAM2);
  }
  tr1.writeTo(writer);
  TestResult tr2=tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETPORTLETINPUTSTREAM3);
  String getparm3=portletReq.getParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETPORTLETINPUTSTREAM3);
  if (getparm3 != null && getparm3.equals(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETPORTLETINPUTSTREAM3)) {
    try {
      portletReq.getPortletInputStream();
      tr2.appendTcDetail("String_Node_Str");
    }
 catch (    IllegalStateException iae) {
      tr2.setTcSuccess(true);
    }
  }
 else {
    portletResp.setRenderParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETPORTLETINPUTSTREAM3,V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETPORTLETINPUTSTREAM3);
  }
  tr2.writeTo(writer);
  TestResult tr3=tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_SETCHARACTERENCODING1);
  String setchar1=portletReq.getParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_SETCHARACTERENCODING1);
  if (setchar1 != null && setchar1.equals(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_SETCHARACTERENCODING1)) {
    portletReq.setCharacterEncoding("String_Node_Str");
    String getcharcode=portletReq.getCharacterEncoding();
    if (getcharcode != null && getcharcode.equals("String_Node_Str")) {
      tr3.setTcSuccess(true);
    }
 else {
      tr3.appendTcDetail("String_Node_Str" + getcharcode);
    }
  }
 else {
    portletResp.setRenderParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_SETCHARACTERENCODING1,V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_SETCHARACTERENCODING1);
  }
  tr3.writeTo(writer);
  TestResult tr4=tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_SETCHARACTERENCODING2);
  String setchar2=portletReq.getParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_SETCHARACTERENCODING2);
  if (setchar2 != null && setchar2.equals(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_SETCHARACTERENCODING2)) {
    try {
      portletReq.getParameter("String_Node_Str");
      portletReq.setCharacterEncoding("String_Node_Str");
      tr4.setTcSuccess(true);
      tr4.appendTcDetail("String_Node_Str");
    }
 catch (    IllegalStateException iae) {
      tr4.setTcSuccess(true);
    }
  }
 else {
    portletResp.setRenderParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_SETCHARACTERENCODING2,V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_SETCHARACTERENCODING2);
  }
  tr4.writeTo(writer);
  TestResult tr5=tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_SETCHARACTERENCODING3);
  String setchar3=portletReq.getParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_SETCHARACTERENCODING3);
  if (setchar3 != null && setchar3.equals(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_SETCHARACTERENCODING3)) {
    try {
      portletReq.getReader();
      portletReq.setCharacterEncoding("String_Node_Str");
      tr5.appendTcDetail("String_Node_Str");
    }
 catch (    IllegalStateException iae) {
      tr5.setTcSuccess(true);
    }
  }
 else {
    portletResp.setRenderParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_SETCHARACTERENCODING3,V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_SETCHARACTERENCODING3);
  }
  tr5.writeTo(writer);
  TestResult tr6=tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_SETCHARACTERENCODING4);
  String setchar4=portletReq.getParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_SETCHARACTERENCODING4);
  if (setchar4 != null && setchar4.equals(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_SETCHARACTERENCODING4)) {
    try {
      portletReq.setCharacterEncoding("String_Node_Str");
      tr6.appendTcDetail("String_Node_Str");
    }
 catch (    UnsupportedEncodingException une) {
      tr6.setTcSuccess(true);
    }
  }
 else {
    portletResp.setRenderParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_SETCHARACTERENCODING4,V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_SETCHARACTERENCODING4);
  }
  tr6.writeTo(writer);
  TestResult tr7=tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETREADER1);
  String getRead1=portletReq.getParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETREADER1);
  if (getRead1 != null && getRead1.equals(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETREADER1)) {
    tr7.setTcSuccess(true);
    tr7.appendTcDetail("String_Node_Str");
  }
 else {
    portletResp.setRenderParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETREADER1,V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETREADER1);
  }
  tr7.writeTo(writer);
  TestResult tr8=tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETREADER2);
  String getRead2=portletReq.getParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETREADER2);
  if (getRead2 != null && getRead2.equals(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETREADER2)) {
    try {
      portletReq.getPortletInputStream();
      tr8.appendTcDetail("String_Node_Str");
    }
 catch (    IllegalStateException iae) {
      tr8.setTcSuccess(true);
    }
  }
 else {
    portletResp.setRenderParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETREADER2,V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETREADER2);
  }
  tr8.writeTo(writer);
  TestResult tr9=tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETREADER3);
  String getRead3=portletReq.getParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETREADER3);
  if (getRead3 != null && getRead3.equals(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETREADER3)) {
    try {
      portletReq.getReader();
      tr9.appendTcDetail("String_Node_Str");
    }
 catch (    IllegalStateException iae) {
      tr9.setTcSuccess(true);
    }
  }
 else {
    portletResp.setRenderParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETREADER3,V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETREADER3);
  }
  tr9.writeTo(writer);
  TestResult tr10=tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETREADER5);
  String getRead5=portletReq.getParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETREADER5);
  if (getRead5 != null && getRead5.equals(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETREADER5)) {
    try {
      portletReq.setCharacterEncoding("String_Node_Str");
      portletReq.getReader();
      tr6.appendTcDetail("String_Node_Str");
    }
 catch (    UnsupportedEncodingException une) {
      tr10.setTcSuccess(true);
    }
  }
 else {
    portletResp.setRenderParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETREADER5,V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETREADER5);
  }
  tr10.writeTo(writer);
  TestResult tr11=tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETCHARACTERENCODING1);
  String getChar1=portletReq.getParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETCHARACTERENCODING1);
  if (getChar1 != null && getChar1.equals(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETCHARACTERENCODING1)) {
    String getCharEncde=portletReq.getCharacterEncoding();
    if (getCharEncde != null) {
      tr11.setTcSuccess(true);
    }
 else {
      tr11.appendTcDetail("String_Node_Str");
    }
  }
 else {
    portletResp.setRenderParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETCHARACTERENCODING1,V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETCHARACTERENCODING1);
  }
  tr11.writeTo(writer);
  TestResult tr12=tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETCHARACTERENCODING2);
  String getChar2=portletReq.getParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETCHARACTERENCODING2);
  if (getChar2 != null && getChar2.equals(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETCHARACTERENCODING2)) {
    tr12.setTcSuccess(true);
    tr12.appendTcDetail("String_Node_Str");
  }
 else {
    portletResp.setRenderParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETCHARACTERENCODING2,V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETCHARACTERENCODING2);
  }
  tr12.writeTo(writer);
  TestResult tr13=tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETCONTENTTYPE1);
  String getCnt1=portletReq.getParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETCONTENTTYPE1);
  if (getCnt1 != null && getCnt1.equals(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETCONTENTTYPE1)) {
    String getContype=portletReq.getContentType();
    if (getContype != null) {
      tr13.setTcSuccess(true);
    }
 else {
      tr13.appendTcDetail("String_Node_Str" + getContype);
    }
  }
 else {
    portletResp.setRenderParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETCONTENTTYPE1,V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETCONTENTTYPE1);
  }
  tr13.writeTo(writer);
  TestResult tr14=tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETCONTENTTYPE2);
  String getCnt2=portletReq.getParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETCONTENTTYPE2);
  if (getCnt2 != null && getCnt2.equals(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETCONTENTTYPE2)) {
    tr14.setTcSuccess(true);
    tr14.appendTcDetail("String_Node_Str");
  }
 else {
    portletResp.setRenderParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETCONTENTTYPE2,V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETCONTENTTYPE2);
  }
  tr14.writeTo(writer);
  TestResult tr15=tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETCONTENTLENGTH1);
  String getCntl1=portletReq.getParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETCONTENTLENGTH1);
  if (getCntl1 != null && getCntl1.equals(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETCONTENTLENGTH1)) {
    int getConLgt=portletReq.getContentLength();
    if (getConLgt != -1) {
      tr15.setTcSuccess(true);
    }
 else {
      tr15.appendTcDetail("String_Node_Str" + getConLgt);
    }
  }
 else {
    portletResp.setRenderParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETCONTENTLENGTH1,V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETCONTENTLENGTH1);
  }
  tr15.writeTo(writer);
  TestResult tr16=tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETCONTENTLENGTH2);
  String getCntl2=portletReq.getParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETCONTENTLENGTH2);
  if (getCntl2 != null && getCntl2.equals(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETCONTENTLENGTH2)) {
    tr16.setTcSuccess(true);
    tr16.appendTcDetail("String_Node_Str");
  }
 else {
    portletResp.setRenderParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETCONTENTLENGTH2,V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETCONTENTLENGTH2);
  }
  tr16.writeTo(writer);
  TestResult tr17=tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETMETHOD);
  String getMethd=portletReq.getParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETMETHOD);
  if (getMethd != null && getMethd.equals(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETMETHOD)) {
    String getmethod=portletReq.getMethod();
    if (getmethod != null && getmethod.equals("String_Node_Str")) {
      tr17.setTcSuccess(true);
    }
 else {
      tr17.appendTcDetail("String_Node_Str" + getmethod);
    }
  }
 else {
    portletResp.setRenderParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETMETHOD,V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETMETHOD);
  }
  tr17.writeTo(writer);
  portletReq.getPortletSession().setAttribute(Constants.RESULT_ATTR_PREFIX + "String_Node_Str",writer.toString(),APPLICATION_SCOPE);
}

Fixed version (ground truth):
@Override public void processAction(ActionRequest portletReq,ActionResponse portletResp) throws PortletException, IOException {
  LOGGER.entering(LOG_CLASS,"String_Node_Str");
  portletResp.setRenderParameters(portletReq.getParameterMap());
  long tid=Thread.currentThread().getId();
  portletReq.setAttribute(THREADID_ATTR,tid);
  StringWriter writer=new StringWriter();
  JSR286ApiTestCaseDetails tcd=new JSR286ApiTestCaseDetails();
  TestResult tr0=tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETPORTLETINPUTSTREAM1);
  String getparm1=portletReq.getParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETPORTLETINPUTSTREAM1);
  if (getparm1 != null && getparm1.equals(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETPORTLETINPUTSTREAM1)) {
    tr0.setTcSuccess(true);
    tr0.appendTcDetail("String_Node_Str");
  }
 else {
    portletResp.setRenderParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETPORTLETINPUTSTREAM1,V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETPORTLETINPUTSTREAM1);
  }
  tr0.writeTo(writer);
  TestResult tr1=tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETPORTLETINPUTSTREAM2);
  String getparm2=portletReq.getParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETPORTLETINPUTSTREAM2);
  if (getparm2 != null && getparm2.equals(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETPORTLETINPUTSTREAM2)) {
    try {
      portletReq.getReader();
      portletReq.getPortletInputStream();
      tr1.appendTcDetail("String_Node_Str");
    }
 catch (    IllegalStateException iae) {
      tr1.setTcSuccess(true);
    }
  }
 else {
    portletResp.setRenderParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETPORTLETINPUTSTREAM2,V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETPORTLETINPUTSTREAM2);
  }
  tr1.writeTo(writer);
  TestResult tr2=tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETPORTLETINPUTSTREAM3);
  String getparm3=portletReq.getParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETPORTLETINPUTSTREAM3);
  if (getparm3 != null && getparm3.equals(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETPORTLETINPUTSTREAM3)) {
    try {
      portletReq.getPortletInputStream();
      tr2.appendTcDetail("String_Node_Str");
    }
 catch (    IllegalStateException iae) {
      tr2.setTcSuccess(true);
    }
  }
 else {
    portletResp.setRenderParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETPORTLETINPUTSTREAM3,V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETPORTLETINPUTSTREAM3);
  }
  tr2.writeTo(writer);
  TestResult tr3=tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_SETCHARACTERENCODING1);
  String setchar1=portletReq.getParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_SETCHARACTERENCODING1);
  if (setchar1 != null && setchar1.equals(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_SETCHARACTERENCODING1)) {
    portletReq.setCharacterEncoding("String_Node_Str");
    String getcharcode=portletReq.getCharacterEncoding();
    if (getcharcode != null && getcharcode.equals("String_Node_Str")) {
      tr3.setTcSuccess(true);
    }
 else {
      tr3.appendTcDetail("String_Node_Str" + getcharcode);
    }
  }
 else {
    portletResp.setRenderParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_SETCHARACTERENCODING1,V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_SETCHARACTERENCODING1);
  }
  tr3.writeTo(writer);
  TestResult tr4=tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_SETCHARACTERENCODING2);
  String setchar2=portletReq.getParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_SETCHARACTERENCODING2);
  if (setchar2 != null && setchar2.equals(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_SETCHARACTERENCODING2)) {
    try {
      portletReq.getParameter("String_Node_Str");
      portletReq.setCharacterEncoding("String_Node_Str");
      tr4.setTcSuccess(true);
      tr4.appendTcDetail("String_Node_Str");
    }
 catch (    IllegalStateException iae) {
      tr4.setTcSuccess(true);
    }
  }
 else {
    portletResp.setRenderParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_SETCHARACTERENCODING2,V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_SETCHARACTERENCODING2);
  }
  tr4.writeTo(writer);
  TestResult tr5=tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_SETCHARACTERENCODING3);
  String setchar3=portletReq.getParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_SETCHARACTERENCODING3);
  if (setchar3 != null && setchar3.equals(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_SETCHARACTERENCODING3)) {
    try {
      portletReq.getReader();
      portletReq.setCharacterEncoding("String_Node_Str");
      tr5.appendTcDetail("String_Node_Str");
    }
 catch (    IllegalStateException iae) {
      tr5.setTcSuccess(true);
    }
  }
 else {
    portletResp.setRenderParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_SETCHARACTERENCODING3,V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_SETCHARACTERENCODING3);
  }
  tr5.writeTo(writer);
  TestResult tr6=tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_SETCHARACTERENCODING4);
  String setchar4=portletReq.getParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_SETCHARACTERENCODING4);
  if (setchar4 != null && setchar4.equals(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_SETCHARACTERENCODING4)) {
    try {
      portletReq.setCharacterEncoding("String_Node_Str");
      tr6.appendTcDetail("String_Node_Str");
    }
 catch (    UnsupportedEncodingException une) {
      tr6.setTcSuccess(true);
    }
  }
 else {
    portletResp.setRenderParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_SETCHARACTERENCODING4,V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_SETCHARACTERENCODING4);
  }
  tr6.writeTo(writer);
  TestResult tr7=tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETREADER1);
  String getRead1=portletReq.getParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETREADER1);
  if (getRead1 != null && getRead1.equals(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETREADER1)) {
    tr7.setTcSuccess(true);
    tr7.appendTcDetail("String_Node_Str");
  }
 else {
    portletResp.setRenderParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETREADER1,V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETREADER1);
  }
  tr7.writeTo(writer);
  TestResult tr8=tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETREADER2);
  String getRead2=portletReq.getParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETREADER2);
  if (getRead2 != null && getRead2.equals(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETREADER2)) {
    try {
      portletReq.getPortletInputStream();
      tr8.appendTcDetail("String_Node_Str");
    }
 catch (    IllegalStateException iae) {
      tr8.setTcSuccess(true);
    }
  }
 else {
    portletResp.setRenderParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETREADER2,V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETREADER2);
  }
  tr8.writeTo(writer);
  TestResult tr9=tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETREADER3);
  String getRead3=portletReq.getParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETREADER3);
  if (getRead3 != null && getRead3.equals(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETREADER3)) {
    try {
      portletReq.getReader();
      tr9.appendTcDetail("String_Node_Str");
    }
 catch (    IllegalStateException iae) {
      tr9.setTcSuccess(true);
    }
  }
 else {
    portletResp.setRenderParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETREADER3,V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETREADER3);
  }
  tr9.writeTo(writer);
  TestResult tr10=tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETREADER5);
  String getRead5=portletReq.getParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETREADER5);
  if (getRead5 != null && getRead5.equals(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETREADER5)) {
    try {
      portletReq.setCharacterEncoding("String_Node_Str");
      portletReq.getReader();
      tr6.appendTcDetail("String_Node_Str");
    }
 catch (    UnsupportedEncodingException une) {
      tr10.setTcSuccess(true);
    }
  }
 else {
    portletResp.setRenderParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETREADER5,V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETREADER5);
  }
  tr10.writeTo(writer);
  TestResult tr11=tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETCHARACTERENCODING1);
  String getChar1=portletReq.getParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETCHARACTERENCODING1);
  if (getChar1 != null && getChar1.equals(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETCHARACTERENCODING1)) {
    String getCharEncde=portletReq.getCharacterEncoding();
    if (getCharEncde != null) {
      tr11.setTcSuccess(true);
    }
 else {
      tr11.appendTcDetail("String_Node_Str");
    }
  }
 else {
    portletResp.setRenderParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETCHARACTERENCODING1,V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETCHARACTERENCODING1);
  }
  tr11.writeTo(writer);
  TestResult tr12=tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETCHARACTERENCODING2);
  String getChar2=portletReq.getParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETCHARACTERENCODING2);
  if (getChar2 != null && getChar2.equals(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETCHARACTERENCODING2)) {
    tr12.setTcSuccess(true);
    tr12.appendTcDetail("String_Node_Str");
  }
 else {
    portletResp.setRenderParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETCHARACTERENCODING2,V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETCHARACTERENCODING2);
  }
  tr12.writeTo(writer);
  TestResult tr13=tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETCONTENTTYPE1);
  String getCnt1=portletReq.getParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETCONTENTTYPE1);
  if (getCnt1 != null && getCnt1.equals(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETCONTENTTYPE1)) {
    String getContype=portletReq.getContentType();
    if (getContype != null) {
      tr13.setTcSuccess(true);
    }
 else {
      tr13.appendTcDetail("String_Node_Str" + getContype);
    }
  }
 else {
    portletResp.setRenderParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETCONTENTTYPE1,V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETCONTENTTYPE1);
  }
  tr13.writeTo(writer);
  TestResult tr14=tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETCONTENTTYPE2);
  String getCnt2=portletReq.getParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETCONTENTTYPE2);
  if (getCnt2 != null && getCnt2.equals(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETCONTENTTYPE2)) {
    tr14.setTcSuccess(true);
    tr14.appendTcDetail("String_Node_Str");
  }
 else {
    portletResp.setRenderParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETCONTENTTYPE2,V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETCONTENTTYPE2);
  }
  tr14.writeTo(writer);
  TestResult tr15=tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETCONTENTLENGTH1);
  String getCntl1=portletReq.getParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETCONTENTLENGTH1);
  if (getCntl1 != null && getCntl1.equals(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETCONTENTLENGTH1)) {
    int getConLgt=portletReq.getContentLength();
    if (getConLgt != -1) {
      tr15.setTcSuccess(true);
    }
 else {
      tr15.appendTcDetail("String_Node_Str" + getConLgt);
    }
  }
 else {
    portletResp.setRenderParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETCONTENTLENGTH1,V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETCONTENTLENGTH1);
  }
  tr15.writeTo(writer);
  TestResult tr16=tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETCONTENTLENGTH2);
  String getCntl2=portletReq.getParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETCONTENTLENGTH2);
  if (getCntl2 != null && getCntl2.equals(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETCONTENTLENGTH2)) {
    tr16.setTcSuccess(true);
    tr16.appendTcDetail("String_Node_Str");
  }
 else {
    portletResp.setRenderParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETCONTENTLENGTH2,V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETCONTENTLENGTH2);
  }
  tr16.writeTo(writer);
  TestResult tr17=tcd.getTestResultFailed(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETMETHOD);
  String getMethd=portletReq.getParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETMETHOD);
  if (getMethd != null && getMethd.equals(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETMETHOD)) {
    String getmethod=portletReq.getMethod();
    if (getmethod != null && getmethod.equals("String_Node_Str")) {
      tr17.setTcSuccess(true);
    }
 else {
      tr17.appendTcDetail("String_Node_Str" + getmethod);
    }
  }
 else {
    portletResp.setRenderParameter(V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETMETHOD,V2REQUESTTESTS_CLIENTDATAREQUEST_APIACTION_GETMETHOD);
  }
  tr17.writeTo(writer);
  portletReq.getPortletSession().setAttribute(Constants.RESULT_ATTR_PREFIX + "String_Node_Str",writer.toString(),APPLICATION_SCOPE);
}