geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdil...@apache.org
Subject cvs commit: incubator-geronimo/specs/j2ee-management/src/test/javax/management/j2ee ListenerRegistrationTest.java
Date Sun, 17 Aug 2003 10:32:11 GMT
jdillon     2003/08/17 03:32:11

  Modified:    modules/common maven.xml
               modules/core/src/test/org/apache/geronimo/cache
                        AbstractInstanceCacheTest.java MockLRURunner.java
                        SimpleInstancePoolTest.java
               modules/core/src/test/org/apache/geronimo/common
                        InvocationTypeTest.java StateTest.java
               specs/j2ee-connector/src/test/javax/resource
                        ResourceExceptionTest.java
               specs/j2ee-connector/src/test/javax/resource/spi/work
                        ExecutionContextTest.java WorkEventTest.java
                        WorkExceptionTest.java
               specs/j2ee-management/src/test/javax/management/j2ee
                        ListenerRegistrationTest.java
  Log:
   o cleansed sources ala cleanse-sources goal, as a test of that goal
  
  Revision  Changes    Path
  1.4       +2 -2      incubator-geronimo/modules/common/maven.xml
  
  Index: maven.xml
  ===================================================================
  RCS file: /home/cvs/incubator-geronimo/modules/common/maven.xml,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- maven.xml	16 Aug 2003 15:14:11 -0000	1.3
  +++ maven.xml	17 Aug 2003 10:32:10 -0000	1.4
  @@ -7,4 +7,4 @@
     xmlns:u="jelly:util"
     xmlns:ant="jelly:ant">
     
  -</project>
  \ No newline at end of file
  +</project>
  
  
  
  1.2       +2 -2      incubator-geronimo/modules/core/src/test/org/apache/geronimo/cache/AbstractInstanceCacheTest.java
  
  Index: AbstractInstanceCacheTest.java
  ===================================================================
  RCS file: /home/cvs/incubator-geronimo/modules/core/src/test/org/apache/geronimo/cache/AbstractInstanceCacheTest.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- AbstractInstanceCacheTest.java	13 Aug 2003 01:47:12 -0000	1.1
  +++ AbstractInstanceCacheTest.java	17 Aug 2003 10:32:10 -0000	1.2
  @@ -209,4 +209,4 @@
           assertEquals("Object returned is the same as the object inserted", value, value1);
           assertFalse("Object has NOT become active after peek", cache.isActive(key));
       }
  -}
  \ No newline at end of file
  +}
  
  
  
  1.2       +2 -2      incubator-geronimo/modules/core/src/test/org/apache/geronimo/cache/MockLRURunner.java
  
  Index: MockLRURunner.java
  ===================================================================
  RCS file: /home/cvs/incubator-geronimo/modules/core/src/test/org/apache/geronimo/cache/MockLRURunner.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- MockLRURunner.java	13 Aug 2003 01:47:12 -0000	1.1
  +++ MockLRURunner.java	17 Aug 2003 10:32:10 -0000	1.2
  @@ -134,4 +134,4 @@
       public int getInvoked() {
           return invoked;
       }
  -}
  \ No newline at end of file
  +}
  
  
  
  1.2       +1 -1      incubator-geronimo/modules/core/src/test/org/apache/geronimo/cache/SimpleInstancePoolTest.java
  
  Index: SimpleInstancePoolTest.java
  ===================================================================
  RCS file: /home/cvs/incubator-geronimo/modules/core/src/test/org/apache/geronimo/cache/SimpleInstancePoolTest.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- SimpleInstancePoolTest.java	13 Aug 2003 01:54:21 -0000	1.1
  +++ SimpleInstancePoolTest.java	17 Aug 2003 10:32:10 -0000	1.2
  @@ -116,4 +116,4 @@
               return new Object();
           }
       }
  -}
  \ No newline at end of file
  +}
  
  
  
  1.2       +112 -112  incubator-geronimo/modules/core/src/test/org/apache/geronimo/common/InvocationTypeTest.java
  
  Index: InvocationTypeTest.java
  ===================================================================
  RCS file: /home/cvs/incubator-geronimo/modules/core/src/test/org/apache/geronimo/common/InvocationTypeTest.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- InvocationTypeTest.java	16 Aug 2003 04:32:06 -0000	1.1
  +++ InvocationTypeTest.java	17 Aug 2003 10:32:10 -0000	1.2
  @@ -1,112 +1,112 @@
  -/* ====================================================================
  - * The Apache Software License, Version 1.1
  - *
  - * Copyright (c) 2003 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 Geronimo" 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 Geronimo", 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/>.
  - *
  - * ====================================================================
  - */
  -
  -package org.apache.geronimo.common;
  -
  -import junit.framework.TestCase;
  -
  -/**
  - * Unit test for org.apache.geronimo.common.InvocationType
  - *
  - * @version $Revision$ $Date$
  - */
  -
  -public class InvocationTypeTest extends TestCase {
  -
  -    public void testRemote() {
  -
  -        InvocationType invocationType = InvocationType.REMOTE;
  -        assertTrue(invocationType.isRemoteInvocation());
  -        assertFalse(invocationType.isLocalInvocation());
  -        assertFalse(invocationType.isHomeInvocation());
  -        assertTrue(invocationType.isBeanInvocation());
  -
  -        assertEquals("REMOTE", invocationType.toString());
  -    }
  -
  -    public void testHome() {
  -
  -        InvocationType invocationType = InvocationType.HOME;
  -        assertTrue(invocationType.isRemoteInvocation());
  -        assertFalse(invocationType.isLocalInvocation());
  -        assertTrue(invocationType.isHomeInvocation());
  -        assertFalse(invocationType.isBeanInvocation());
  -
  -        assertEquals("HOME", invocationType.toString());
  -    }
  -
  -    public void testLocal() {
  -
  -        InvocationType invocationType = InvocationType.LOCAL;
  -        assertFalse(invocationType.isRemoteInvocation());
  -        assertTrue(invocationType.isLocalInvocation());
  -        assertFalse(invocationType.isHomeInvocation());
  -        assertTrue(invocationType.isBeanInvocation());
  -
  -        assertEquals("LOCAL", invocationType.toString());
  -    }
  -
  -    public void testLocalHome() {
  -
  -        InvocationType invocationType = InvocationType.LOCALHOME;
  -        assertTrue(invocationType.isRemoteInvocation());
  -        assertFalse(invocationType.isLocalInvocation());
  -        assertFalse(invocationType.isHomeInvocation());
  -        assertTrue(invocationType.isBeanInvocation());
  -
  -        assertEquals("LOCALHOME", invocationType.toString());
  -    }
  -}
  \ No newline at end of file
  +/* ====================================================================
  + * The Apache Software License, Version 1.1
  + *
  + * Copyright (c) 2003 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 Geronimo" 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 Geronimo", 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/>.
  + *
  + * ====================================================================
  + */
  +
  +package org.apache.geronimo.common;
  +
  +import junit.framework.TestCase;
  +
  +/**
  + * Unit test for org.apache.geronimo.common.InvocationType
  + *
  + * @version $Revision$ $Date$
  + */
  +
  +public class InvocationTypeTest extends TestCase {
  +
  +    public void testRemote() {
  +
  +        InvocationType invocationType = InvocationType.REMOTE;
  +        assertTrue(invocationType.isRemoteInvocation());
  +        assertFalse(invocationType.isLocalInvocation());
  +        assertFalse(invocationType.isHomeInvocation());
  +        assertTrue(invocationType.isBeanInvocation());
  +
  +        assertEquals("REMOTE", invocationType.toString());
  +    }
  +
  +    public void testHome() {
  +
  +        InvocationType invocationType = InvocationType.HOME;
  +        assertTrue(invocationType.isRemoteInvocation());
  +        assertFalse(invocationType.isLocalInvocation());
  +        assertTrue(invocationType.isHomeInvocation());
  +        assertFalse(invocationType.isBeanInvocation());
  +
  +        assertEquals("HOME", invocationType.toString());
  +    }
  +
  +    public void testLocal() {
  +
  +        InvocationType invocationType = InvocationType.LOCAL;
  +        assertFalse(invocationType.isRemoteInvocation());
  +        assertTrue(invocationType.isLocalInvocation());
  +        assertFalse(invocationType.isHomeInvocation());
  +        assertTrue(invocationType.isBeanInvocation());
  +
  +        assertEquals("LOCAL", invocationType.toString());
  +    }
  +
  +    public void testLocalHome() {
  +
  +        InvocationType invocationType = InvocationType.LOCALHOME;
  +        assertTrue(invocationType.isRemoteInvocation());
  +        assertFalse(invocationType.isLocalInvocation());
  +        assertFalse(invocationType.isHomeInvocation());
  +        assertTrue(invocationType.isBeanInvocation());
  +
  +        assertEquals("LOCALHOME", invocationType.toString());
  +    }
  +}
  
  
  
  1.2       +107 -107  incubator-geronimo/modules/core/src/test/org/apache/geronimo/common/StateTest.java
  
  Index: StateTest.java
  ===================================================================
  RCS file: /home/cvs/incubator-geronimo/modules/core/src/test/org/apache/geronimo/common/StateTest.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- StateTest.java	16 Aug 2003 04:32:06 -0000	1.1
  +++ StateTest.java	17 Aug 2003 10:32:10 -0000	1.2
  @@ -1,107 +1,107 @@
  -/* ====================================================================
  - * The Apache Software License, Version 1.1
  - *
  - * Copyright (c) 2003 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 Geronimo" 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 Geronimo", 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/>.
  - *
  - * ====================================================================
  - */
  -
  -package org.apache.geronimo.common;
  -
  -import junit.framework.TestCase;
  -
  -/**
  - * Unit test for org.apache.geronimo.common.State class
  - *
  - * @version $Revision$ $Date$
  - */
  -
  -public class StateTest extends TestCase {
  -
  -    public void testValues() {
  -
  -        assertEquals(0, State.STARTING_INDEX);
  -        assertEquals(1, State.RUNNING_INDEX);
  -        assertEquals(2, State.STOPPING_INDEX);
  -        assertEquals(3, State.STOPPED_INDEX);
  -        assertEquals(4, State.FAILED_INDEX);
  -
  -        assertEquals(0, State.STARTING.toInt());
  -        assertEquals(1, State.RUNNING.toInt());
  -        assertEquals(2, State.STOPPING.toInt());
  -        assertEquals(3, State.STOPPED.toInt());
  -        assertEquals(4, State.FAILED.toInt());
  -    }
  -
  -    public void testLessThanMin() {
  -        assertNull(State.fromInt(-1));
  -    }
  -
  -    public void testGreaterThanMax() {
  -        assertNull(State.fromInt(5));
  -    }
  -
  -    public void testName() {
  -        assertEquals("starting", State.STARTING.toString());
  -        assertEquals("running", State.RUNNING.toString());
  -        assertEquals("stopping", State.STOPPING.toString());
  -        assertEquals("stopped", State.STOPPED.toString());
  -        assertEquals("failed", State.FAILED.toString());
  -    }
  -
  -    public void testEventTypeValue() {
  -        assertEquals("j2ee.state.starting", State.STARTING.getEventTypeValue());
  -        assertEquals("j2ee.state.running", State.RUNNING.getEventTypeValue());
  -        assertEquals("j2ee.state.stopping", State.STOPPING.getEventTypeValue());
  -        assertEquals("j2ee.state.stopped", State.STOPPED.getEventTypeValue());
  -        assertEquals("j2ee.state.failed", State.FAILED.getEventTypeValue());
  -    }
  -}
  \ No newline at end of file
  +/* ====================================================================
  + * The Apache Software License, Version 1.1
  + *
  + * Copyright (c) 2003 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 Geronimo" 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 Geronimo", 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/>.
  + *
  + * ====================================================================
  + */
  +
  +package org.apache.geronimo.common;
  +
  +import junit.framework.TestCase;
  +
  +/**
  + * Unit test for org.apache.geronimo.common.State class
  + *
  + * @version $Revision$ $Date$
  + */
  +
  +public class StateTest extends TestCase {
  +
  +    public void testValues() {
  +
  +        assertEquals(0, State.STARTING_INDEX);
  +        assertEquals(1, State.RUNNING_INDEX);
  +        assertEquals(2, State.STOPPING_INDEX);
  +        assertEquals(3, State.STOPPED_INDEX);
  +        assertEquals(4, State.FAILED_INDEX);
  +
  +        assertEquals(0, State.STARTING.toInt());
  +        assertEquals(1, State.RUNNING.toInt());
  +        assertEquals(2, State.STOPPING.toInt());
  +        assertEquals(3, State.STOPPED.toInt());
  +        assertEquals(4, State.FAILED.toInt());
  +    }
  +
  +    public void testLessThanMin() {
  +        assertNull(State.fromInt(-1));
  +    }
  +
  +    public void testGreaterThanMax() {
  +        assertNull(State.fromInt(5));
  +    }
  +
  +    public void testName() {
  +        assertEquals("starting", State.STARTING.toString());
  +        assertEquals("running", State.RUNNING.toString());
  +        assertEquals("stopping", State.STOPPING.toString());
  +        assertEquals("stopped", State.STOPPED.toString());
  +        assertEquals("failed", State.FAILED.toString());
  +    }
  +
  +    public void testEventTypeValue() {
  +        assertEquals("j2ee.state.starting", State.STARTING.getEventTypeValue());
  +        assertEquals("j2ee.state.running", State.RUNNING.getEventTypeValue());
  +        assertEquals("j2ee.state.stopping", State.STOPPING.getEventTypeValue());
  +        assertEquals("j2ee.state.stopped", State.STOPPED.getEventTypeValue());
  +        assertEquals("j2ee.state.failed", State.FAILED.getEventTypeValue());
  +    }
  +}
  
  
  
  1.2       +2 -2      incubator-geronimo/specs/j2ee-connector/src/test/javax/resource/ResourceExceptionTest.java
  
  Index: ResourceExceptionTest.java
  ===================================================================
  RCS file: /home/cvs/incubator-geronimo/specs/j2ee-connector/src/test/javax/resource/ResourceExceptionTest.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- ResourceExceptionTest.java	16 Aug 2003 05:26:50 -0000	1.1
  +++ ResourceExceptionTest.java	17 Aug 2003 10:32:10 -0000	1.2
  @@ -91,4 +91,4 @@
           ResourceException other = new ResourceException("other problem", "123");
           assertEquals("other problem", other.toString());
       }
  -}
  \ No newline at end of file
  +}
  
  
  
  1.2       +2 -2      incubator-geronimo/specs/j2ee-connector/src/test/javax/resource/spi/work/ExecutionContextTest.java
  
  Index: ExecutionContextTest.java
  ===================================================================
  RCS file: /home/cvs/incubator-geronimo/specs/j2ee-connector/src/test/javax/resource/spi/work/ExecutionContextTest.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- ExecutionContextTest.java	16 Aug 2003 05:26:50 -0000	1.1
  +++ ExecutionContextTest.java	17 Aug 2003 10:32:10 -0000	1.2
  @@ -93,4 +93,4 @@
           }
           fail("Expected NotSupportedException.");
       }
  -}
  \ No newline at end of file
  +}
  
  
  
  1.2       +2 -2      incubator-geronimo/specs/j2ee-connector/src/test/javax/resource/spi/work/WorkEventTest.java
  
  Index: WorkEventTest.java
  ===================================================================
  RCS file: /home/cvs/incubator-geronimo/specs/j2ee-connector/src/test/javax/resource/spi/work/WorkEventTest.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- WorkEventTest.java	16 Aug 2003 05:26:50 -0000	1.1
  +++ WorkEventTest.java	17 Aug 2003 10:32:10 -0000	1.2
  @@ -76,4 +76,4 @@
               fail("Didn't not expect a Throwable");
           }
       }
  -}
  \ No newline at end of file
  +}
  
  
  
  1.2       +2 -2      incubator-geronimo/specs/j2ee-connector/src/test/javax/resource/spi/work/WorkExceptionTest.java
  
  Index: WorkExceptionTest.java
  ===================================================================
  RCS file: /home/cvs/incubator-geronimo/specs/j2ee-connector/src/test/javax/resource/spi/work/WorkExceptionTest.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- WorkExceptionTest.java	16 Aug 2003 05:26:50 -0000	1.1
  +++ WorkExceptionTest.java	17 Aug 2003 10:32:10 -0000	1.2
  @@ -71,4 +71,4 @@
           workException = new WorkException("foo", new WorkException("bar"));
           assertEquals("errorCode: null", workException.getMessage());
       }
  -}
  \ No newline at end of file
  +}
  
  
  
  1.2       +1 -1      incubator-geronimo/specs/j2ee-management/src/test/javax/management/j2ee/ListenerRegistrationTest.java
  
  Index: ListenerRegistrationTest.java
  ===================================================================
  RCS file: /home/cvs/incubator-geronimo/specs/j2ee-management/src/test/javax/management/j2ee/ListenerRegistrationTest.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- ListenerRegistrationTest.java	16 Aug 2003 12:27:13 -0000	1.1
  +++ ListenerRegistrationTest.java	17 Aug 2003 10:32:11 -0000	1.2
  @@ -66,4 +66,4 @@
       public void testRemoveNotificationListener() {
           /*@todo implement*/
       }
  -}
  \ No newline at end of file
  +}
  
  
  

Mime
View raw message