crunch-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Josh Wills (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CRUNCH-93) Crunch core source should not contain packages like o.a.c.test
Date Wed, 10 Oct 2012 21:07:03 GMT

    [ https://issues.apache.org/jira/browse/CRUNCH-93?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13473561#comment-13473561
] 

Josh Wills commented on CRUNCH-93:
----------------------------------

Re 1, it's also useful for unit testing a DoFn process() implementation by passing it an input,
collecting its outputs using the InMemoryEmitter, and checking their contents.

Re 2, TestCounters should be used directly for unit tests, again as a way of verifying that
the DoFn you are testing increments the counters you expect it to increment when passed a
test input.
                
> Crunch core source should not contain packages like o.a.c.test 
> ---------------------------------------------------------------
>
>                 Key: CRUNCH-93
>                 URL: https://issues.apache.org/jira/browse/CRUNCH-93
>             Project: Crunch
>          Issue Type: Bug
>            Reporter: Rahul Sharma
>            Priority: Minor
>
> Crunch core has the following things a package named o.a.c.test and TestCounters class.The
source should not contain test package and classes named with Test.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message