kite-sdk / kite-examples

Kite SDK Examples
Apache License 2.0
99 stars 70 forks source link

FileNotFoundException when morphilne files in src/main/resources #28

Open agusgr opened 8 years ago

agusgr commented 8 years ago

Hi everybody, I'm trying to write some unit test for my morphlines files and I'm facing a problem related with the location of my morphline files.

The files are under "src/main/resources" folder then when compiled are in "target/classes" folder but the AbstractMorphlineTest class is looking for it on "target/test-classes". I understand that the obvious solution is move my files to "src/test/resources" but I wonder if there is any way to override this setting.

Thanks in advance

P.S.- I also have looked for the AbstractMorphlineTest in order to make some changes and submit a PR but I'm not able to find it in any repo.

agusgr commented 8 years ago

Hi again, my fault....

The class is here https://github.com/kite-sdk/kite/blob/3974e2006d7de3af3453701b387f9ff4a0e6f61a/kite-morphlines/kite-morphlines-core/src/test/java/org/kitesdk/morphline/api/AbstractMorphlineTest.java