You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@storm.apache.org by "Rick Kellogg (JIRA)" <ji...@apache.org> on 2015/10/09 02:37:28 UTC

[jira] [Updated] (STORM-9) Add test utilities for Trident topology

     [ https://issues.apache.org/jira/browse/STORM-9?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rick Kellogg updated STORM-9:
-----------------------------
    Component/s: storm-core

> Add test utilities for Trident topology
> ---------------------------------------
>
>                 Key: STORM-9
>                 URL: https://issues.apache.org/jira/browse/STORM-9
>             Project: Apache Storm
>          Issue Type: Improvement
>          Components: storm-core
>            Reporter: James Xu
>            Priority: Minor
>
> For raw storm topology, we have backtype.storm.Testing, so can mock a spout like this:
> MockedSources mockedSources = new MockedSources();
> mockedSources.addMockData("1", new Values("nathan"),
>      new Values("bob"), new Values("joey"), new Values("nathan"));
> the first argument of addMockData is the id of the spout to be mocked, while in trident, the id of spout is not specified by developer, it is auto-generated by trident, so we need utilities to mock spout for trident.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)