Class XmlResources


  • public final class XmlResources
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <T> T readXml​(java.io.File xmlFile, java.lang.Class<T> cls)  
      static <T> T readXml​(java.lang.String xmlString, java.lang.Class<T> cls)  
      static <T> void writeXml​(java.io.File xmlFile, T testSuite)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • writeXml

        public static <T> void writeXml​(java.io.File xmlFile,
                                        T testSuite)
                                 throws java.io.IOException
        Throws:
        java.io.IOException
      • readXml

        public static <T> T readXml​(java.io.File xmlFile,
                                    java.lang.Class<T> cls)
                             throws java.io.IOException
        Throws:
        java.io.IOException
      • readXml

        public static <T> T readXml​(java.lang.String xmlString,
                                    java.lang.Class<T> cls)
                             throws com.fasterxml.jackson.core.JsonProcessingException
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException