diff options
author | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2011-08-23 15:21:41 +0200 |
---|---|---|
committer | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2011-08-23 15:21:41 +0200 |
commit | 1b12b332a9ff0c44b19f7f4f0c76b3f8ee534fc7 (patch) | |
tree | f951731fcd4f0c17dd7a55b154be238cb2b71bae /qadevOOo/tests/java/ifc/util/_XStringSubstitution.java | |
parent | 42e0579442c805df41454461d17cdede43c47b6a (diff) |
recreated tag libreoffice-3.3.3.1 which had these commits:
commit aec86c5680a68c65de8537b8a83a16e8d90cfdd9 (tag: refs/tags/libreoffice-3.3.3.1)
Author: Petr Mladek <pmladek@suse.cz>
Date: Tue May 31 17:39:08 2011 +0200
Version 3.3.3.1, tag libreoffice-3.3.3.1 (3.3.3-rc1)
Notes
split repo tag: testing_libreoffice-3.3.3.1
split repo tag: testing_libreoffice-3.3.4.1
Diffstat (limited to 'qadevOOo/tests/java/ifc/util/_XStringSubstitution.java')
-rw-r--r-- | qadevOOo/tests/java/ifc/util/_XStringSubstitution.java | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/qadevOOo/tests/java/ifc/util/_XStringSubstitution.java b/qadevOOo/tests/java/ifc/util/_XStringSubstitution.java index aed62619f41e..56d7165c3824 100644 --- a/qadevOOo/tests/java/ifc/util/_XStringSubstitution.java +++ b/qadevOOo/tests/java/ifc/util/_XStringSubstitution.java @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -31,14 +31,14 @@ import com.sun.star.util.XStringSubstitution; import lib.MultiMethodTest; public class _XStringSubstitution extends MultiMethodTest { - + public XStringSubstitution oObj; - + public void _getSubstituteVariableValue() { boolean res = true; try { log.println("try to get the valid variable $(user) ..."); - String toCheck = "$(user)"; + String toCheck = "$(user)"; String eString = oObj.getSubstituteVariableValue(toCheck); res = eString.startsWith("file:///"); } catch (com.sun.star.container.NoSuchElementException e) { @@ -47,24 +47,24 @@ public class _XStringSubstitution extends MultiMethodTest { } try { log.println("try to get a invalid variable..."); - String toCheck = "$(ThisVariableShouldNoExist)"; + String toCheck = "$(ThisVariableShouldNoExist)"; String eString = oObj.getSubstituteVariableValue(toCheck); log.println("$(ThisVariableShouldNoExist) should not exist"); tRes.tested("getSubstituteVariableValue()",false); - + } catch (com.sun.star.container.NoSuchElementException e) { log.println("expected exception was thrown."); res &= true; } - + tRes.tested("getSubstituteVariableValue()",res); } - + public void _substituteVariables() { boolean res = true; try { log.println("try to get a valid variable..."); - String toCheck = "$(user)"; + String toCheck = "$(user)"; String eString = oObj.substituteVariables(toCheck, false); log.println(eString); res = eString.startsWith("file:///"); @@ -74,28 +74,28 @@ public class _XStringSubstitution extends MultiMethodTest { } try { log.println("try to get a invalid variable..."); - String toCheck = "$(ThisVariableShouldNoExist)"; + String toCheck = "$(ThisVariableShouldNoExist)"; String eString = oObj.substituteVariables(toCheck,true); log.println("$(ThisVariableShouldNoExist) should not exist"); tRes.tested("substituteVariables()",false); - + } catch (com.sun.star.container.NoSuchElementException e) { log.println("expected exception was thrown."); res &= true; } - + tRes.tested("substituteVariables()",res); } public void _reSubstituteVariables() { boolean res = true; log.println("try to get a valid variable..."); - String toCheck = "file:///"; + String toCheck = "file:///"; String eString = oObj.reSubstituteVariables(toCheck); log.println(eString); res = eString.startsWith("file:///"); - + tRes.tested("reSubstituteVariables()",res); } - + } |