Class TestActionConfigMatcher

java.lang.Object
org.apache.struts.mock.TestMockBase
org.apache.struts.config.TestActionConfigMatcher

public class TestActionConfigMatcher extends TestMockBase
Unit tests for ActionConfigMatcher.
Version:
$Rev$ $Date$
  • Constructor Details

    • TestActionConfigMatcher

      public TestActionConfigMatcher()
  • Method Details

    • setUp

      @BeforeEach public void setUp()
      Overrides:
      setUp in class TestMockBase
    • tearDown

      @AfterEach public void tearDown()
      Overrides:
      tearDown in class TestMockBase
    • testNoMatch

      @Test public void testNoMatch()
    • testMatchWithKeyInPath

      @Test public void testMatchWithKeyInPath()
      Verifies that a match succeeds when the substituted value contains a placeholder key.

      See STR-3169.

      Since:
      Struts 1.3.11
    • testMatchWithSubstitutionEqualPlaceholderKey0

      @Test public void testMatchWithSubstitutionEqualPlaceholderKey0()
      Verifies that an infinite loop is prevented and substitution is skipped when the substituted value equals the placeholder key.

      See STR-3169.

      Since:
      Struts 1.3.11
      See Also:
    • testMatchWithSubstitutionEqualPlaceholderKey1

      @Test public void testMatchWithSubstitutionEqualPlaceholderKey1()
      Verifies that an infinite loop is prevented and substitution is skipped when the substituted value equals the placeholder key.

      See STR-3169.

      Since:
      Struts 1.3.11
      See Also:
    • testMatchWhenSubstitutionContainsPlaceholderKey

      @Test public void testMatchWhenSubstitutionContainsPlaceholderKey()
      Verifies that an infinite loop is prevented and substitution is skipped when the the placeholder key is contained within the substituted value.

      See STR-3169.

      Since:
      Struts 1.3.11
    • testNoWildcardMatch

      @Test public void testNoWildcardMatch()
    • testShouldMatch

      @Test public void testShouldMatch()
    • testCheckSubstitutionsMatch

      @Test public void testCheckSubstitutionsMatch()
    • testCheckMultipleSubstitutions

      @Test public void testCheckMultipleSubstitutions()