[
https://issues.apache.org/jira/browse/S4-93?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13440863#comment-13440863
]
Aimee Cheng edited comment on S4-93 at 8/24/12 12:36 PM:
---------------------------------------------------------
I tried it, and it works well.
But I have some small suggestions, maybe we can provide more for simple test in
IDE. For example, when test model start, a testing zookeeper will start(like
the curator's TestingServer) and users don't need to set up their own zookeeper
or mix with zookeeper for other applications. And also I feel new
org.apache.s4.core.Main() seems not so friendly... Another feeling from the App
I used write, when testing in local, providing a way to send to the certain
PEs(stream) in App is helpful. Maybe we can encapsulate them all inside a
class, so that users only need to write a test class in their app like this:
TestMode.start();
TestMode.deploy(appname);
//Test data
TestMode.putEvent(streamname, event)....
That's just an example I used to think about. What do you think?
was (Author: sjcheng):
I tried it, and it works well.
But I have some suggestions, maybe we can provide more for simple test in IDE.
For example, when test model start, a testing zookeeper will start(like the
curator's TestingServer) and users don't need to set up their own zookeeper or
mix with zookeeper for other applications. And also I feel new
org.apache.s4.core.Main() seems not so friendly... Another feeling from the App
I used write, when testing in local, providing a way to send to the certain
PEs(stream) in App is helpful. Maybe we can encapsulate them all inside a
class, so that users only need to write a test class in their app like this:
TestMode.start();
TestModel.deploy(appname);
//Test data
TestModel.putEvent(streamname, event)....
That's some small suggestions.
> Local Mode for testing
> ----------------------
>
> Key: S4-93
> URL: https://issues.apache.org/jira/browse/S4-93
> Project: Apache S4
> Issue Type: Wish
> Affects Versions: 0.6
> Reporter: Aimee Cheng
> Fix For: 0.6
>
>
> Providing Local mode can be useful for app testing. In local mode, We can
> start a testing zookeeper server and use threads to simulate nodes process.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira