crunch-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gabriel Reid (JIRA)" <>
Subject [jira] [Commented] (CRUNCH-322) StoreLastEmitter Should Be Part of crunch-test
Date Wed, 15 Jan 2014 21:31:26 GMT


Gabriel Reid commented on CRUNCH-322:

FWIW, I usually use a mock Emitter, via Mockito, but the InMemoryEmitter probably is actually
probably simpler to use. In any case, it's probably best that the InMemoryEmitter is pushed
as the way to go instead of moving the StoreLastEmitter into the distribution of crunch-core.

> StoreLastEmitter Should Be Part of crunch-test
> ----------------------------------------------
>                 Key: CRUNCH-322
>                 URL:
>             Project: Crunch
>          Issue Type: Improvement
>          Components: Core
>    Affects Versions: 0.9.0
>            Reporter: Jesse Anderson
>            Assignee: Josh Wills
> There aren't many ways of unit testing Crunch that are built in. I'm using crunch-core/src/test/java/org/apache/crunch/fn/
to test outputs from DoFN classes.
> This class is not distributed with the crunch-core JAR because it is in the test package.
This class should be moved to the non-test source for crunch-test.

This message was sent by Atlassian JIRA

View raw message