geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rmannibu...@apache.org
Subject svn commit: r1649017 [3/3] - in /geronimo/specs/trunk/geronimo-jms_2.0_spec: ./ src/ src/main/ src/main/java/ src/main/java/javax/ src/main/java/javax/jms/ src/test/ src/test/java/ src/test/java/javax/ src/test/java/javax/jms/
Date Fri, 02 Jan 2015 13:18:23 GMT
Added: geronimo/specs/trunk/geronimo-jms_2.0_spec/src/main/java/javax/jms/TransactionInProgressException.java
URL: http://svn.apache.org/viewvc/geronimo/specs/trunk/geronimo-jms_2.0_spec/src/main/java/javax/jms/TransactionInProgressException.java?rev=1649017&view=auto
==============================================================================
--- geronimo/specs/trunk/geronimo-jms_2.0_spec/src/main/java/javax/jms/TransactionInProgressException.java (added)
+++ geronimo/specs/trunk/geronimo-jms_2.0_spec/src/main/java/javax/jms/TransactionInProgressException.java Fri Jan  2 13:18:22 2015
@@ -0,0 +1,39 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+//
+// This source code implements specifications defined by the Java
+// Community Process. In order to remain compliant with the specification
+// DO NOT add / change / or delete method signatures!
+//
+
+package javax.jms;
+
+/**
+ * @version $Rev: 467553 $ $Date: 2006-10-25 00:01:51 -0400 (Wed, 25 Oct 2006) $
+ */
+public class TransactionInProgressException extends JMSException {
+    public TransactionInProgressException(String reason, String errorCode) {
+        super(reason, errorCode);
+    }
+
+    public TransactionInProgressException(String reason) {
+        this(reason, null);
+    }
+}

Added: geronimo/specs/trunk/geronimo-jms_2.0_spec/src/main/java/javax/jms/TransactionInProgressRuntimeException.java
URL: http://svn.apache.org/viewvc/geronimo/specs/trunk/geronimo-jms_2.0_spec/src/main/java/javax/jms/TransactionInProgressRuntimeException.java?rev=1649017&view=auto
==============================================================================
--- geronimo/specs/trunk/geronimo-jms_2.0_spec/src/main/java/javax/jms/TransactionInProgressRuntimeException.java (added)
+++ geronimo/specs/trunk/geronimo-jms_2.0_spec/src/main/java/javax/jms/TransactionInProgressRuntimeException.java Fri Jan  2 13:18:22 2015
@@ -0,0 +1,34 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package javax.jms;
+
+public class TransactionInProgressRuntimeException extends JMSRuntimeException {
+    public TransactionInProgressRuntimeException(String message) {
+        super(message);
+    }
+
+    public TransactionInProgressRuntimeException(String message, String errorCode) {
+        super(message, errorCode);
+    }
+
+    public TransactionInProgressRuntimeException(String message, String errorCode, Throwable cause) {
+        super(message, errorCode, cause);
+    }
+}

Added: geronimo/specs/trunk/geronimo-jms_2.0_spec/src/main/java/javax/jms/TransactionRolledBackException.java
URL: http://svn.apache.org/viewvc/geronimo/specs/trunk/geronimo-jms_2.0_spec/src/main/java/javax/jms/TransactionRolledBackException.java?rev=1649017&view=auto
==============================================================================
--- geronimo/specs/trunk/geronimo-jms_2.0_spec/src/main/java/javax/jms/TransactionRolledBackException.java (added)
+++ geronimo/specs/trunk/geronimo-jms_2.0_spec/src/main/java/javax/jms/TransactionRolledBackException.java Fri Jan  2 13:18:22 2015
@@ -0,0 +1,39 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+//
+// This source code implements specifications defined by the Java
+// Community Process. In order to remain compliant with the specification
+// DO NOT add / change / or delete method signatures!
+//
+
+package javax.jms;
+
+/**
+ * @version $Rev: 467553 $ $Date: 2006-10-25 00:01:51 -0400 (Wed, 25 Oct 2006) $
+ */
+public class TransactionRolledBackException extends JMSException {
+    public TransactionRolledBackException(String reason, String errorCode) {
+        super(reason, errorCode);
+    }
+
+    public TransactionRolledBackException(String reason) {
+        this(reason, null);
+    }
+}

Added: geronimo/specs/trunk/geronimo-jms_2.0_spec/src/main/java/javax/jms/TransactionRolledBackRuntimeException.java
URL: http://svn.apache.org/viewvc/geronimo/specs/trunk/geronimo-jms_2.0_spec/src/main/java/javax/jms/TransactionRolledBackRuntimeException.java?rev=1649017&view=auto
==============================================================================
--- geronimo/specs/trunk/geronimo-jms_2.0_spec/src/main/java/javax/jms/TransactionRolledBackRuntimeException.java (added)
+++ geronimo/specs/trunk/geronimo-jms_2.0_spec/src/main/java/javax/jms/TransactionRolledBackRuntimeException.java Fri Jan  2 13:18:22 2015
@@ -0,0 +1,34 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package javax.jms;
+
+public class TransactionRolledBackRuntimeException extends JMSRuntimeException {
+    public TransactionRolledBackRuntimeException(String message) {
+        super(message);
+    }
+
+    public TransactionRolledBackRuntimeException(String message, String errorCode) {
+        super(message, errorCode);
+    }
+
+    public TransactionRolledBackRuntimeException(String message, String errorCode, Throwable cause) {
+        super(message, errorCode, cause);
+    }
+}

Added: geronimo/specs/trunk/geronimo-jms_2.0_spec/src/main/java/javax/jms/XAConnection.java
URL: http://svn.apache.org/viewvc/geronimo/specs/trunk/geronimo-jms_2.0_spec/src/main/java/javax/jms/XAConnection.java?rev=1649017&view=auto
==============================================================================
--- geronimo/specs/trunk/geronimo-jms_2.0_spec/src/main/java/javax/jms/XAConnection.java (added)
+++ geronimo/specs/trunk/geronimo-jms_2.0_spec/src/main/java/javax/jms/XAConnection.java Fri Jan  2 13:18:22 2015
@@ -0,0 +1,36 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+//
+// This source code implements specifications defined by the Java
+// Community Process. In order to remain compliant with the specification
+// DO NOT add / change / or delete method signatures!
+//
+
+package javax.jms;
+
+/**
+ * @version $Rev: 467553 $ $Date: 2006-10-25 00:01:51 -0400 (Wed, 25 Oct 2006) $
+ */
+public interface XAConnection extends Connection {
+    XASession createXASession() throws JMSException;
+
+    Session createSession(boolean transacted, int acknowledgeMode)
+        throws JMSException;
+}

Added: geronimo/specs/trunk/geronimo-jms_2.0_spec/src/main/java/javax/jms/XAConnectionFactory.java
URL: http://svn.apache.org/viewvc/geronimo/specs/trunk/geronimo-jms_2.0_spec/src/main/java/javax/jms/XAConnectionFactory.java?rev=1649017&view=auto
==============================================================================
--- geronimo/specs/trunk/geronimo-jms_2.0_spec/src/main/java/javax/jms/XAConnectionFactory.java (added)
+++ geronimo/specs/trunk/geronimo-jms_2.0_spec/src/main/java/javax/jms/XAConnectionFactory.java Fri Jan  2 13:18:22 2015
@@ -0,0 +1,40 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+//
+// This source code implements specifications defined by the Java
+// Community Process. In order to remain compliant with the specification
+// DO NOT add / change / or delete method signatures!
+//
+
+package javax.jms;
+
+/**
+ * @version $Rev: 467553 $ $Date: 2006-10-25 00:01:51 -0400 (Wed, 25 Oct 2006) $
+ */
+public interface XAConnectionFactory {
+    XAConnection createXAConnection() throws JMSException;
+
+    XAConnection createXAConnection(String userName, String password)
+        throws JMSException;
+
+    XAJMSContext createXAContext();
+
+    XAJMSContext createXAContext(String userName, String password);
+}

Added: geronimo/specs/trunk/geronimo-jms_2.0_spec/src/main/java/javax/jms/XAJMSContext.java
URL: http://svn.apache.org/viewvc/geronimo/specs/trunk/geronimo-jms_2.0_spec/src/main/java/javax/jms/XAJMSContext.java?rev=1649017&view=auto
==============================================================================
--- geronimo/specs/trunk/geronimo-jms_2.0_spec/src/main/java/javax/jms/XAJMSContext.java (added)
+++ geronimo/specs/trunk/geronimo-jms_2.0_spec/src/main/java/javax/jms/XAJMSContext.java Fri Jan  2 13:18:22 2015
@@ -0,0 +1,35 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package javax.jms;
+
+import javax.transaction.xa.XAResource;
+
+public interface XAJMSContext extends JMSContext {
+    void commit();
+
+    JMSContext getContext();
+
+    boolean getTransacted();
+
+    XAResource getXAResource();
+
+    void rollback();
+
+}
\ No newline at end of file

Added: geronimo/specs/trunk/geronimo-jms_2.0_spec/src/main/java/javax/jms/XAQueueConnection.java
URL: http://svn.apache.org/viewvc/geronimo/specs/trunk/geronimo-jms_2.0_spec/src/main/java/javax/jms/XAQueueConnection.java?rev=1649017&view=auto
==============================================================================
--- geronimo/specs/trunk/geronimo-jms_2.0_spec/src/main/java/javax/jms/XAQueueConnection.java (added)
+++ geronimo/specs/trunk/geronimo-jms_2.0_spec/src/main/java/javax/jms/XAQueueConnection.java Fri Jan  2 13:18:22 2015
@@ -0,0 +1,36 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+//
+// This source code implements specifications defined by the Java
+// Community Process. In order to remain compliant with the specification
+// DO NOT add / change / or delete method signatures!
+//
+
+package javax.jms;
+
+/**
+ * @version $Rev: 467553 $ $Date: 2006-10-25 00:01:51 -0400 (Wed, 25 Oct 2006) $
+ */
+public interface XAQueueConnection extends XAConnection, QueueConnection {
+    XAQueueSession createXAQueueSession() throws JMSException;
+
+    QueueSession createQueueSession(boolean transacted, int acknowledgeMode)
+        throws JMSException;
+}

Added: geronimo/specs/trunk/geronimo-jms_2.0_spec/src/main/java/javax/jms/XAQueueConnectionFactory.java
URL: http://svn.apache.org/viewvc/geronimo/specs/trunk/geronimo-jms_2.0_spec/src/main/java/javax/jms/XAQueueConnectionFactory.java?rev=1649017&view=auto
==============================================================================
--- geronimo/specs/trunk/geronimo-jms_2.0_spec/src/main/java/javax/jms/XAQueueConnectionFactory.java (added)
+++ geronimo/specs/trunk/geronimo-jms_2.0_spec/src/main/java/javax/jms/XAQueueConnectionFactory.java Fri Jan  2 13:18:22 2015
@@ -0,0 +1,37 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+//
+// This source code implements specifications defined by the Java
+// Community Process. In order to remain compliant with the specification
+// DO NOT add / change / or delete method signatures!
+//
+
+package javax.jms;
+
+/**
+ * @version $Rev: 467553 $ $Date: 2006-10-25 00:01:51 -0400 (Wed, 25 Oct 2006) $
+ */
+public interface XAQueueConnectionFactory
+    extends XAConnectionFactory, QueueConnectionFactory {
+    XAQueueConnection createXAQueueConnection() throws JMSException;
+
+    XAQueueConnection createXAQueueConnection(String userName, String password)
+        throws JMSException;
+}

Added: geronimo/specs/trunk/geronimo-jms_2.0_spec/src/main/java/javax/jms/XAQueueSession.java
URL: http://svn.apache.org/viewvc/geronimo/specs/trunk/geronimo-jms_2.0_spec/src/main/java/javax/jms/XAQueueSession.java?rev=1649017&view=auto
==============================================================================
--- geronimo/specs/trunk/geronimo-jms_2.0_spec/src/main/java/javax/jms/XAQueueSession.java (added)
+++ geronimo/specs/trunk/geronimo-jms_2.0_spec/src/main/java/javax/jms/XAQueueSession.java Fri Jan  2 13:18:22 2015
@@ -0,0 +1,33 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+//
+// This source code implements specifications defined by the Java
+// Community Process. In order to remain compliant with the specification
+// DO NOT add / change / or delete method signatures!
+//
+
+package javax.jms;
+
+/**
+ * @version $Rev: 467553 $ $Date: 2006-10-25 00:01:51 -0400 (Wed, 25 Oct 2006) $
+ */
+public interface XAQueueSession extends XASession {
+    QueueSession getQueueSession() throws JMSException;
+}

Added: geronimo/specs/trunk/geronimo-jms_2.0_spec/src/main/java/javax/jms/XASession.java
URL: http://svn.apache.org/viewvc/geronimo/specs/trunk/geronimo-jms_2.0_spec/src/main/java/javax/jms/XASession.java?rev=1649017&view=auto
==============================================================================
--- geronimo/specs/trunk/geronimo-jms_2.0_spec/src/main/java/javax/jms/XASession.java (added)
+++ geronimo/specs/trunk/geronimo-jms_2.0_spec/src/main/java/javax/jms/XASession.java Fri Jan  2 13:18:22 2015
@@ -0,0 +1,43 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+//
+// This source code implements specifications defined by the Java
+// Community Process. In order to remain compliant with the specification
+// DO NOT add / change / or delete method signatures!
+//
+
+package javax.jms;
+
+import javax.transaction.xa.XAResource;
+
+/**
+ * @version $Rev: 467553 $ $Date: 2006-10-25 00:01:51 -0400 (Wed, 25 Oct 2006) $
+ */
+public interface XASession extends Session {
+    Session getSession() throws JMSException;
+
+    XAResource getXAResource();
+
+    boolean getTransacted() throws JMSException;
+
+    void commit() throws JMSException;
+
+    void rollback() throws JMSException;
+}

Added: geronimo/specs/trunk/geronimo-jms_2.0_spec/src/main/java/javax/jms/XATopicConnection.java
URL: http://svn.apache.org/viewvc/geronimo/specs/trunk/geronimo-jms_2.0_spec/src/main/java/javax/jms/XATopicConnection.java?rev=1649017&view=auto
==============================================================================
--- geronimo/specs/trunk/geronimo-jms_2.0_spec/src/main/java/javax/jms/XATopicConnection.java (added)
+++ geronimo/specs/trunk/geronimo-jms_2.0_spec/src/main/java/javax/jms/XATopicConnection.java Fri Jan  2 13:18:22 2015
@@ -0,0 +1,36 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+//
+// This source code implements specifications defined by the Java
+// Community Process. In order to remain compliant with the specification
+// DO NOT add / change / or delete method signatures!
+//
+
+package javax.jms;
+
+/**
+ * @version $Rev: 467553 $ $Date: 2006-10-25 00:01:51 -0400 (Wed, 25 Oct 2006) $
+ */
+public interface XATopicConnection extends XAConnection, TopicConnection {
+    XATopicSession createXATopicSession() throws JMSException;
+
+    TopicSession createTopicSession(boolean transacted, int acknowledgeMode)
+        throws JMSException;
+}

Added: geronimo/specs/trunk/geronimo-jms_2.0_spec/src/main/java/javax/jms/XATopicConnectionFactory.java
URL: http://svn.apache.org/viewvc/geronimo/specs/trunk/geronimo-jms_2.0_spec/src/main/java/javax/jms/XATopicConnectionFactory.java?rev=1649017&view=auto
==============================================================================
--- geronimo/specs/trunk/geronimo-jms_2.0_spec/src/main/java/javax/jms/XATopicConnectionFactory.java (added)
+++ geronimo/specs/trunk/geronimo-jms_2.0_spec/src/main/java/javax/jms/XATopicConnectionFactory.java Fri Jan  2 13:18:22 2015
@@ -0,0 +1,37 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+//
+// This source code implements specifications defined by the Java
+// Community Process. In order to remain compliant with the specification
+// DO NOT add / change / or delete method signatures!
+//
+
+package javax.jms;
+
+/**
+ * @version $Rev: 467553 $ $Date: 2006-10-25 00:01:51 -0400 (Wed, 25 Oct 2006) $
+ */
+public interface XATopicConnectionFactory
+    extends XAConnectionFactory, TopicConnectionFactory {
+    XATopicConnection createXATopicConnection() throws JMSException;
+
+    XATopicConnection createXATopicConnection(String userName, String password)
+        throws JMSException;
+}

Added: geronimo/specs/trunk/geronimo-jms_2.0_spec/src/main/java/javax/jms/XATopicSession.java
URL: http://svn.apache.org/viewvc/geronimo/specs/trunk/geronimo-jms_2.0_spec/src/main/java/javax/jms/XATopicSession.java?rev=1649017&view=auto
==============================================================================
--- geronimo/specs/trunk/geronimo-jms_2.0_spec/src/main/java/javax/jms/XATopicSession.java (added)
+++ geronimo/specs/trunk/geronimo-jms_2.0_spec/src/main/java/javax/jms/XATopicSession.java Fri Jan  2 13:18:22 2015
@@ -0,0 +1,33 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+//
+// This source code implements specifications defined by the Java
+// Community Process. In order to remain compliant with the specification
+// DO NOT add / change / or delete method signatures!
+//
+
+package javax.jms;
+
+/**
+ * @version $Rev: 467553 $ $Date: 2006-10-25 00:01:51 -0400 (Wed, 25 Oct 2006) $
+ */
+public interface XATopicSession extends XASession {
+    TopicSession getTopicSession() throws JMSException;
+}

Added: geronimo/specs/trunk/geronimo-jms_2.0_spec/src/test/java/javax/jms/IllegalStateExceptionTest.java
URL: http://svn.apache.org/viewvc/geronimo/specs/trunk/geronimo-jms_2.0_spec/src/test/java/javax/jms/IllegalStateExceptionTest.java?rev=1649017&view=auto
==============================================================================
--- geronimo/specs/trunk/geronimo-jms_2.0_spec/src/test/java/javax/jms/IllegalStateExceptionTest.java (added)
+++ geronimo/specs/trunk/geronimo-jms_2.0_spec/src/test/java/javax/jms/IllegalStateExceptionTest.java Fri Jan  2 13:18:22 2015
@@ -0,0 +1,82 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+//
+// This source code implements specifications defined by the Java
+// Community Process. In order to remain compliant with the specification
+// DO NOT add / change / or delete method signatures!
+//
+
+package javax.jms;
+
+import junit.framework.TestCase;
+
+
+/**
+ * @version $Rev: 467553 $ $Date: 2006-10-25 00:01:51 -0400 (Wed, 25 Oct 2006) $
+ */
+public class IllegalStateExceptionTest extends TestCase {
+    public void testConstructorNull() {
+        IllegalStateException ex = new IllegalStateException(null);
+        assertNull(ex.getMessage());
+        assertNull(ex.getErrorCode());
+        assertNull(ex.getLinkedException());
+    }
+
+    public void testConstructorNullNull() {
+        IllegalStateException ex = new IllegalStateException(null, null);
+        assertNull(ex.getMessage());
+        assertNull(ex.getErrorCode());
+        assertNull(ex.getLinkedException());
+    }
+
+    public void testConstructorNullString() {
+        String expected = "some code";
+        IllegalStateException ex = new IllegalStateException(null, expected);
+        assertNull(ex.getMessage());
+        assertEquals(expected, ex.getErrorCode());
+        assertNull(ex.getLinkedException());
+    }
+
+    public void testConstructorString() {
+        String expected = "some message";
+        IllegalStateException ex = new IllegalStateException(expected);
+        assertEquals(expected, ex.getMessage());
+        assertNull(ex.getErrorCode());
+        assertNull(ex.getLinkedException());
+    }
+
+    public void testConstructorStringNull() {
+        String expected = "some message";
+        IllegalStateException ex = new IllegalStateException(expected, null);
+        assertEquals(expected, ex.getMessage());
+        assertNull(ex.getErrorCode());
+        assertNull(ex.getLinkedException());
+    }
+
+    public void testConstructorStringString() {
+        String expectedMessage = "some message";
+        String expectedCode = "some code";
+        IllegalStateException ex = new IllegalStateException(expectedMessage, expectedCode);
+        assertEquals(expectedMessage, ex.getMessage());
+        assertEquals(expectedCode, ex.getErrorCode());
+        assertNull(ex.getLinkedException());
+    }
+}
+

Added: geronimo/specs/trunk/geronimo-jms_2.0_spec/src/test/java/javax/jms/InvalidClientIDExceptionTest.java
URL: http://svn.apache.org/viewvc/geronimo/specs/trunk/geronimo-jms_2.0_spec/src/test/java/javax/jms/InvalidClientIDExceptionTest.java?rev=1649017&view=auto
==============================================================================
--- geronimo/specs/trunk/geronimo-jms_2.0_spec/src/test/java/javax/jms/InvalidClientIDExceptionTest.java (added)
+++ geronimo/specs/trunk/geronimo-jms_2.0_spec/src/test/java/javax/jms/InvalidClientIDExceptionTest.java Fri Jan  2 13:18:22 2015
@@ -0,0 +1,81 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+//
+// This source code implements specifications defined by the Java
+// Community Process. In order to remain compliant with the specification
+// DO NOT add / change / or delete method signatures!
+//
+
+package javax.jms;
+
+import junit.framework.TestCase;
+
+/**
+ * @version $Rev: 467553 $ $Date: 2006-10-25 00:01:51 -0400 (Wed, 25 Oct 2006) $
+ */
+public class InvalidClientIDExceptionTest extends TestCase {
+    public void testConstructorNull() {
+        InvalidClientIDException ex = new InvalidClientIDException(null);
+        assertNull(ex.getMessage());
+        assertNull(ex.getErrorCode());
+        assertNull(ex.getLinkedException());
+    }
+
+    public void testConstructorNullNull() {
+        InvalidClientIDException ex = new InvalidClientIDException(null, null);
+        assertNull(ex.getMessage());
+        assertNull(ex.getErrorCode());
+        assertNull(ex.getLinkedException());
+    }
+
+    public void testConstructorNullString() {
+        String expected = "some code";
+        InvalidClientIDException ex = new InvalidClientIDException(null, expected);
+        assertNull(ex.getMessage());
+        assertEquals(expected, ex.getErrorCode());
+        assertNull(ex.getLinkedException());
+    }
+
+    public void testConstructorString() {
+        String expected = "some message";
+        InvalidClientIDException ex = new InvalidClientIDException(expected);
+        assertEquals(expected, ex.getMessage());
+        assertNull(ex.getErrorCode());
+        assertNull(ex.getLinkedException());
+    }
+
+    public void testConstructorStringNull() {
+        String expected = "some message";
+        InvalidClientIDException ex = new InvalidClientIDException(expected, null);
+        assertEquals(expected, ex.getMessage());
+        assertNull(ex.getErrorCode());
+        assertNull(ex.getLinkedException());
+    }
+
+    public void testConstructorStringString() {
+        String expectedMessage = "some message";
+        String expectedCode = "some code";
+        InvalidClientIDException ex = new InvalidClientIDException(expectedMessage, expectedCode);
+        assertEquals(expectedMessage, ex.getMessage());
+        assertEquals(expectedCode, ex.getErrorCode());
+        assertNull(ex.getLinkedException());
+    }
+}
+

Added: geronimo/specs/trunk/geronimo-jms_2.0_spec/src/test/java/javax/jms/InvalidDestinationExceptionTest.java
URL: http://svn.apache.org/viewvc/geronimo/specs/trunk/geronimo-jms_2.0_spec/src/test/java/javax/jms/InvalidDestinationExceptionTest.java?rev=1649017&view=auto
==============================================================================
--- geronimo/specs/trunk/geronimo-jms_2.0_spec/src/test/java/javax/jms/InvalidDestinationExceptionTest.java (added)
+++ geronimo/specs/trunk/geronimo-jms_2.0_spec/src/test/java/javax/jms/InvalidDestinationExceptionTest.java Fri Jan  2 13:18:22 2015
@@ -0,0 +1,80 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+//
+// This source code implements specifications defined by the Java
+// Community Process. In order to remain compliant with the specification
+// DO NOT add / change / or delete method signatures!
+//
+
+package javax.jms;
+
+import junit.framework.TestCase;
+
+/**
+ * @version $Rev: 467553 $ $Date: 2006-10-25 00:01:51 -0400 (Wed, 25 Oct 2006) $
+ */
+public class InvalidDestinationExceptionTest extends TestCase {
+    public void testConstructorNull() {
+        InvalidDestinationException ex = new InvalidDestinationException(null);
+        assertNull(ex.getMessage());
+        assertNull(ex.getErrorCode());
+        assertNull(ex.getLinkedException());
+    }
+
+    public void testConstructorNullNull() {
+        InvalidDestinationException ex = new InvalidDestinationException(null, null);
+        assertNull(ex.getMessage());
+        assertNull(ex.getErrorCode());
+        assertNull(ex.getLinkedException());
+    }
+
+    public void testConstructorNullString() {
+        String expected = "some code";
+        InvalidDestinationException ex = new InvalidDestinationException(null, expected);
+        assertNull(ex.getMessage());
+        assertEquals(expected, ex.getErrorCode());
+        assertNull(ex.getLinkedException());
+    }
+
+    public void testConstructorString() {
+        String expected = "some message";
+        InvalidDestinationException ex = new InvalidDestinationException(expected);
+        assertEquals(expected, ex.getMessage());
+        assertNull(ex.getErrorCode());
+        assertNull(ex.getLinkedException());
+    }
+
+    public void testConstructorStringNull() {
+        String expected = "some message";
+        InvalidDestinationException ex = new InvalidDestinationException(expected, null);
+        assertEquals(expected, ex.getMessage());
+        assertNull(ex.getErrorCode());
+        assertNull(ex.getLinkedException());
+    }
+
+    public void testConstructorStringString() {
+        String expectedMessage = "some message";
+        String expectedCode = "some code";
+        InvalidDestinationException ex = new InvalidDestinationException(expectedMessage, expectedCode);
+        assertEquals(expectedMessage, ex.getMessage());
+        assertEquals(expectedCode, ex.getErrorCode());
+        assertNull(ex.getLinkedException());
+    }
+}

Added: geronimo/specs/trunk/geronimo-jms_2.0_spec/src/test/java/javax/jms/InvalidSelectorExceptionTest.java
URL: http://svn.apache.org/viewvc/geronimo/specs/trunk/geronimo-jms_2.0_spec/src/test/java/javax/jms/InvalidSelectorExceptionTest.java?rev=1649017&view=auto
==============================================================================
--- geronimo/specs/trunk/geronimo-jms_2.0_spec/src/test/java/javax/jms/InvalidSelectorExceptionTest.java (added)
+++ geronimo/specs/trunk/geronimo-jms_2.0_spec/src/test/java/javax/jms/InvalidSelectorExceptionTest.java Fri Jan  2 13:18:22 2015
@@ -0,0 +1,80 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+//
+// This source code implements specifications defined by the Java
+// Community Process. In order to remain compliant with the specification
+// DO NOT add / change / or delete method signatures!
+//
+
+package javax.jms;
+
+import junit.framework.TestCase;
+
+/**
+ * @version $Rev: 467553 $ $Date: 2006-10-25 00:01:51 -0400 (Wed, 25 Oct 2006) $
+ */
+public class InvalidSelectorExceptionTest extends TestCase {
+    public void testConstructorNull() {
+        InvalidSelectorException ex = new InvalidSelectorException(null);
+        assertNull(ex.getMessage());
+        assertNull(ex.getErrorCode());
+        assertNull(ex.getLinkedException());
+    }
+
+    public void testConstructorNullNull() {
+        InvalidSelectorException ex = new InvalidSelectorException(null, null);
+        assertNull(ex.getMessage());
+        assertNull(ex.getErrorCode());
+        assertNull(ex.getLinkedException());
+    }
+
+    public void testConstructorNullString() {
+        String expected = "some code";
+        InvalidSelectorException ex = new InvalidSelectorException(null, expected);
+        assertNull(ex.getMessage());
+        assertEquals(expected, ex.getErrorCode());
+        assertNull(ex.getLinkedException());
+    }
+
+    public void testConstructorString() {
+        String expected = "some message";
+        InvalidSelectorException ex = new InvalidSelectorException(expected);
+        assertEquals(expected, ex.getMessage());
+        assertNull(ex.getErrorCode());
+        assertNull(ex.getLinkedException());
+    }
+
+    public void testConstructorStringNull() {
+        String expected = "some message";
+        InvalidSelectorException ex = new InvalidSelectorException(expected, null);
+        assertEquals(expected, ex.getMessage());
+        assertNull(ex.getErrorCode());
+        assertNull(ex.getLinkedException());
+    }
+
+    public void testConstructorStringString() {
+        String expectedMessage = "some message";
+        String expectedCode = "some code";
+        InvalidSelectorException ex = new InvalidSelectorException(expectedMessage, expectedCode);
+        assertEquals(expectedMessage, ex.getMessage());
+        assertEquals(expectedCode, ex.getErrorCode());
+        assertNull(ex.getLinkedException());
+    }
+}

Added: geronimo/specs/trunk/geronimo-jms_2.0_spec/src/test/java/javax/jms/JMSExceptionTest.java
URL: http://svn.apache.org/viewvc/geronimo/specs/trunk/geronimo-jms_2.0_spec/src/test/java/javax/jms/JMSExceptionTest.java?rev=1649017&view=auto
==============================================================================
--- geronimo/specs/trunk/geronimo-jms_2.0_spec/src/test/java/javax/jms/JMSExceptionTest.java (added)
+++ geronimo/specs/trunk/geronimo-jms_2.0_spec/src/test/java/javax/jms/JMSExceptionTest.java Fri Jan  2 13:18:22 2015
@@ -0,0 +1,87 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+//
+// This source code implements specifications defined by the Java
+// Community Process. In order to remain compliant with the specification
+// DO NOT add / change / or delete method signatures!
+//
+
+package javax.jms;
+
+import junit.framework.TestCase;
+
+/**
+ * @version $Rev: 467553 $ $Date: 2006-10-25 00:01:51 -0400 (Wed, 25 Oct 2006) $
+ */
+public class JMSExceptionTest extends TestCase {
+    public void testConstructorNull() {
+        JMSException ex = new JMSException(null);
+        assertNull(ex.getMessage());
+        assertNull(ex.getErrorCode());
+        assertNull(ex.getLinkedException());
+    }
+
+    public void testConstructorNullNull() {
+        JMSException ex = new JMSException(null, null);
+        assertNull(ex.getMessage());
+        assertNull(ex.getErrorCode());
+        assertNull(ex.getLinkedException());
+    }
+
+    public void testConstructorNullString() {
+        String expected = "some code";
+        JMSException ex = new JMSException(null, expected);
+        assertNull(ex.getMessage());
+        assertEquals(expected, ex.getErrorCode());
+        assertNull(ex.getLinkedException());
+    }
+
+    public void testConstructorString() {
+        String expected = "some message";
+        JMSException ex = new JMSException(expected);
+        assertEquals(expected, ex.getMessage());
+        assertNull(ex.getErrorCode());
+        assertNull(ex.getLinkedException());
+    }
+
+    public void testConstructorStringNull() {
+        String expected = "some message";
+        JMSException ex = new JMSException(expected, null);
+        assertEquals(expected, ex.getMessage());
+        assertNull(ex.getErrorCode());
+        assertNull(ex.getLinkedException());
+    }
+
+    public void testConstructorStringString() {
+        String expectedMessage = "some message";
+        String expectedCode = "some code";
+        JMSException ex = new JMSException(expectedMessage, expectedCode);
+        assertEquals(expectedMessage, ex.getMessage());
+        assertEquals(expectedCode, ex.getErrorCode());
+        assertNull(ex.getLinkedException());
+    }
+
+    public void testSetLinkedException() {
+        Exception expected = new Exception();
+        JMSException ex = new JMSException(null);
+        ex.setLinkedException(expected);
+        assertEquals(expected, ex.getLinkedException());
+    }
+}

Added: geronimo/specs/trunk/geronimo-jms_2.0_spec/src/test/java/javax/jms/JMSSecurityExceptionTest.java
URL: http://svn.apache.org/viewvc/geronimo/specs/trunk/geronimo-jms_2.0_spec/src/test/java/javax/jms/JMSSecurityExceptionTest.java?rev=1649017&view=auto
==============================================================================
--- geronimo/specs/trunk/geronimo-jms_2.0_spec/src/test/java/javax/jms/JMSSecurityExceptionTest.java (added)
+++ geronimo/specs/trunk/geronimo-jms_2.0_spec/src/test/java/javax/jms/JMSSecurityExceptionTest.java Fri Jan  2 13:18:22 2015
@@ -0,0 +1,80 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+//
+// This source code implements specifications defined by the Java
+// Community Process. In order to remain compliant with the specification
+// DO NOT add / change / or delete method signatures!
+//
+
+package javax.jms;
+
+import junit.framework.TestCase;
+
+/**
+ * @version $Rev: 467553 $ $Date: 2006-10-25 00:01:51 -0400 (Wed, 25 Oct 2006) $
+ */
+public class JMSSecurityExceptionTest extends TestCase {
+    public void testConstructorNull() {
+        JMSSecurityException ex = new JMSSecurityException(null);
+        assertNull(ex.getMessage());
+        assertNull(ex.getErrorCode());
+        assertNull(ex.getLinkedException());
+    }
+
+    public void testConstructorNullNull() {
+        JMSSecurityException ex = new JMSSecurityException(null, null);
+        assertNull(ex.getMessage());
+        assertNull(ex.getErrorCode());
+        assertNull(ex.getLinkedException());
+    }
+
+    public void testConstructorNullString() {
+        String expected = "some code";
+        JMSSecurityException ex = new JMSSecurityException(null, expected);
+        assertNull(ex.getMessage());
+        assertEquals(expected, ex.getErrorCode());
+        assertNull(ex.getLinkedException());
+    }
+
+    public void testConstructorString() {
+        String expected = "some message";
+        JMSSecurityException ex = new JMSSecurityException(expected);
+        assertEquals(expected, ex.getMessage());
+        assertNull(ex.getErrorCode());
+        assertNull(ex.getLinkedException());
+    }
+
+    public void testConstructorStringNull() {
+        String expected = "some message";
+        JMSSecurityException ex = new JMSSecurityException(expected, null);
+        assertEquals(expected, ex.getMessage());
+        assertNull(ex.getErrorCode());
+        assertNull(ex.getLinkedException());
+    }
+
+    public void testConstructorStringString() {
+        String expectedMessage = "some message";
+        String expectedCode = "some code";
+        JMSSecurityException ex = new JMSSecurityException(expectedMessage, expectedCode);
+        assertEquals(expectedMessage, ex.getMessage());
+        assertEquals(expectedCode, ex.getErrorCode());
+        assertNull(ex.getLinkedException());
+    }
+}

Added: geronimo/specs/trunk/geronimo-jms_2.0_spec/src/test/java/javax/jms/MessageEOFExceptionTest.java
URL: http://svn.apache.org/viewvc/geronimo/specs/trunk/geronimo-jms_2.0_spec/src/test/java/javax/jms/MessageEOFExceptionTest.java?rev=1649017&view=auto
==============================================================================
--- geronimo/specs/trunk/geronimo-jms_2.0_spec/src/test/java/javax/jms/MessageEOFExceptionTest.java (added)
+++ geronimo/specs/trunk/geronimo-jms_2.0_spec/src/test/java/javax/jms/MessageEOFExceptionTest.java Fri Jan  2 13:18:22 2015
@@ -0,0 +1,80 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+//
+// This source code implements specifications defined by the Java
+// Community Process. In order to remain compliant with the specification
+// DO NOT add / change / or delete method signatures!
+//
+
+package javax.jms;
+
+import junit.framework.TestCase;
+
+/**
+ * @version $Rev: 467553 $ $Date: 2006-10-25 00:01:51 -0400 (Wed, 25 Oct 2006) $
+ */
+public class MessageEOFExceptionTest extends TestCase {
+    public void testConstructorNull() {
+        MessageEOFException ex = new MessageEOFException(null);
+        assertNull(ex.getMessage());
+        assertNull(ex.getErrorCode());
+        assertNull(ex.getLinkedException());
+    }
+
+    public void testConstructorNullNull() {
+        MessageEOFException ex = new MessageEOFException(null, null);
+        assertNull(ex.getMessage());
+        assertNull(ex.getErrorCode());
+        assertNull(ex.getLinkedException());
+    }
+
+    public void testConstructorNullString() {
+        String expected = "some code";
+        MessageEOFException ex = new MessageEOFException(null, expected);
+        assertNull(ex.getMessage());
+        assertEquals(expected, ex.getErrorCode());
+        assertNull(ex.getLinkedException());
+    }
+
+    public void testConstructorString() {
+        String expected = "some message";
+        MessageEOFException ex = new MessageEOFException(expected);
+        assertEquals(expected, ex.getMessage());
+        assertNull(ex.getErrorCode());
+        assertNull(ex.getLinkedException());
+    }
+
+    public void testConstructorStringNull() {
+        String expected = "some message";
+        MessageEOFException ex = new MessageEOFException(expected, null);
+        assertEquals(expected, ex.getMessage());
+        assertNull(ex.getErrorCode());
+        assertNull(ex.getLinkedException());
+    }
+
+    public void testConstructorStringString() {
+        String expectedMessage = "some message";
+        String expectedCode = "some code";
+        MessageEOFException ex = new MessageEOFException(expectedMessage, expectedCode);
+        assertEquals(expectedMessage, ex.getMessage());
+        assertEquals(expectedCode, ex.getErrorCode());
+        assertNull(ex.getLinkedException());
+    }
+}

Added: geronimo/specs/trunk/geronimo-jms_2.0_spec/src/test/java/javax/jms/MessageFormatExceptionTest.java
URL: http://svn.apache.org/viewvc/geronimo/specs/trunk/geronimo-jms_2.0_spec/src/test/java/javax/jms/MessageFormatExceptionTest.java?rev=1649017&view=auto
==============================================================================
--- geronimo/specs/trunk/geronimo-jms_2.0_spec/src/test/java/javax/jms/MessageFormatExceptionTest.java (added)
+++ geronimo/specs/trunk/geronimo-jms_2.0_spec/src/test/java/javax/jms/MessageFormatExceptionTest.java Fri Jan  2 13:18:22 2015
@@ -0,0 +1,80 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+//
+// This source code implements specifications defined by the Java
+// Community Process. In order to remain compliant with the specification
+// DO NOT add / change / or delete method signatures!
+//
+
+package javax.jms;
+
+import junit.framework.TestCase;
+
+/**
+ * @version $Rev: 467553 $ $Date: 2006-10-25 00:01:51 -0400 (Wed, 25 Oct 2006) $
+ */
+public class MessageFormatExceptionTest extends TestCase {
+    public void testConstructorNull() {
+        MessageFormatException ex = new MessageFormatException(null);
+        assertNull(ex.getMessage());
+        assertNull(ex.getErrorCode());
+        assertNull(ex.getLinkedException());
+    }
+
+    public void testConstructorNullNull() {
+        MessageFormatException ex = new MessageFormatException(null, null);
+        assertNull(ex.getMessage());
+        assertNull(ex.getErrorCode());
+        assertNull(ex.getLinkedException());
+    }
+
+    public void testConstructorNullString() {
+        String expected = "some code";
+        MessageFormatException ex = new MessageFormatException(null, expected);
+        assertNull(ex.getMessage());
+        assertEquals(expected, ex.getErrorCode());
+        assertNull(ex.getLinkedException());
+    }
+
+    public void testConstructorString() {
+        String expected = "some message";
+        MessageFormatException ex = new MessageFormatException(expected);
+        assertEquals(expected, ex.getMessage());
+        assertNull(ex.getErrorCode());
+        assertNull(ex.getLinkedException());
+    }
+
+    public void testConstructorStringNull() {
+        String expected = "some message";
+        MessageFormatException ex = new MessageFormatException(expected, null);
+        assertEquals(expected, ex.getMessage());
+        assertNull(ex.getErrorCode());
+        assertNull(ex.getLinkedException());
+    }
+
+    public void testConstructorStringString() {
+        String expectedMessage = "some message";
+        String expectedCode = "some code";
+        MessageFormatException ex = new MessageFormatException(expectedMessage, expectedCode);
+        assertEquals(expectedMessage, ex.getMessage());
+        assertEquals(expectedCode, ex.getErrorCode());
+        assertNull(ex.getLinkedException());
+    }
+}

Added: geronimo/specs/trunk/geronimo-jms_2.0_spec/src/test/java/javax/jms/MessageNotReadableExceptionTest.java
URL: http://svn.apache.org/viewvc/geronimo/specs/trunk/geronimo-jms_2.0_spec/src/test/java/javax/jms/MessageNotReadableExceptionTest.java?rev=1649017&view=auto
==============================================================================
--- geronimo/specs/trunk/geronimo-jms_2.0_spec/src/test/java/javax/jms/MessageNotReadableExceptionTest.java (added)
+++ geronimo/specs/trunk/geronimo-jms_2.0_spec/src/test/java/javax/jms/MessageNotReadableExceptionTest.java Fri Jan  2 13:18:22 2015
@@ -0,0 +1,80 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+//
+// This source code implements specifications defined by the Java
+// Community Process. In order to remain compliant with the specification
+// DO NOT add / change / or delete method signatures!
+//
+
+package javax.jms;
+
+import junit.framework.TestCase;
+
+/**
+ * @version $Rev: 467553 $ $Date: 2006-10-25 00:01:51 -0400 (Wed, 25 Oct 2006) $
+ */
+public class MessageNotReadableExceptionTest extends TestCase {
+    public void testConstructorNull() {
+        MessageNotReadableException ex = new MessageNotReadableException(null);
+        assertNull(ex.getMessage());
+        assertNull(ex.getErrorCode());
+        assertNull(ex.getLinkedException());
+    }
+
+    public void testConstructorNullNull() {
+        MessageNotReadableException ex = new MessageNotReadableException(null, null);
+        assertNull(ex.getMessage());
+        assertNull(ex.getErrorCode());
+        assertNull(ex.getLinkedException());
+    }
+
+    public void testConstructorNullString() {
+        String expected = "some code";
+        MessageNotReadableException ex = new MessageNotReadableException(null, expected);
+        assertNull(ex.getMessage());
+        assertEquals(expected, ex.getErrorCode());
+        assertNull(ex.getLinkedException());
+    }
+
+    public void testConstructorString() {
+        String expected = "some message";
+        MessageNotReadableException ex = new MessageNotReadableException(expected);
+        assertEquals(expected, ex.getMessage());
+        assertNull(ex.getErrorCode());
+        assertNull(ex.getLinkedException());
+    }
+
+    public void testConstructorStringNull() {
+        String expected = "some message";
+        MessageNotReadableException ex = new MessageNotReadableException(expected, null);
+        assertEquals(expected, ex.getMessage());
+        assertNull(ex.getErrorCode());
+        assertNull(ex.getLinkedException());
+    }
+
+    public void testConstructorStringString() {
+        String expectedMessage = "some message";
+        String expectedCode = "some code";
+        MessageNotReadableException ex = new MessageNotReadableException(expectedMessage, expectedCode);
+        assertEquals(expectedMessage, ex.getMessage());
+        assertEquals(expectedCode, ex.getErrorCode());
+        assertNull(ex.getLinkedException());
+    }
+}

Added: geronimo/specs/trunk/geronimo-jms_2.0_spec/src/test/java/javax/jms/MessageNotWriteableExceptionTest.java
URL: http://svn.apache.org/viewvc/geronimo/specs/trunk/geronimo-jms_2.0_spec/src/test/java/javax/jms/MessageNotWriteableExceptionTest.java?rev=1649017&view=auto
==============================================================================
--- geronimo/specs/trunk/geronimo-jms_2.0_spec/src/test/java/javax/jms/MessageNotWriteableExceptionTest.java (added)
+++ geronimo/specs/trunk/geronimo-jms_2.0_spec/src/test/java/javax/jms/MessageNotWriteableExceptionTest.java Fri Jan  2 13:18:22 2015
@@ -0,0 +1,80 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+//
+// This source code implements specifications defined by the Java
+// Community Process. In order to remain compliant with the specification
+// DO NOT add / change / or delete method signatures!
+//
+
+package javax.jms;
+
+import junit.framework.TestCase;
+
+/**
+ * @version $Rev: 467553 $ $Date: 2006-10-25 00:01:51 -0400 (Wed, 25 Oct 2006) $
+ */
+public class MessageNotWriteableExceptionTest extends TestCase {
+    public void testConstructorNull() {
+        MessageNotWriteableException ex = new MessageNotWriteableException(null);
+        assertNull(ex.getMessage());
+        assertNull(ex.getErrorCode());
+        assertNull(ex.getLinkedException());
+    }
+
+    public void testConstructorNullNull() {
+        MessageNotWriteableException ex = new MessageNotWriteableException(null, null);
+        assertNull(ex.getMessage());
+        assertNull(ex.getErrorCode());
+        assertNull(ex.getLinkedException());
+    }
+
+    public void testConstructorNullString() {
+        String expected = "some code";
+        MessageNotWriteableException ex = new MessageNotWriteableException(null, expected);
+        assertNull(ex.getMessage());
+        assertEquals(expected, ex.getErrorCode());
+        assertNull(ex.getLinkedException());
+    }
+
+    public void testConstructorString() {
+        String expected = "some message";
+        MessageNotWriteableException ex = new MessageNotWriteableException(expected);
+        assertEquals(expected, ex.getMessage());
+        assertNull(ex.getErrorCode());
+        assertNull(ex.getLinkedException());
+    }
+
+    public void testConstructorStringNull() {
+        String expected = "some message";
+        MessageNotWriteableException ex = new MessageNotWriteableException(expected, null);
+        assertEquals(expected, ex.getMessage());
+        assertNull(ex.getErrorCode());
+        assertNull(ex.getLinkedException());
+    }
+
+    public void testConstructorStringString() {
+        String expectedMessage = "some message";
+        String expectedCode = "some code";
+        MessageNotWriteableException ex = new MessageNotWriteableException(expectedMessage, expectedCode);
+        assertEquals(expectedMessage, ex.getMessage());
+        assertEquals(expectedCode, ex.getErrorCode());
+        assertNull(ex.getLinkedException());
+    }
+}

Added: geronimo/specs/trunk/geronimo-jms_2.0_spec/src/test/java/javax/jms/QueueRequestorTest.java
URL: http://svn.apache.org/viewvc/geronimo/specs/trunk/geronimo-jms_2.0_spec/src/test/java/javax/jms/QueueRequestorTest.java?rev=1649017&view=auto
==============================================================================
--- geronimo/specs/trunk/geronimo-jms_2.0_spec/src/test/java/javax/jms/QueueRequestorTest.java (added)
+++ geronimo/specs/trunk/geronimo-jms_2.0_spec/src/test/java/javax/jms/QueueRequestorTest.java Fri Jan  2 13:18:22 2015
@@ -0,0 +1,187 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+//
+// This source code implements specifications defined by the Java
+// Community Process. In order to remain compliant with the specification
+// DO NOT add / change / or delete method signatures!
+//
+
+package javax.jms;
+
+import com.mockobjects.jms.MockMessage;
+import com.mockobjects.jms.MockQueue;
+import com.mockobjects.jms.MockQueueReceiver;
+import com.mockobjects.jms.MockQueueSender;
+import com.mockobjects.jms.MockQueueSession;
+import com.mockobjects.jms.MockTemporaryQueue;
+import com.mockobjects.jms.MockTextMessage;
+
+import junit.framework.TestCase;
+
+/**
+ * @version $Rev: 467553 $ $Date: 2006-10-25 00:01:51 -0400 (Wed, 25 Oct 2006) $
+ */
+public class QueueRequestorTest extends TestCase {
+    public void testConstructorNullQueue() {
+        MockQueue queue = new MockQueue();
+
+        try {
+            new QueueRequestor(null, queue);
+            fail();
+        } catch (JMSException ex) {
+            fail("JMSException should not have been thrown.");
+        } catch (NullPointerException ex) {
+            // success.
+        }
+
+        queue.verify();
+    }
+
+    public void testConstructorSessionNull() {
+        MockQueueSession session = new MockQueueSession();
+
+        try {
+            new QueueRequestor(session, null);
+            fail();
+        } catch (JMSException ex) {
+            // success
+        }
+
+        session.verify();
+    }
+
+    public void testConstructorSessionQueue() {
+        MockQueue queue = new MockQueue();
+        MockQueueReceiver receiver = new MockQueueReceiver();
+        MockQueueSender sender = new MockQueueSender();
+        MockQueueSession session = new MockQueueSession();
+        MockTemporaryQueue tempQueue = new MockTemporaryQueue();
+
+        session.setupReceiver(receiver);
+        session.setupSender(sender);
+        session.setupTemporaryQueue(tempQueue);
+
+        try {
+            new QueueRequestor(session, queue);
+            // success
+        } catch (JMSException ex) {
+            fail();
+        }
+
+        queue.verify();
+        receiver.verify();
+        sender.verify();
+        session.verify();
+        tempQueue.verify();
+    }
+
+    public void testRequestNull() {
+        MockQueue queue = new MockQueue();
+        MockQueueReceiver receiver = new MockQueueReceiver();
+        MockQueueSender sender = new MockQueueSender();
+        MockQueueSession session = new MockQueueSession();
+        MockTemporaryQueue tempQueue = new MockTemporaryQueue();
+
+        session.setupReceiver(receiver);
+        session.setupSender(sender);
+        session.setupTemporaryQueue(tempQueue);
+
+        try {
+            QueueRequestor requestor = new QueueRequestor(session, queue);
+            requestor.request(null);
+            fail();
+        } catch (JMSException ex) {
+            fail("JMSException should not have been thrown.");
+        } catch (NullPointerException ex) {
+            // success
+        }
+
+        queue.verify();
+        receiver.verify();
+        sender.verify();
+        session.verify();
+        tempQueue.verify();
+    }
+
+    public void testRequestMessage() {
+        MockMessage reply = new MockTextMessage();
+        MockMessage request = new MockTextMessage();
+        MockQueue queue = new MockQueue();
+        MockQueueReceiver receiver = new MockQueueReceiver();
+        MockQueueSender sender = new MockQueueSender();
+        MockQueueSession session = new MockQueueSession();
+        MockTemporaryQueue tempQueue = new MockTemporaryQueue();
+
+        request.setExpectedJMSReplyTo(tempQueue);
+
+        receiver.setExpectedReceiveCalls(1);
+        receiver.setupReceivedMessage(reply);
+
+        sender.setExpectedSendCalls(1);
+
+        session.setupReceiver(receiver);
+        session.setupSender(sender);
+        session.setupTemporaryQueue(tempQueue);
+
+        try {
+            QueueRequestor requestor = new QueueRequestor(session, queue);
+            Message jmsReply = requestor.request(request);
+            assertEquals(jmsReply, reply);
+        } catch (JMSException ex) {
+            fail("JMSException should not have been thrown.");
+        }
+
+        reply.verify();
+        request.verify();
+        queue.verify();
+        receiver.verify();
+        sender.verify();
+        session.verify();
+        tempQueue.verify();
+    }
+
+    public void testClose() {
+        MockQueue queue = new MockQueue();
+        MockQueueReceiver receiver = new MockQueueReceiver();
+        MockQueueSender sender = new MockQueueSender();
+        MockQueueSession session = new MockQueueSession();
+        MockTemporaryQueue tempQueue = new MockTemporaryQueue();
+
+        session.setExpectedCloseCalls(1);
+        session.setupReceiver(receiver);
+        session.setupSender(sender);
+        session.setupTemporaryQueue(tempQueue);
+
+        tempQueue.setExpectedDeleteCalls(1);
+
+        try {
+            QueueRequestor requestor = new QueueRequestor(session, queue);
+            requestor.close();
+        } catch (JMSException ex) {
+            fail();
+        }
+
+        queue.verify();
+        receiver.verify();
+        sender.verify();
+        session.verify();
+        tempQueue.verify();
+    }
+}

Added: geronimo/specs/trunk/geronimo-jms_2.0_spec/src/test/java/javax/jms/ResourceAllocationExceptionTest.java
URL: http://svn.apache.org/viewvc/geronimo/specs/trunk/geronimo-jms_2.0_spec/src/test/java/javax/jms/ResourceAllocationExceptionTest.java?rev=1649017&view=auto
==============================================================================
--- geronimo/specs/trunk/geronimo-jms_2.0_spec/src/test/java/javax/jms/ResourceAllocationExceptionTest.java (added)
+++ geronimo/specs/trunk/geronimo-jms_2.0_spec/src/test/java/javax/jms/ResourceAllocationExceptionTest.java Fri Jan  2 13:18:22 2015
@@ -0,0 +1,80 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+//
+// This source code implements specifications defined by the Java
+// Community Process. In order to remain compliant with the specification
+// DO NOT add / change / or delete method signatures!
+//
+
+package javax.jms;
+
+import junit.framework.TestCase;
+
+/**
+ * @version $Rev: 467553 $ $Date: 2006-10-25 00:01:51 -0400 (Wed, 25 Oct 2006) $
+ */
+public class ResourceAllocationExceptionTest extends TestCase {
+    public void testConstructorNull() {
+        ResourceAllocationException ex = new ResourceAllocationException(null);
+        assertNull(ex.getMessage());
+        assertNull(ex.getErrorCode());
+        assertNull(ex.getLinkedException());
+    }
+
+    public void testConstructorNullNull() {
+        ResourceAllocationException ex = new ResourceAllocationException(null, null);
+        assertNull(ex.getMessage());
+        assertNull(ex.getErrorCode());
+        assertNull(ex.getLinkedException());
+    }
+
+    public void testConstructorNullString() {
+        String expected = "some code";
+        ResourceAllocationException ex = new ResourceAllocationException(null, expected);
+        assertNull(ex.getMessage());
+        assertEquals(expected, ex.getErrorCode());
+        assertNull(ex.getLinkedException());
+    }
+
+    public void testConstructorString() {
+        String expected = "some message";
+        ResourceAllocationException ex = new ResourceAllocationException(expected);
+        assertEquals(expected, ex.getMessage());
+        assertNull(ex.getErrorCode());
+        assertNull(ex.getLinkedException());
+    }
+
+    public void testConstructorStringNull() {
+        String expected = "some message";
+        ResourceAllocationException ex = new ResourceAllocationException(expected, null);
+        assertEquals(expected, ex.getMessage());
+        assertNull(ex.getErrorCode());
+        assertNull(ex.getLinkedException());
+    }
+
+    public void testConstructorStringString() {
+        String expectedMessage = "some message";
+        String expectedCode = "some code";
+        ResourceAllocationException ex = new ResourceAllocationException(expectedMessage, expectedCode);
+        assertEquals(expectedMessage, ex.getMessage());
+        assertEquals(expectedCode, ex.getErrorCode());
+        assertNull(ex.getLinkedException());
+    }
+}

