mx4j/src/test/test/javax/management/relation RoleTest.java,1.1,1.2
Simone Bordet <[email protected]>
| 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-serv30262/src/test/test/javax/management/relation
Modified Files:
RoleTest.java
Log Message:
Added copyright notice and author information
Index: RoleTest.java
===================================================================
RCS file: /cvsroot/mx4j/mx4j/src/test/test/javax/management/relation/RoleTest.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** RoleTest.java 5 Sep 2003 22:51:54 -0000 1.1
--- RoleTest.java 10 Aug 2004 09:15:18 -0000 1.2
***************
*** 1,51 ****
/*
! * Copyright (c) 2003 OpenSource. All rights reserved.
*/
- package test.javax.management.relation;
! import junit.framework.TestCase;
- import javax.management.relation.Role;
- import javax.management.ObjectName;
import java.util.ArrayList;
import java.util.List;
/**
! * Class or Interface description.
! *
! * @author bcassidy
* @version $Revision$
- * $Id$
*/
public class RoleTest extends TestCase
{
! private Role _role;
! public RoleTest(String name)
! {
! super(name);
! }
! protected void setUp() throws Exception
! {
! _role = new Role("test Role", new ArrayList());
! }
! protected void tearDown() throws Exception
! {
! }
! public void testGetRoleValue() throws Exception
! {
! List roleValues = _role.getRoleValue();
! assertNotNull(roleValues);
! }
! public void testGetRoleValue_ListHasElements() throws Exception
! {
! List values = new ArrayList();
! values.add(new ObjectName("domain:name=test"));
! Role role = new Role("Test Role", values);
! assertEquals(1, role.getRoleValue().size());
! }
}
\ No newline at end of file
--- 1,53 ----
/*
! * Copyright (C) MX4J.
! * All rights reserved.
! *
! * This software is distributed under the terms of the MX4J License version 1.0.
! * See the terms of the MX4J License in the documentation provided with this software.
*/
! package test.javax.management.relation;
import java.util.ArrayList;
import java.util.List;
+ import javax.management.ObjectName;
+ import javax.management.relation.Role;
+
+ import junit.framework.TestCase;
/**
! * @author <a href="mailto:[email protected]">Bronwen Cassidy</a>
* @version $Revision$
*/
public class RoleTest extends TestCase
{
! private Role _role;
! public RoleTest(String name)
! {
! super(name);
! }
! protected void setUp() throws Exception
! {
! _role = new Role("test Role", new ArrayList());
! }
! protected void tearDown() throws Exception
! {
! }
! public void testGetRoleValue() throws Exception
! {
! List roleValues = _role.getRoleValue();
! assertNotNull(roleValues);
! }
! public void testGetRoleValue_ListHasElements() throws Exception
! {
! List values = new ArrayList();
! values.add(new ObjectName("domain:name=test"));
! Role role = new Role("Test Role", values);
! assertEquals(1, role.getRoleValue().size());
! }
}
\ No newline at end of file
-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285