summaryrefslogtreecommitdiff
path: root/qadevOOo/tests/java/ifc/datatransfer
diff options
context:
space:
mode:
authorRüdiger Timm <rt@openoffice.org>2003-09-08 09:24:31 +0000
committerRüdiger Timm <rt@openoffice.org>2003-09-08 09:24:31 +0000
commit5243e628d387d955508f4e664e40312a4ff8f04c (patch)
tree64d52c2d98a79ce9c861d93fbcfbc45f0ca4af0a /qadevOOo/tests/java/ifc/datatransfer
parent05a77048966a25e0fe856064ae2a3e5a3a420e50 (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.java12
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 ;