Added: geronimo/specs/trunk/geronimo-jms_2.0_spec/src/test/java/javax/jms/TopicRequestorTest.java
URL: http://svn.apache.org/viewvc/geronimo/specs/trunk/geronimo-jms_2.0_spec/src/test/java/javax/jms/TopicRequestorTest.java?rev=1649017&view=auto
==============================================================================
--- geronimo/specs/trunk/geronimo-jms_2.0_spec/src/test/java/javax/jms/TopicRequestorTest.java (added)
+++ geronimo/specs/trunk/geronimo-jms_2.0_spec/src/test/java/javax/jms/TopicRequestorTest.java Fri Jan  2 13:18:22 2015
@@ -0,0 +1,50 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+//
+// This source code implements specifications defined by the Java
+// Community Process. In order to remain compliant with the specification
+// DO NOT add / change / or delete method signatures!
+//
+
+package javax.jms;
+
+import com.mockobjects.jms.MockTopic;
+
+import junit.framework.TestCase;
+
+/**
+ * @version $Rev: 467553 $ $Date: 2006-10-25 00:01:51 -0400 (Wed, 25 Oct 2006) $
+ */
+public class TopicRequestorTest extends TestCase {
+    public void testConstructorNullTopic() {
+        MockTopic topic = new MockTopic();
+
+        try {
+            new TopicRequestor(null, topic);
+            fail();
+        } catch (JMSException ex) {
+            fail("JMSException should not have been thrown.");
+        } catch (NullPointerException ex) {
+            // success.
+        }
+
+        topic.verify();
+    }
+}

Added: geronimo/specs/trunk/geronimo-jms_2.0_spec/src/test/java/javax/jms/TransactionInProgressExceptionTest.java
URL: http://svn.apache.org/viewvc/geronimo/specs/trunk/geronimo-jms_2.0_spec/src/test/java/javax/jms/TransactionInProgressExceptionTest.java?rev=1649017&view=auto
==============================================================================
--- geronimo/specs/trunk/geronimo-jms_2.0_spec/src/test/java/javax/jms/TransactionInProgressExceptionTest.java (added)
+++ geronimo/specs/trunk/geronimo-jms_2.0_spec/src/test/java/javax/jms/TransactionInProgressExceptionTest.java Fri Jan  2 13:18:22 2015
@@ -0,0 +1,80 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+//
+// This source code implements specifications defined by the Java
+// Community Process. In order to remain compliant with the specification
+// DO NOT add / change / or delete method signatures!
+//
+
+package javax.jms;
+
+import junit.framework.TestCase;
+
+/**
+ * @version $Rev: 467553 $ $Date: 2006-10-25 00:01:51 -0400 (Wed, 25 Oct 2006) $
+ */
+public class TransactionInProgressExceptionTest extends TestCase {
+    public void testConstructorNull() {
+        TransactionInProgressException ex = new TransactionInProgressException(null);
+        assertNull(ex.getMessage());
+        assertNull(ex.getErrorCode());
+        assertNull(ex.getLinkedException());
+    }
+
+    public void testConstructorNullNull() {
+        TransactionInProgressException ex = new TransactionInProgressException(null, null);
+        assertNull(ex.getMessage());
+        assertNull(ex.getErrorCode());
+        assertNull(ex.getLinkedException());
+    }
+
+    public void testConstructorNullString() {
+        String expected = "some code";
+        TransactionInProgressException ex = new TransactionInProgressException(null, expected);
+        assertNull(ex.getMessage());
+        assertEquals(expected, ex.getErrorCode());
+        assertNull(ex.getLinkedException());
+    }
+
+    public void testConstructorString() {
+        String expected = "some message";
+        TransactionInProgressException ex = new TransactionInProgressException(expected);
+        assertEquals(expected, ex.getMessage());
+        assertNull(ex.getErrorCode());
+        assertNull(ex.getLinkedException());
+    }
+
+    public void testConstructorStringNull() {
+        String expected = "some message";
+        TransactionInProgressException ex = new TransactionInProgressException(expected, null);
+        assertEquals(expected, ex.getMessage());
+        assertNull(ex.getErrorCode());
+        assertNull(ex.getLinkedException());
+    }
+
+    public void testConstructorStringString() {
+        String expectedMessage = "some message";
+        String expectedCode = "some code";
+        TransactionInProgressException ex = new TransactionInProgressException(expectedMessage, expectedCode);
+        assertEquals(expectedMessage, ex.getMessage());
+        assertEquals(expectedCode, ex.getErrorCode());
+        assertNull(ex.getLinkedException());
+    }
+}

Added: geronimo/specs/trunk/geronimo-jms_2.0_spec/src/test/java/javax/jms/TransactionRolledBackExceptionTest.java
URL: http://svn.apache.org/viewvc/geronimo/specs/trunk/geronimo-jms_2.0_spec/src/test/java/javax/jms/TransactionRolledBackExceptionTest.java?rev=1649017&view=auto
==============================================================================
--- geronimo/specs/trunk/geronimo-jms_2.0_spec/src/test/java/javax/jms/TransactionRolledBackExceptionTest.java (added)
+++ geronimo/specs/trunk/geronimo-jms_2.0_spec/src/test/java/javax/jms/TransactionRolledBackExceptionTest.java Fri Jan  2 13:18:22 2015
@@ -0,0 +1,80 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+//
+// This source code implements specifications defined by the Java
+// Community Process. In order to remain compliant with the specification
+// DO NOT add / change / or delete method signatures!
+//
+
+package javax.jms;
+
+import junit.framework.TestCase;
+
+/**
+ * @version $Rev: 467553 $ $Date: 2006-10-25 00:01:51 -0400 (Wed, 25 Oct 2006) $
+ */
+public class TransactionRolledBackExceptionTest extends TestCase {
+    public void testConstructorNull() {
+        TransactionRolledBackException ex = new TransactionRolledBackException(null);
+        assertNull(ex.getMessage());
+        assertNull(ex.getErrorCode());
+        assertNull(ex.getLinkedException());
+    }
+
+    public void testConstructorNullNull() {
+        TransactionRolledBackException ex = new TransactionRolledBackException(null, null);
+        assertNull(ex.getMessage());
+        assertNull(ex.getErrorCode());
+        assertNull(ex.getLinkedException());
+    }
+
+    public void testConstructorNullString() {
+        String expected = "some code";
+        TransactionRolledBackException ex = new TransactionRolledBackException(null, expected);
+        assertNull(ex.getMessage());
+        assertEquals(expected, ex.getErrorCode());
+        assertNull(ex.getLinkedException());
+    }
+
+    public void testConstructorString() {
+        String expected = "some message";
+        TransactionRolledBackException ex = new TransactionRolledBackException(expected);
+        assertEquals(expected, ex.getMessage());
+        assertNull(ex.getErrorCode());
+        assertNull(ex.getLinkedException());
+    }
+
+    public void testConstructorStringNull() {
+        String expected = "some message";
+        TransactionRolledBackException ex = new TransactionRolledBackException(expected, null);
+        assertEquals(expected, ex.getMessage());
+        assertNull(ex.getErrorCode());
+        assertNull(ex.getLinkedException());
+    }
+
+    public void testConstructorStringString() {
+        String expectedMessage = "some message";
+        String expectedCode = "some code";
+        TransactionRolledBackException ex = new TransactionRolledBackException(expectedMessage, expectedCode);
+        assertEquals(expectedMessage, ex.getMessage());
+        assertEquals(expectedCode, ex.getErrorCode());
+        assertNull(ex.getLinkedException());
+    }
+}



Mime
View raw message