summaryrefslogtreecommitdiff
path: root/java/common/src/test
diff options
context:
space:
mode:
authorMartin Ritchie <ritchiem@apache.org>2006-12-15 13:30:44 +0000
committerMartin Ritchie <ritchiem@apache.org>2006-12-15 13:30:44 +0000
commit6ca88beeea89e37ec725e5e99bada7ae48d2870f (patch)
treec64e324bc4ae64cc71d151cec0d2aa1ba4839dcf /java/common/src/test
parenta96152eea7e7ce48bb9340f477f3935744ee5ea6 (diff)
downloadqpid-python-6ca88beeea89e37ec725e5e99bada7ae48d2870f.tar.gz
QPID-182
Fixed the incorrect exception being thrown by JMSPropertyFieldTable.java. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@487548 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/common/src/test')
-rw-r--r--java/common/src/test/java/org/apache/qpid/framing/JMSPropertyFieldTableTest.java40
1 files changed, 20 insertions, 20 deletions
diff --git a/java/common/src/test/java/org/apache/qpid/framing/JMSPropertyFieldTableTest.java b/java/common/src/test/java/org/apache/qpid/framing/JMSPropertyFieldTableTest.java
index 98202ddd1a..865735499b 100644
--- a/java/common/src/test/java/org/apache/qpid/framing/JMSPropertyFieldTableTest.java
+++ b/java/common/src/test/java/org/apache/qpid/framing/JMSPropertyFieldTableTest.java
@@ -254,9 +254,9 @@ public class JMSPropertyFieldTableTest extends TestCase
try
{
table1.getByte("Rubbish");
- fail("Should throw MessageFormatException");
+ fail("Should throw NumberFormatException");
}
- catch (MessageFormatException mfs)
+ catch (NumberFormatException mfs)
{
//normal Execution
}
@@ -334,9 +334,9 @@ public class JMSPropertyFieldTableTest extends TestCase
try
{
table1.getShort("Rubbish");
- fail("Should throw MessageFormatException");
+ fail("Should throw NumberFormatException");
}
- catch (MessageFormatException mfe)
+ catch (NumberFormatException mfe)
{
//normal path
}
@@ -597,9 +597,9 @@ public class JMSPropertyFieldTableTest extends TestCase
try
{
table1.getInteger("Rubbish");
- fail("Should throw MessageFormatException");
+ fail("Should throw NumberFormatException");
}
- catch (MessageFormatException mfe)
+ catch (NumberFormatException mfe)
{
//normal path
}
@@ -690,9 +690,9 @@ public class JMSPropertyFieldTableTest extends TestCase
try
{
table1.getLong("Rubbish");
- fail("Should throw MessageFormatException");
+ fail("Should throw NumberFormatException");
}
- catch (MessageFormatException mfs)
+ catch (NumberFormatException mfs)
{
//normal Execution
}
@@ -731,54 +731,54 @@ public class JMSPropertyFieldTableTest extends TestCase
try
{
table1.getByte("value");
- fail("Should throw MessageFormatException");
+ fail("Should throw NumberFormatException");
}
- catch (MessageFormatException nfs)
+ catch (NumberFormatException nfs)
{
//normal Execution
}
try
{
table1.getShort("value");
- fail("Should throw MessageFormatException");
+ fail("Should throw NumberFormatException");
}
- catch (MessageFormatException nfs)
+ catch (NumberFormatException nfs)
{
//normal Execution
}
try
{
table1.getDouble("value");
- fail("Should throw MessageFormatException");
+ fail("Should throw NumberFormatException");
}
- catch (MessageFormatException nfs)
+ catch (NumberFormatException nfs)
{
//normal Execution
}
try
{
table1.getFloat("value");
- fail("Should throw MessageFormatException");
+ fail("Should throw NumberFormatException");
}
- catch (MessageFormatException nfs)
+ catch (NumberFormatException nfs)
{
//normal Execution
}
try
{
table1.getInteger("value");
- fail("Should throw MessageFormatException");
+ fail("Should throw NumberFormatException");
}
- catch (MessageFormatException nfs)
+ catch (NumberFormatException nfs)
{
//normal Execution
}
try
{
table1.getLong("value");
- fail("Should throw MessageFormatException");
+ fail("Should throw NumberFormatException");
}
- catch (MessageFormatException nfs)
+ catch (NumberFormatException nfs)
{
//normal Execution
}