summaryrefslogtreecommitdiff
path: root/qpid/java/qpid-test-utils/src
diff options
context:
space:
mode:
authorRobert Gemmell <robbie@apache.org>2013-09-23 23:49:17 +0000
committerRobert Gemmell <robbie@apache.org>2013-09-23 23:49:17 +0000
commitd87fdf58eb371b1c95951bb6dd83a0ac85cb6b23 (patch)
treed18d2ff8c7202ef4385a2958c87991f01304aca7 /qpid/java/qpid-test-utils/src
parentf9c3f27c4b405723d8137d216bb57813271507eb (diff)
downloadqpid-python-d87fdf58eb371b1c95951bb6dd83a0ac85cb6b23.tar.gz
QPID-5161: make UTF8Test use the resources in the jar instead of searching for it on the filesystem
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1525749 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/java/qpid-test-utils/src')
-rw-r--r--qpid/java/qpid-test-utils/src/main/java/org/apache/qpid/test/utils/TestFileUtils.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/qpid/java/qpid-test-utils/src/main/java/org/apache/qpid/test/utils/TestFileUtils.java b/qpid/java/qpid-test-utils/src/main/java/org/apache/qpid/test/utils/TestFileUtils.java
index d04413f06f..26bbe151d2 100644
--- a/qpid/java/qpid-test-utils/src/main/java/org/apache/qpid/test/utils/TestFileUtils.java
+++ b/qpid/java/qpid-test-utils/src/main/java/org/apache/qpid/test/utils/TestFileUtils.java
@@ -201,6 +201,11 @@ public class TestFileUtils
*/
public static void copy(InputStream in, File dst) throws IOException
{
+ if(in == null)
+ {
+ throw new IllegalArgumentException("Provided InputStream must not be null");
+ }
+
try
{
if (!dst.exists())