test_class.declarator: LOG = Logger.getLogger(TestMyAction.class.getName())
test_class.modifier: public static final
test_class.original_string: public static final Logger LOG = Logger.getLogger(TestMyAction.class.getName());
test_class.type: Logger
test_class.var_name: LOG
test_class.file: Struts2Junit4/src/test/java/actions/TestMyAction.java
test_class.identifier: TestMyAction
test_class.superclass: extends StrutsJUnit4TestCase<Object>
test_case.body: @Test
      public void testSave() throws Exception {
  //        request.setParameter("id", "1");
  //        request.setParameter("name", "Test Desc");
  
          request.setContent("{\"id\":\"1\",\"name\":\"nitin\"}".getBytes());
  //        request.setContentType("application/json");
          request.addHeader("Content-Type", "application/json");
  //        request.setContent("{id:1,name:nitin}".getBytes());
          request.setMethod("POST");
  //        request.set
  
          ActionProxy proxy = getActionProxy("/save");
          actions.MyAction myAct = (actions.MyAction) proxy.getAction();
  
          String result = proxy.execute();
  
          System.out.println("test id : " + myAct.getId());
          System.out.println("test name : " + myAct.getName());
  
          assertEquals("success", result);
  
  //        System.out.println(ToStringBuilder.reflectionToString(response));
          System.out.println(response.getContentAsString());
      }
test_case.class_method_signature: TestMyAction.testSave()
test_case.full_signature: @Test public void testSave()
test_case.identifier: testSave
test_case.invocations: setContent getBytes addHeader setMethod getActionProxy getAction execute println getId println getName assertEquals println getContentAsString
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testSave()
focal_class.declarator: LOG = Logger.getLogger(MyAction.class.getName())
focal_class.modifier: public static final
focal_class.original_string: public static final Logger LOG = Logger.getLogger(MyAction.class.getName());
focal_class.type: Logger
focal_class.var_name: LOG
focal_class.declarator: id
focal_class.modifier: private
focal_class.original_string: private String id, name;
focal_class.type: String
focal_class.var_name: id
focal_class.file: Struts2Junit4/src/main/java/actions/MyAction.java
focal_class.identifier: MyAction
focal_class.class_method_signature: MyAction.getId()
focal_class.full_signature: public String getId()
focal_class.identifier: getId
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getId()
focal_class.class_method_signature: MyAction.setId(String id)
focal_class.full_signature: public void setId(String id)
focal_class.identifier: setId
focal_class.modifiers: public
focal_class.parameters: (String id)
focal_class.return: void
focal_class.signature: void setId(String id)
focal_class.class_method_signature: MyAction.getName()
focal_class.full_signature: public String getName()
focal_class.identifier: getName
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getName()
focal_class.class_method_signature: MyAction.setName(String name)
focal_class.full_signature: public void setName(String name)
focal_class.identifier: setName
focal_class.modifiers: public
focal_class.parameters: (String name)
focal_class.return: void
focal_class.signature: void setName(String name)
focal_class.class_method_signature: MyAction.view()
focal_class.full_signature: public String view()
focal_class.identifier: view
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String view()
focal_class.class_method_signature: MyAction.save()
focal_class.full_signature: public String save()
focal_class.identifier: save
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String save()
focal_class.superclass: extends ActionSupport
focal_method.body: public String save() {
          System.out.println(id);
          System.out.println(name);
          return SUCCESS;
      }
focal_method.class_method_signature: MyAction.save()
focal_method.full_signature: public String save()
focal_method.identifier: save
focal_method.invocations: println println
focal_method.modifiers: public
focal_method.parameters: ()
focal_method.return: String
focal_method.signature: String save()