Multiple annotations for a method?

1,209 views
Skip to first unread message

magnatron

unread,
Aug 21, 2006, 2:17:36 PM8/21/06
to testng...@googlegroups.com
Can I specify multiple annotation for a method? This is what I tried to do:

@Test(dependsOnMethods = { "IdmCleanup" })
@Test(groups = { "server" })
public void Cleanup()
throws IdRepoException, SSOException
{

But got an error? How can I achieve this (both dependsOnMethods and groups annotation for a given method?)
Thanks
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=40930&messageID=81502#81502

Cédric Beust ♔

unread,
Aug 21, 2006, 2:20:52 PM8/21/06
to testng...@googlegroups.com
On 8/21/06, magnatron <testng...@opensymphony.com> wrote:

Can I specify multiple annotation for a method? This is what I tried to do:

    @Test(dependsOnMethods = { "IdmCleanup" })
    @Test(groups = { "server" })
    public void Cleanup()
        throws IdRepoException, SSOException
    {

But got an error? How can I achieve this (both dependsOnMethods and groups annotation for a given method?)

    @Test(dependsOnMethods = { "IdmCleanup" }, groups = { "server" })

--
Cédric
Reply all
Reply to author
Forward
0 new messages