Github user cestella commented on a diff in the pull request:

    https://github.com/apache/incubator-metron/pull/311#discussion_r83644732
  
    --- Diff: 
metron-platform/metron-enrichment/src/test/java/org/apache/metron/enrichment/integration/EnrichmentIntegrationTest.java
 ---
    @@ -160,16 +159,36 @@ public void test() throws Exception {
           fluxComponent.submitTopology();
     
           kafkaComponent.writeMessages(Constants.ENRICHMENT_TOPIC, 
inputMessages);
    -      List<Map<String, Object>> docs = 
runner.process(getProcessor(inputMessages));
    -      Assert.assertEquals(inputMessages.size(), docs.size());
    -      List<Map<String, Object>> cleanedDocs = docs;
    -      validateAll(cleanedDocs);
    -    }
    -    finally {
    +      ProcessorResult<List<Map<String, Object>>> result = 
runner.process(getProcessor(inputMessages));
    +      List<Map<String, Object>> docs = result.getResult();
    +      if (result.failed()){
    +        result.printBadResults();
    +        System.out.println(String.format("%d Valid Messages Processed", 
docs.size()));
    --- End diff --
    
    maybe System.err or accumulate a string with the full dump and then do a 
`Assertion.fail` with the reason so it bubbles right up to the top?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to