diff options
author | Rüdiger Timm <rt@openoffice.org> | 2003-09-08 09:24:31 +0000 |
---|---|---|
committer | Rüdiger Timm <rt@openoffice.org> | 2003-09-08 09:24:31 +0000 |
commit | 5243e628d387d955508f4e664e40312a4ff8f04c (patch) | |
tree | 64d52c2d98a79ce9c861d93fbcfbc45f0ca4af0a /qadevOOo/tests/java/ifc/datatransfer | |
parent | 05a77048966a25e0fe856064ae2a3e5a3a420e50 (diff) |
INTEGRATION: CWS qadev11 (1.1.28); FILE MERGED
2003/09/03 14:58:20 sw 1.1.28.1: #112049#
Diffstat (limited to 'qadevOOo/tests/java/ifc/datatransfer')
-rw-r--r-- | qadevOOo/tests/java/ifc/datatransfer/_XMimeContentTypeFactory.java | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/qadevOOo/tests/java/ifc/datatransfer/_XMimeContentTypeFactory.java b/qadevOOo/tests/java/ifc/datatransfer/_XMimeContentTypeFactory.java index 3536f6473b5e..3fcc83a4bd46 100644 --- a/qadevOOo/tests/java/ifc/datatransfer/_XMimeContentTypeFactory.java +++ b/qadevOOo/tests/java/ifc/datatransfer/_XMimeContentTypeFactory.java @@ -2,9 +2,9 @@ * * $RCSfile: _XMimeContentTypeFactory.java,v $ * - * $Revision: 1.1 $ + * $Revision: 1.2 $ * - * last change:$Date: 2003-01-27 18:08:51 $ + * last change:$Date: 2003-09-08 10:24:31 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -61,9 +61,10 @@ package ifc.datatransfer; +import lib.MultiMethodTest; + import com.sun.star.datatransfer.XMimeContentType; import com.sun.star.datatransfer.XMimeContentTypeFactory; -import lib.MultiMethodTest; /** * Testing <code>com.sun.star.datatransfer.XMimeContentTypeFactory</code> @@ -89,9 +90,10 @@ public class _XMimeContentTypeFactory extends MultiMethodTest { */ public void _createMimeContentType() { boolean result = true ; + XMimeContentType type = null; try { - XMimeContentType type = oObj.createMimeContentType("image/jpeg") ; + type = oObj.createMimeContentType("image/jpeg") ; if (type != null) { String typeS = type.getFullMediaType() ; @@ -112,7 +114,7 @@ public class _XMimeContentTypeFactory extends MultiMethodTest { } try { - XMimeContentType type = oObj.createMimeContentType("nosuchtype") ; + type = oObj.createMimeContentType("nosuchtype") ; log.println("!!! No exception was thrown on wrong MIME type !!!") ; result = false ; |