10-13-2014 10:38 AM
Hi, I've seen this:
And I have no idea how to get access to parsed records.
I've seen this:
and I can't use it, because
1. it uses junit
2. because can't get access to com.cloudera.cdk.morphline.api.Collector, I don't see where artifact with classifier "test" is published.
What are the right approaches?
Solved! Go to Solution.
10-13-2014 01:26 PM
Hi, thanks for the reply. It really looks like more "debug", than "test".
I do expect something like:
//groovy-like pseudocode using hamcrest
def aResult = doSomeTrickyStuff('a_path_to_morphline_config', 'a_path_to_input_dataset')
assertThat(result.get(0).get('myProperty'), equalTo('some cool value'))
Please add code highlighting!
10-13-2014 01:38 PM
10-14-2014 01:04 AM
Oh, I've used wrong artifact, here is the right with <type>test-jar</type>:
10-14-2014 09:37 AM - edited 10-14-2014 09:45 AM
Is there any possibility to contribute to project?
It would be great to decouple "test basement".
I see these major problems:
1. tightly coupled with junit
2. i have to download dozens of deps to make it run
3. protected static final java.lang.String RESOURCES_DIR = "target/test-classes";
forces me to put configs under test resource. What is the reason to hardcode it.
I do get
java.io.FileNotFoundException: File not found: target/test-classes/dummy-xml.conf while trying to run my test :(
I did put config to desired place then it just throws NPE
checkNotNull what? Not to much info to make it work :(