Class TestRequestUtilsPopulate

java.lang.Object
org.apache.struts.mock.TestMockBase
org.apache.struts.util.TestRequestUtilsPopulate

public class TestRequestUtilsPopulate extends TestMockBase
Unit tests for the RequestUtil's populate method.
Version:
$Rev$
  • Field Details

  • Constructor Details

    • TestRequestUtilsPopulate

      public TestRequestUtilsPopulate()
  • Method Details

    • setUpAll

      @BeforeAll public static void setUpAll()
    • tearDownAll

      @AfterAll public static void tearDownAll()
    • testMultipartVisibility

      @Test public void testMultipartVisibility()
      Ensure that the getMultipartRequestHandler cannot be seen in a subclass of ActionForm. The purpose of this test is to ensure that Bug #38534 is fixed.
    • testRequestParameterIgnore1

      @Test public void testRequestParameterIgnore1() throws Exception
      Ensure that the parameter of HTTP request which causes ClassLoader manipulation is ignored. The purpose of this test is to ensure that security problem CVE-2014-0114 is fixed.
      Throws:
      Exception
    • testRequestParameterIgnore2

      @Test public void testRequestParameterIgnore2() throws Exception
      Ensure that the parameter of HTTP request which causes ClassLoader manipulation is ignored. The purpose of this test is to ensure that security problem CVE-2014-0114 is fixed.
      Throws:
      Exception
    • testRequestParameterIgnore3

      @Test public void testRequestParameterIgnore3() throws Exception
      Ensure that the parameter of HTTP request which causes ClassLoader manipulation is ignored. The purpose of this test is to ensure that security problem CVE-2014-0114 is fixed.
      Throws:
      Exception
    • testRequestParameterIgnore4

      @Test public void testRequestParameterIgnore4() throws Exception
      Ensure that the parameter of HTTP request which causes ClassLoader manipulation is ignored. The purpose of this test is to ensure that security problem CVE-2014-0114 is fixed.
      Throws:
      Exception