diff options
Diffstat (limited to 'qadevOOo/tests/java/ifc/sdbcx/_XDataDefinitionSupplier.java')
-rw-r--r-- | qadevOOo/tests/java/ifc/sdbcx/_XDataDefinitionSupplier.java | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/qadevOOo/tests/java/ifc/sdbcx/_XDataDefinitionSupplier.java b/qadevOOo/tests/java/ifc/sdbcx/_XDataDefinitionSupplier.java index 3a14ed43e03f..e6aad78638a6 100644 --- a/qadevOOo/tests/java/ifc/sdbcx/_XDataDefinitionSupplier.java +++ b/qadevOOo/tests/java/ifc/sdbcx/_XDataDefinitionSupplier.java @@ -139,26 +139,19 @@ public class _XDataDefinitionSupplier extends MultiMethodTest { * exception was thrown. */ public void _getDataDefinitionByURL() { - boolean bRes = false; - XTablesSupplier xTS = null; - try { log.println("getDataDefinitionByURL('" + url + "')"); - xTS = oObj.getDataDefinitionByURL(url, info); - bRes = xTS != null; + oObj.getDataDefinitionByURL(url, info); } catch (com.sun.star.sdbc.SQLException e) { log.println("Unexpected exception: " + e); - bRes = false; } try { log.println("getDataDefinitionByURL('" + wrongUrl + "')"); - xTS = oObj.getDataDefinitionByURL(wrongUrl, info); + oObj.getDataDefinitionByURL(wrongUrl, info); log.println("Exception was expected"); - bRes = false; } catch (com.sun.star.sdbc.SQLException e) { log.println("Expected exception"); - bRes &= true; } tRes.tested("getDataDefinitionByURL()", true); |