Mule - JUnit FunctionalTestCase getConfigResources(), what return statement should I use? -


from mule in action second edition ebook, i'm seeing following code snippet chapter 1

public class productregistrationfunctionaltestcase extends functionaltestcase {     protected string getconfigresources() {         return "./src/main/app/product_registration.xml";     } ... 

and, seeing below chapter 12

 public class transformingbridgetestcase extends functionaltestcase {     protected string getconfigresources()     {        return "functional-test-connectors.xml,jms-transforming-bridge.xml";     }... 

i have 2 questions regarding getconfigresources() return statement.

(1) why ./src/main/... not required example in chapter 12?

(2) how work behind scene having 2 xml in return statement chapter 12 example?

getconfigresources() should return comma separated list of resources can loaded classpath. return value parsed configurationbuilder attached functionaltestcase, , mulecontext instantiated using resources. need use full src/main... path application root folder if not have app folder in classpath.


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -