This content has been marked as final.
Show 12 replies
-
1. Re: Where should unit tests for deployers-spi go?
kabirkhan Jun 16, 2009 9:12 AM (in response to jaikiran)probably in deployers-impl?
-
2. Re: Where should unit tests for deployers-spi go?
alesj Jun 16, 2009 9:16 AM (in response to jaikiran)"jaikiran" wrote:
I am working on https://jira.jboss.org/jira/browse/JBDEPLOY-193 to provide a new deployer.
Where was this discussed in the first place?
(I do vaguely recall some discussion)
Or when did I give a green light for this? ;-)"jaikiran" wrote:
I don't see any unit tests currently in jboss-deployers-spi project. Where should these tests go? And are the current deployers in this project being tested some place else?
spi is tested in impl --> deployers-impl -
3. Re: Where should unit tests for deployers-spi go?
jaikiran Jun 16, 2009 9:24 AM (in response to jaikiran)"alesj" wrote:
Where was this discussed in the first place?
(I do vaguely recall some discussion)
Or when did I give a green light for this? ;-)
There was no green light :) But there was a discussion here http://www.jboss.org/index.html?module=bb&op=viewtopic&t=156862#4237186. You have some different idea for that? -
4. Re: Where should unit tests for deployers-spi go?
alesj Jun 16, 2009 9:52 AM (in response to jaikiran)"jaikiran" wrote:
There was no green light :)
It's all fine by me, if you make it back compatible and do proper testing. ;-) -
5. Re: Where should unit tests for deployers-spi go?
jaikiran Jun 16, 2009 10:02 AM (in response to jaikiran)"alesj" wrote:
It's all fine by me, if you make it back compatible and do proper testing. ;-)
Thanks.
Yep, it will be backward compatible and will have tests :) . -
6. Re: Where should unit tests for deployers-spi go?
alesj Jun 17, 2009 11:34 AM (in response to jaikiran)"jaikiran" wrote:
Yep, it will be backward compatible and will have tests :) .
This needs to be changed / fixed / in the worst case reverted.
(1) The names are bad
* RealDeployerWithInput - how should I know which one to take; vs. AbstractRealDeployerWithInput
* ExtendedDeploymentVisitor - extended? .. what does it extend ... Nameable perhaps?
(2) Looking at the impl, it's actually usesless to have this ExtendedDeploymentVisitor.
This could easily be a contract of the deployer, to have an attachment name + old DeploymentVisitor.
As all you do is lookup certain attachment and pass it to visitor.
Dunno why this should be part of the visitor, or why new interface is required. -
7. Re: Where should unit tests for deployers-spi go?
alesj Jun 17, 2009 11:38 AM (in response to jaikiran)"alesj" wrote:
This needs to be changed / fixed / in the worst case reverted.
I'll go ahead and fix this.
Check later if it still suites you. -
8. Re: Where should unit tests for deployers-spi go?
alesj Jun 17, 2009 11:57 AM (in response to jaikiran)(3) Keep self pity comments out of MC code ;-)
// I seriously have no idea about how the setInput()/setInputs()/addInput() API expect/work // The more i look into it, the more confused i am. // For some weird reason, this is expected to be done.
-
9. Re: Where should unit tests for deployers-spi go?
jaikiran Jun 17, 2009 1:47 PM (in response to jaikiran)"alesj" wrote:
(3) Keep self pity comments out of MC code ;-)
That's a TODO until i really understand the setInput()/setInputs()/addInput() API and their expected behaviour :) -
10. Re: Where should unit tests for deployers-spi go?
jaikiran Jun 17, 2009 1:49 PM (in response to jaikiran)"alesj" wrote:
I'll go ahead and fix this.
Check later if it still suites you.
Sure, will take a look tomorrow. -
11. Re: Where should unit tests for deployers-spi go?
alesj Jun 18, 2009 4:55 AM (in response to jaikiran)"jaikiran" wrote:
That's a TODO until i really understand the setInput()/setInputs()/addInput() API and their expected behaviour :)
You mean that it's currently like this?
- http://www.sciencecartoonsplus.com/images/miracle3.gif
:-) -
12. Re: Where should unit tests for deployers-spi go?
jaikiran Jun 18, 2009 9:33 AM (in response to jaikiran)"alesj" wrote:
You mean that it's currently like this?
- http://www.sciencecartoonsplus.com/images/miracle3.gif
:-)
LOL :)"jaikiran" wrote:
That's a TODO until i really understand the setInput()/setInputs()/addInput() API and their expected behaviour :)
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4238485