commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 36707] - [Exec] allow easy mocking of Process creation
Date Mon, 19 Sep 2005 21:05:59 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=36707>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=36707





------- Additional Comments From jerome@coffeebreaks.org  2005-09-19 23:05 -------
(In reply to comment #2)
> Hmm.. what exactly is the purpose of this?  What does this allow you to do that 
> you couldn't do with presetdef/macrodef in your buildfile, for example?

What presetdef/macrodef are you talking you about? Are we talking about the same
project?

I need to fake my Process. Example: I provide a MockProcess that takes its
output from a file (instead of executing the command line). This is useful to
simulate the complete interaction with the application but the effective call to
the system. It can also be used later on to provide unit tests for the Execute
code itself.

Having a Mock launcher sounds like the most perfect solution, but it requires
more code and doesn't bring me much more benefits.

Note: I already wrote code that depends on my last 2 bug entries (#36707 & #36708).

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message