You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@turbine.apache.org by ep...@apache.org on 2003/11/05 17:35:15 UTC

cvs commit: jakarta-turbine-fulcrum/security/src/test/org/apache/fulcrum/security/util GroupSetTest.java

epugh       2003/11/05 08:35:15

  Modified:    security/src/test/org/apache/fulcrum/security
                        StartingSecurityServicesTest.java
               security/src/test/org/apache/fulcrum/security/model/simple/manager
                        AbstractGroupManagerTest.java
               security/src/test/org/apache/fulcrum/security/util
                        GroupSetTest.java
  Log:
  Fix up header comment
  
  Revision  Changes    Path
  1.9       +52 -34    jakarta-turbine-fulcrum/security/src/test/org/apache/fulcrum/security/StartingSecurityServicesTest.java
  
  Index: StartingSecurityServicesTest.java
  ===================================================================
  RCS file: /home/cvs/jakarta-turbine-fulcrum/security/src/test/org/apache/fulcrum/security/StartingSecurityServicesTest.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- StartingSecurityServicesTest.java	4 Nov 2003 14:16:47 -0000	1.8
  +++ StartingSecurityServicesTest.java	5 Nov 2003 16:35:15 -0000	1.9
  @@ -1,38 +1,56 @@
   package org.apache.fulcrum.security;
  -/*
  - * ==================================================================== The Apache Software
  - * License, Version 1.1
  - * 
  - * Copyright (c) 2001-2002 The Apache Software Foundation. All rights reserved.
  - * 
  - * Redistribution and use in source and binary forms, with or without modification, are permitted
  - * provided that the following conditions are met: 1. Redistributions of source code must retain
  - * the above copyright notice, this list of conditions and the following disclaimer. 2.
  - * Redistributions in binary form must reproduce the above copyright notice, this list of
  - * conditions and the following disclaimer in the documentation and/or other materials provided
  - * with the distribution. 3. The end-user documentation included with the redistribution, if any,
  - * must include the following acknowledgment: "This product includes software developed by the
  - * Apache Software Foundation (http://www.apache.org/)." Alternately, this acknowledgment may
  - * appear in the software itself, if and wherever such third-party acknowledgments normally appear. 4.
  - * The names "Apache" and "Apache Software Foundation" and "Apache Turbine" must not be used to
  - * endorse or promote products derived from this software without prior written permission. For
  - * written permission, please contact apache@apache.org. 5. Products derived from this software may
  - * not be called "Apache", "Apache Turbine", nor may "Apache" appear in their name, without prior
  - * written permission of the Apache Software Foundation.
  - * 
  - * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  - * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR ITS CONTRIBUTORS BE LIABLE FOR
  - * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
  - * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
  - * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
  - * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  +/* ====================================================================
  + * The Apache Software License, Version 1.1
  + *
  + * Copyright (c) 2001-2002 The Apache Software Foundation.  All rights
  + * reserved.
  + *
  + * Redistribution and use in source and binary forms, with or without
  + * modification, are permitted provided that the following conditions
  + * are met:
  + *
  + * 1. Redistributions of source code must retain the above copyright
  + *    notice, this list of conditions and the following disclaimer.
  + *
  + * 2. Redistributions in binary form must reproduce the above copyright
  + *    notice, this list of conditions and the following disclaimer in
  + *    the documentation and/or other materials provided with the
  + *    distribution.
  + *
  + * 3. The end-user documentation included with the redistribution,
  + *    if any, must include the following acknowledgment:
  + *       "This product includes software developed by the
  + *        Apache Software Foundation (http://www.apache.org/)."
  + *    Alternately, this acknowledgment may appear in the software itself,
  + *    if and wherever such third-party acknowledgments normally appear.
  + *
  + * 4. The names "Apache" and "Apache Software Foundation" and
  + *    "Apache Turbine" must not be used to endorse or promote products
  + *    derived from this software without prior written permission. For
  + *    written permission, please contact apache@apache.org.
  + *
  + * 5. Products derived from this software may not be called "Apache",
  + *    "Apache Turbine", nor may "Apache" appear in their name, without
  + *    prior written permission of the Apache Software Foundation.
  + *
  + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  + * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
  + * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  + * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  + * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  + * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  + * SUCH DAMAGE.
    * ====================================================================
  - * 
  - * This software consists of voluntary contributions made by many individuals on behalf of the
  - * Apache Software Foundation. For more information on the Apache Software Foundation, please see
  - * <http://www.apache.org/> .
  + *
  + * This software consists of voluntary contributions made by many
  + * individuals on behalf of the Apache Software Foundation.  For more
  + * information on the Apache Software Foundation, please see
  + * <http://www.apache.org/>.
    */
   import org.apache.avalon.framework.component.ComponentException;
   import org.apache.fulcrum.security.model.simple.SimpleModelManager;
  
  
  
  1.7       +4 -8      jakarta-turbine-fulcrum/security/src/test/org/apache/fulcrum/security/model/simple/manager/AbstractGroupManagerTest.java
  
  Index: AbstractGroupManagerTest.java
  ===================================================================
  RCS file: /home/cvs/jakarta-turbine-fulcrum/security/src/test/org/apache/fulcrum/security/model/simple/manager/AbstractGroupManagerTest.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- AbstractGroupManagerTest.java	30 Oct 2003 14:25:35 -0000	1.6
  +++ AbstractGroupManagerTest.java	5 Nov 2003 16:35:15 -0000	1.7
  @@ -70,10 +70,8 @@
   public abstract class AbstractGroupManagerTest extends BaseUnitTest
   {
       protected Group group;
  -	protected GroupManager groupManager;
  -	protected SecurityService securityService;
  -
  -
  +    protected GroupManager groupManager;
  +    protected SecurityService securityService;
   
       /**
        * Constructor for AbstractGroupManagerTest.
  @@ -136,8 +134,8 @@
           group = groupManager.getGroupInstance("CLEAN_KENNEL_K");
           groupManager.addGroup(group);
           int size = groupManager.getAllGroups().size();
  -		assertEquals(0,((SimpleGroup)group).getUsers().size());
  -		assertEquals(0,((SimpleGroup)group).getRoles().size());
  +        assertEquals(0, ((SimpleGroup) group).getUsers().size());
  +        assertEquals(0, ((SimpleGroup) group).getRoles().size());
           groupManager.removeGroup(group);
           try
           {
  @@ -176,7 +174,5 @@
           assertNotNull(group.getId());
           assertNotNull(groupManager.getGroupById(group.getId()));
       }
  -   
  -
   
   }
  
  
  
  1.3       +51 -39    jakarta-turbine-fulcrum/security/src/test/org/apache/fulcrum/security/util/GroupSetTest.java
  
  Index: GroupSetTest.java
  ===================================================================
  RCS file: /home/cvs/jakarta-turbine-fulcrum/security/src/test/org/apache/fulcrum/security/util/GroupSetTest.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- GroupSetTest.java	5 Nov 2003 15:39:53 -0000	1.2
  +++ GroupSetTest.java	5 Nov 2003 16:35:15 -0000	1.3
  @@ -1,44 +1,56 @@
   package org.apache.fulcrum.security.util;
  -/*
  - * ==================================================================== The
  - * Apache Software License, Version 1.1
  - * 
  - * Copyright (c) 2001-2002 The Apache Software Foundation. All rights reserved.
  - * 
  +/* ====================================================================
  + * The Apache Software License, Version 1.1
  + *
  + * Copyright (c) 2001-2002 The Apache Software Foundation.  All rights
  + * reserved.
  + *
    * Redistribution and use in source and binary forms, with or without
  - * modification, are permitted provided that the following conditions are met: 1.
  - * Redistributions of source code must retain the above copyright notice, this
  - * list of conditions and the following disclaimer. 2. Redistributions in
  - * binary form must reproduce the above copyright notice, this list of
  - * conditions and the following disclaimer in the documentation and/or other
  - * materials provided with the distribution. 3. The end-group documentation
  - * included with the redistribution, if any, must include the following
  - * acknowledgment: "This product includes software developed by the Apache
  - * Software Foundation (http://www.apache.org/)." Alternately, this
  - * acknowledgment may appear in the software itself, if and wherever such
  - * third-party acknowledgments normally appear. 4. The names "Apache" and
  - * "Apache Software Foundation" and "Apache Turbine" must not be used to
  - * endorse or promote products derived from this software without prior written
  - * permission. For written permission, please contact apache@apache.org. 5.
  - * Products derived from this software may not be called "Apache", "Apache
  - * Turbine", nor may "Apache" appear in their name, without prior written
  - * permission of the Apache Software Foundation.
  - * 
  - * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES,
  - * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
  - * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
  - * APACHE SOFTWARE FOUNDATION OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
  - * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
  - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
  - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  - * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  + * modification, are permitted provided that the following conditions
  + * are met:
  + *
  + * 1. Redistributions of source code must retain the above copyright
  + *    notice, this list of conditions and the following disclaimer.
  + *
  + * 2. Redistributions in binary form must reproduce the above copyright
  + *    notice, this list of conditions and the following disclaimer in
  + *    the documentation and/or other materials provided with the
  + *    distribution.
  + *
  + * 3. The end-user documentation included with the redistribution,
  + *    if any, must include the following acknowledgment:
  + *       "This product includes software developed by the
  + *        Apache Software Foundation (http://www.apache.org/)."
  + *    Alternately, this acknowledgment may appear in the software itself,
  + *    if and wherever such third-party acknowledgments normally appear.
  + *
  + * 4. The names "Apache" and "Apache Software Foundation" and
  + *    "Apache Turbine" must not be used to endorse or promote products
  + *    derived from this software without prior written permission. For
  + *    written permission, please contact apache@apache.org.
  + *
  + * 5. Products derived from this software may not be called "Apache",
  + *    "Apache Turbine", nor may "Apache" appear in their name, without
  + *    prior written permission of the Apache Software Foundation.
  + *
  + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  + * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
  + * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  + * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  + * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  + * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  + * SUCH DAMAGE.
    * ====================================================================
  - * 
  - * This software consists of voluntary contributions made by many individuals
  - * on behalf of the Apache Software Foundation. For more information on the
  - * Apache Software Foundation, please see <http://www.apache.org/> .
  + *
  + * This software consists of voluntary contributions made by many
  + * individuals on behalf of the Apache Software Foundation.  For more
  + * information on the Apache Software Foundation, please see
  + * <http://www.apache.org/>.
    */
   
   import org.apache.fulcrum.security.entity.Group;
  
  
  

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