Class DefaultXssEncodeServiceUnitTest


  • @UnitTest
    public class DefaultXssEncodeServiceUnitTest
    extends java.lang.Object
    • Constructor Detail

      • DefaultXssEncodeServiceUnitTest

        public DefaultXssEncodeServiceUnitTest()
    • Method Detail

      • testEncodeNull

        public void testEncodeNull()
                            throws java.io.UnsupportedEncodingException
        Throws:
        java.io.UnsupportedEncodingException
      • assertSafe

        protected void assertSafe​(java.lang.String encodedValue)
      • testEncodeHTML

        public void testEncodeHTML()
                            throws java.io.UnsupportedEncodingException
        Throws:
        java.io.UnsupportedEncodingException
      • testEncodeJavaScript

        public void testEncodeJavaScript()
                                  throws java.io.UnsupportedEncodingException
        Throws:
        java.io.UnsupportedEncodingException
      • testEncodeURL

        public void testEncodeURL()
                           throws java.io.UnsupportedEncodingException
        Throws:
        java.io.UnsupportedEncodingException