Open jiming opened 6 years ago
Some time I need load resource file in unit test. In that case I need put the resource file under resources directory.
resources
Then I can use this.getClass().getResourceAsStream("./config.yaml") to load the resource very convenient.
this.getClass().getResourceAsStream("./config.yaml")
So could you please add a feature that genereate corresponding test resource directory and jump to and back?
for example to a unit test. src\test\java\xxx\yyy\zzzTest.java
src\test\java\xxx\yyy\zzzTest.java
create a corresponding directory src\test\resources\xxx\yyy\
src\test\resources\xxx\yyy\
Thanks!
Some time I need load resource file in unit test. In that case I need put the resource file under
resources
directory.Then I can use
this.getClass().getResourceAsStream("./config.yaml")
to load the resource very convenient.So could you please add a feature that genereate corresponding test resource directory and jump to and back?
for example to a unit test.
src\test\java\xxx\yyy\zzzTest.java
create a corresponding directory
src\test\resources\xxx\yyy\
Thanks!