Class ImportCockpitUtilsTest


  • public class ImportCockpitUtilsTest
    extends java.lang.Object
    • Field Detail

      • QA_EMPTY_MAPPING_XML

        public static final java.lang.String QA_EMPTY_MAPPING_XML
        See Also:
        Constant Field Values
      • QA_XXE_EMPTY_MAPPING_XML

        public static final java.lang.String QA_XXE_EMPTY_MAPPING_XML
        See Also:
        Constant Field Values
    • Constructor Detail

      • ImportCockpitUtilsTest

        public ImportCockpitUtilsTest()
    • Method Detail

      • readFromNonVulnerableFile

        public void readFromNonVulnerableFile()
                                       throws javax.xml.bind.JAXBException,
                                              javax.xml.stream.XMLStreamException
        Throws:
        javax.xml.bind.JAXBException
        javax.xml.stream.XMLStreamException
      • readFromXXEVulnerableFile

        public void readFromXXEVulnerableFile()
                                       throws javax.xml.bind.JAXBException,
                                              javax.xml.stream.XMLStreamException
        Throws:
        javax.xml.bind.JAXBException
        javax.xml.stream.XMLStreamException
      • readFromFile

        protected <T> T readFromFile​(java.lang.String url)
                              throws javax.xml.bind.JAXBException,
                                     javax.xml.stream.XMLStreamException
        Throws:
        javax.xml.bind.JAXBException
        javax.xml.stream.XMLStreamException