mx4j/src/test/test/javax/management/relation RelationServiceTest.java,1.17,1.18

Jeremy Boynes <[email protected]> Sun, 13 Feb 2005 21:25:11 +0000
Newsgroups gmane.comp.java.mx4j.cvs
Message-ID <[email protected]>
Update of /cvsroot/mx4j/mx4j/src/test/test/javax/management/relation
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31401/src/test/test/javax/management/relation

Modified Files:
	RelationServiceTest.java 
Log Message:
Fix testcases after RelationService changes

Index: RelationServiceTest.java
===================================================================
RCS file: /cvsroot/mx4j/mx4j/src/test/test/javax/management/relation/RelationServiceTest.java,v
retrieving revision 1.17
retrieving revision 1.18
diff -C2 -d -r1.17 -r1.18
*** RelationServiceTest.java	13 Nov 2004 16:38:56 -0000	1.17
--- RelationServiceTest.java	13 Feb 2005 21:25:07 -0000	1.18
***************
*** 222,230 ****
        {
           m_relationService.removeRelationType("invalidRelationType_notCreated");
!          // expected should not fail
        }
        catch (RelationTypeNotFoundException expected)
        {
!          fail("RelationType does not exist but no exception expected");
        }
        catch (Exception e)
--- 222,230 ----
        {
           m_relationService.removeRelationType("invalidRelationType_notCreated");
!          fail("Expected a RelationTypeNotFoundException to be thrown");
        }
        catch (RelationTypeNotFoundException expected)
        {
!          // ok
        }
        catch (Exception e)



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click