[embjopr-commits] EMBJOPR SVN: r234 - trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5.
embjopr-commits at lists.jboss.org
embjopr-commits at lists.jboss.org
Tue Mar 17 14:36:18 EDT 2009
Author: ozizka at redhat.com
Date: 2009-03-17 14:36:17 -0400 (Tue, 17 Mar 2009)
New Revision: 234
Modified:
trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/JMSTest.java
Log:
Added EmbJoprTestException to remaining JMS tests which call getNodeArrow() indirectly
Modified: trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/JMSTest.java
===================================================================
--- trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/JMSTest.java 2009-03-17 18:34:16 UTC (rev 233)
+++ trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/as5/JMSTest.java 2009-03-17 18:36:17 UTC (rev 234)
@@ -32,6 +32,7 @@
import org.jboss.jopr.jsfunit.*;
import javax.management.MBeanServer;
import javax.management.ObjectName;
+import org.jboss.jopr.jsfunit.exceptions.EmbJoprTestException;
import org.jboss.mx.util.MBeanServerLocator;
import org.jboss.deployers.spi.management.KnownComponentTypes;
import org.jboss.metatype.api.values.SimpleValueSupport;
@@ -85,7 +86,7 @@
*/
protected void createDestination(DestinationType destinationType,
String templateName,
- Map<String, MetaValue> propertiesMap) throws IOException {
+ Map<String, MetaValue> propertiesMap) throws IOException, EmbJoprTestException {
expandNavTreeArrow(JMS_NAV_LABEL);
createResource(destinationType.getNavLabel(), templateName, propertiesMap);
}
@@ -106,7 +107,7 @@
* Create a basic queue. Return the mapping of property names to property
* values.
*/
- protected Map<String, MetaValue> createQueue(String queueName) throws IOException {
+ protected Map<String, MetaValue> createQueue(String queueName) throws IOException, EmbJoprTestException {
Map<String, MetaValue> propertiesMap = new HashMap<String, MetaValue>();
propertiesMap.put("JNDIName", SimpleValueSupport.wrap(queueName));
@@ -127,7 +128,7 @@
* Create a basic topic. Return the mapping of property names to property
* values.
*/
- protected Map<String, MetaValue> createTopic(String topicName) throws IOException {
+ protected Map<String, MetaValue> createTopic(String topicName) throws IOException, EmbJoprTestException {
Map<String, MetaValue> propertiesMap = new HashMap<String, MetaValue>();
propertiesMap.put("JNDIName", SimpleValueSupport.wrap(topicName));
propertiesMap.put("clustered", SimpleValueSupport.wrap(Boolean.TRUE));
@@ -239,7 +240,7 @@
* Assertion: Verify the ability to handle a missing required value when
* creating a queue. Make sure the appropriate error message occurs.
*/
- public void testCreateQueueMissingRequiredValue() throws IOException {
+ public void testCreateQueueMissingRequiredValue() throws IOException, EmbJoprTestException {
createDestinationMissingRequiredValue(DestinationType.QUEUE, QUEUE_DEFAULT_TEMPLATE);
}
@@ -248,7 +249,7 @@
* Assertion: Verify the ability to handle a missing required value when
* creating a topic. Make sure the appropriate error message occurs.
*/
- public void testCreateTopicMissingRequiredValue() throws IOException {
+ public void testCreateTopicMissingRequiredValue() throws IOException, EmbJoprTestException {
createDestinationMissingRequiredValue(DestinationType.TOPIC, TOPIC_DEFAULT_TEMPLATE);
}
@@ -256,7 +257,7 @@
* Common code for the testCreate*MissingRequiredValue() tests.
*/
private void createDestinationMissingRequiredValue(DestinationType destinationType,
- String destinationTemplate) throws IOException {
+ String destinationTemplate) throws IOException, EmbJoprTestException {
// Leave the JNDI name unset
Map<String, MetaValue> propertiesMap = new HashMap<String, MetaValue>();
propertiesMap.put("clustered", SimpleValueSupport.wrap(Boolean.TRUE));
@@ -276,7 +277,7 @@
* expected range of values when creating a queue. Make sure the appropriate
* error message occurs.
*/
- public void testCreateQueuePropertyOutOfRange() throws IOException {
+ public void testCreateQueuePropertyOutOfRange() throws IOException, EmbJoprTestException {
createDestinationPropertyOutOfRange(DestinationType.QUEUE,
QUEUE_DEFAULT_TEMPLATE,
"PropertyOutOfRangeQueue");
@@ -288,7 +289,7 @@
* expected range of values when creating a topic. Make sure the appropriate
* error message occurs.
*/
- public void testCreateTopicPropertyOutOfRange() throws IOException {
+ public void testCreateTopicPropertyOutOfRange() throws IOException, EmbJoprTestException {
createDestinationPropertyOutOfRange(DestinationType.TOPIC,
TOPIC_DEFAULT_TEMPLATE,
"PropertyOutOfRangeTopic");
@@ -300,7 +301,7 @@
*/
private void createDestinationPropertyOutOfRange(DestinationType destinationType,
String destinationTemplate,
- String jndiName) throws IOException {
+ String jndiName) throws IOException, EmbJoprTestException {
// The properties we want to configure
Map<String, MetaValue> propertiesMap = new HashMap<String, MetaValue>();
propertiesMap.put("JNDIName", SimpleValueSupport.wrap(jndiName));
@@ -325,7 +326,7 @@
* invalid type when creating a queue. Make sure the appropriate
* error message occurs.
*/
- public void testCreateQueueInvalidPropertyType() throws IOException {
+ public void testCreateQueueInvalidPropertyType() throws IOException, EmbJoprTestException {
createDestinationInvalidPropertyType(DestinationType.QUEUE,
QUEUE_DEFAULT_TEMPLATE,
"InvalidPropertyTypeQueue");
@@ -337,7 +338,7 @@
* invalid type when creating a topic. Make sure the appropriate
* error message occurs.
*/
- public void testCreateTopicInvalidPropertyType() throws IOException {
+ public void testCreateTopicInvalidPropertyType() throws IOException, EmbJoprTestException {
createDestinationInvalidPropertyType(DestinationType.TOPIC,
TOPIC_DEFAULT_TEMPLATE,
"InvalidPropertyTypeTopic");
@@ -348,7 +349,7 @@
*/
private void createDestinationInvalidPropertyType(DestinationType destinationType,
String destinationTemplate,
- String jndiName) throws IOException {
+ String jndiName) throws IOException, EmbJoprTestException {
// The properties we want to configure
Map<String, MetaValue> propertiesMap = new HashMap<String, MetaValue>();
propertiesMap.put("JNDIName", SimpleValueSupport.wrap(jndiName));
@@ -373,7 +374,7 @@
* when creating a queue. Make sure the appropriate error message
* occurs.
*/
- public void testCreateQueueDuplicateJNDIName() throws IOException {
+ public void testCreateQueueDuplicateJNDIName() throws IOException, EmbJoprTestException {
createDestinationDuplicateJNDIName(DestinationType.QUEUE, QUEUE_DEFAULT_TEMPLATE,
"TestQueue");
}
@@ -384,7 +385,7 @@
* when creating a queue. Make sure the appropriate error message
* occurs.
*/
- public void testCreateTopicDuplicateJNDIName() throws IOException {
+ public void testCreateTopicDuplicateJNDIName() throws IOException, EmbJoprTestException {
createDestinationDuplicateJNDIName(DestinationType.TOPIC, TOPIC_DEFAULT_TEMPLATE,
"TestTopic");
}
@@ -394,7 +395,7 @@
*/
public void createDestinationDuplicateJNDIName(DestinationType destinationType,
String destinationTemplate,
- String jndiName) throws IOException {
+ String jndiName) throws IOException, EmbJoprTestException {
// The properties we want to configure
Map<String, MetaValue> propertiesMap = new HashMap<String, MetaValue>();
propertiesMap.put("JNDIName", SimpleValueSupport.wrap(jndiName));
More information about the embjopr-commits
mailing list