You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lenya.apache.org by Jann Forrer <ja...@id.unizh.ch> on 2004/09/21 12:29:28 UTC

adding a patch and test class

Hi

I am preparing a patch and try to follow the guidlines under:

http://wiki.apache.org/cocoon-lenya/CodeContribution

but ant test failed becasue i made modification in some lenya test
classes.  I am not sure how to handle this. Shall I simply copy the
appropriate classe from src/java/org/..... to src/test/org ?

Jann

---------------------------------------------------------------
Jann Forrer
Informatikdienste
Universität Zürich
Winterthurerstr. 190
CH-8057 Zuerich

oooO   mail:  jann.forrer@id.unizh.ch
(  )   phone: +41 1 63 56772
 \ (   fax:   +41 1 63 54505
  \_)  http://www.id.unizh.ch

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


Re: adding a patch and test class

Posted by Rolf Kulemann <ro...@apache.org>.
On Tue, 2004-09-21 at 12:56, Jann Forrer wrote:
> On Tue, 21 Sep 2004, Rolf Kulemann wrote:
> 
> > On Tue, 2004-09-21 at 12:29, Jann Forrer wrote:
> > > Hi
> > >
> > > I am preparing a patch and try to follow the guidlines under:
> > >
> > > http://wiki.apache.org/cocoon-lenya/CodeContribution
> > >
> > > but ant test failed becasue i made modification in some lenya test
> > > classes.  I am not sure how to handle this. Shall I simply copy the
> > > appropriate classe from src/java/org/..... to src/test/org ?
> >
> > Can u paste some error output please?
> >
> To clarify things. I made changes change only in the src/java/org/.... (do
> I have to update src/test/org/... accordingly?)

Yes, I think so.

-- 
Rolf Kulemann


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


Re: adding a patch and test class

Posted by Jann Forrer <ja...@id.unizh.ch>.
On Tue, 21 Sep 2004, Rolf Kulemann wrote:

> On Tue, 2004-09-21 at 12:29, Jann Forrer wrote:
> > Hi
> >
> > I am preparing a patch and try to follow the guidlines under:
> >
> > http://wiki.apache.org/cocoon-lenya/CodeContribution
> >
> > but ant test failed becasue i made modification in some lenya test
> > classes.  I am not sure how to handle this. Shall I simply copy the
> > appropriate classe from src/java/org/..... to src/test/org ?
>
> Can u paste some error output please?
>
To clarify things. I made changes change only in the src/java/org/.... (do
I have to update src/test/org/... accordingly?)

And here the error output:


/home/lenya/cms/src/lenya-1.2.x/src/test/org/apache/lenya/cms/publication/DefaultSiteTreeTest.java:61:
cannot resolve symbol
    [javac] symbol  : method addNode
(java.lang.String,org.apache.lenya.cms.publication.Label[],<nulltype>,<nulltype>,boolean)
    [javac] location: class
org.apache.lenya.cms.publication.DefaultSiteTree
    [javac]             siteTree.addNode("/foo", fooLabels, null, null,
false);
    [javac]                         ^
    [javac]
/home/lenya/cms/src/lenya-1.2.x/src/test/org/apache/lenya/cms/publication/DefaultSiteTreeTest.java:64:
cannot resolve symbol
    [javac] symbol  : method addNode
(java.lang.String,org.apache.lenya.cms.publication.Label[],<nulltype>,<nulltype>,boolean)
    [javac] location: class
org.apache.lenya.cms.publication.DefaultSiteTree
    [javac]             siteTree.addNode("/index", homeLabels, null, null,
false);
    [javac]                         ^
    [javac]
/home/lenya/cms/src/lenya-1.2.x/src/test/org/apache/lenya/cms/publication/DefaultSiteTreeTest.java:68:
cannot resolve symbol
[ .... ]

Remarks:
I changed the method addNode within the mentioned classes in e.g.
org/apache/lenya/cms/publication/DefaultSiteTreeTest.java

ant install works or ant compile work without an error.

Jannn


---------------------------------------------------------------
Jann Forrer
Informatikdienste
Universität Zürich
Winterthurerstr. 190
CH-8057 Zuerich

oooO   mail:  jann.forrer@id.unizh.ch
(  )   phone: +41 1 63 56772
 \ (   fax:   +41 1 63 54505
  \_)  http://www.id.unizh.ch

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


Re: adding a patch and test class

Posted by Rolf Kulemann <ro...@apache.org>.
On Tue, 2004-09-21 at 12:29, Jann Forrer wrote:
> Hi
> 
> I am preparing a patch and try to follow the guidlines under:
> 
> http://wiki.apache.org/cocoon-lenya/CodeContribution
> 
> but ant test failed becasue i made modification in some lenya test
> classes.  I am not sure how to handle this. Shall I simply copy the
> appropriate classe from src/java/org/..... to src/test/org ?

Can u paste some error output please?

-- 
Rolf Kulemann


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