Class TestResourceUtils


  • public class TestResourceUtils
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String getRenderedString​(java.lang.Class<?> contextClass, java.lang.String resourceName)  
      static java.lang.String getRenderedString​(java.lang.Class<?> contextClass, java.lang.String resourceName, java.util.Map<java.lang.String,​java.lang.String> model)  
      static java.lang.String getString​(java.lang.Class<?> contextClass, java.lang.String resourceName)
      Based on org.molgenis.util.ResourceUtils which can't be used here because of circular dependency issues.
      • Methods inherited from class java.lang.Object

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

      • getRenderedString

        public static java.lang.String getRenderedString​(java.lang.Class<?> contextClass,
                                                         java.lang.String resourceName)
                                                  throws java.io.IOException
        Throws:
        java.io.IOException
      • getRenderedString

        public static java.lang.String getRenderedString​(java.lang.Class<?> contextClass,
                                                         java.lang.String resourceName,
                                                         java.util.Map<java.lang.String,​java.lang.String> model)
                                                  throws java.io.IOException
        Throws:
        java.io.IOException
      • getString

        public static java.lang.String getString​(java.lang.Class<?> contextClass,
                                                 java.lang.String resourceName)
                                          throws java.io.IOException
        Based on org.molgenis.util.ResourceUtils which can't be used here because of circular dependency issues.
        Throws:
        java.io.IOException