Search code examples
javamulemunit

how to load mule-app.properties while writing MUnit


I am writing an MUnit and the port of HttpListerner is mentioned in mule-app.properties file. it is not getting loaded when i load the flow using getConfigResources. is there anything else that I need to do?


Solution

  • This one did the trick.

    Set system property inside getConfigResources()

    System.setProperty("http.port", "port_value");