diff options
Diffstat (limited to 'qadevOOo/tests/java/ifc/form/component')
29 files changed, 1218 insertions, 0 deletions
diff --git a/qadevOOo/tests/java/ifc/form/component/_CheckBox.java b/qadevOOo/tests/java/ifc/form/component/_CheckBox.java new file mode 100644 index 000000000..9fc401a5a --- /dev/null +++ b/qadevOOo/tests/java/ifc/form/component/_CheckBox.java @@ -0,0 +1,35 @@ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + +package ifc.form.component; + +import lib.MultiPropertyTest; + +/** +* Testing <code>com.sun.star.form.component.CheckBox</code> +* service properties : +* <ul> +* <li><code> DefaultState</code></li> +* <li><code> RefValue</code></li> +* </ul> <p> +* @see com.sun.star.form.component.CheckBox +*/ +public class _CheckBox extends MultiPropertyTest { + +} + diff --git a/qadevOOo/tests/java/ifc/form/component/_ComboBox.java b/qadevOOo/tests/java/ifc/form/component/_ComboBox.java new file mode 100644 index 000000000..84001ce11 --- /dev/null +++ b/qadevOOo/tests/java/ifc/form/component/_ComboBox.java @@ -0,0 +1,34 @@ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + +package ifc.form.component; + +import lib.MultiPropertyTest; + +/** +* Testing <code>com.sun.star.form.component.ComboBox</code> +* service properties : +* <ul> +* <li><code> DefaultText</code></li> +* </ul> <p> +* @see com.sun.star.form.component.ComboBox +*/ +public class _ComboBox extends MultiPropertyTest { + // these properties don't needed in special code. +} + diff --git a/qadevOOo/tests/java/ifc/form/component/_CommandButton.java b/qadevOOo/tests/java/ifc/form/component/_CommandButton.java new file mode 100644 index 000000000..ac1bfaafd --- /dev/null +++ b/qadevOOo/tests/java/ifc/form/component/_CommandButton.java @@ -0,0 +1,36 @@ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + +package ifc.form.component; + +import lib.MultiPropertyTest; + +/** +* Testing <code>com.sun.star.form.component.CommandButton</code> +* service properties : +* <ul> +* <li><code> ButtonType</code></li> +* <li><code> TargetFrame</code></li> +* <li><code> TargetURL</code></li> +* </ul> +* @see com.sun.star.form.component.CommandButton +*/ +public class _CommandButton extends MultiPropertyTest { + +} + diff --git a/qadevOOo/tests/java/ifc/form/component/_CurrencyField.java b/qadevOOo/tests/java/ifc/form/component/_CurrencyField.java new file mode 100644 index 000000000..ae1d7de26 --- /dev/null +++ b/qadevOOo/tests/java/ifc/form/component/_CurrencyField.java @@ -0,0 +1,50 @@ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + +package ifc.form.component; + +import lib.MultiPropertyTest; + + +/** +* Testing <code>com.sun.star.form.component.CurrencyField</code> +* service properties : +* <ul> +* <li><code> DefaultValue</code></li> +* </ul> <p> +* Properties testing is automated by <code>lib.MultiPropertyTest</code>. +* @see com.sun.star.form.component.CurrencyField +*/ +public class _CurrencyField extends MultiPropertyTest { + + /** + * This property can be void, so if old value is <code> null </code> + * new value must be specified. + */ + public void _DefaultValue() { + testProperty("DefaultValue", new PropertyTester() { + @Override + protected Object getNewValue(String p, Object old) { + return util.utils.isVoid(old) ? new Double(17.5) : + super.getNewValue(p, old) ; + } + }) ; + } +} // finish class _CurrencyField + + diff --git a/qadevOOo/tests/java/ifc/form/component/_DataForm.java b/qadevOOo/tests/java/ifc/form/component/_DataForm.java new file mode 100644 index 000000000..4ea3e11ce --- /dev/null +++ b/qadevOOo/tests/java/ifc/form/component/_DataForm.java @@ -0,0 +1,83 @@ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + +package ifc.form.component; + +import lib.MultiPropertyTest; + +import com.sun.star.form.TabulatorCycle; +import com.sun.star.uno.Enum; + +/** +* Testing <code>com.sun.star.form.component.DataForm</code> +* service properties : +* <ul> +* <li><code> MasterFields</code></li> +* <li><code> DetailFields</code></li> +* <li><code> Cycle</code></li> +* <li><code> NavigationBarMode</code></li> +* <li><code> AllowInserts</code></li> +* <li><code> AllowUpdates</code></li> +* <li><code> AllowDeletes</code></li> +* </ul> <p> +* Properties testing is automated by <code>lib.MultiPropertyTest</code>. +* @see com.sun.star.form.component.DataForm +*/ +public class _DataForm extends MultiPropertyTest { + + /** + * This property can be VOID, and in case if it is so new + * value must be defined. + */ + public void _NavigationBarMode() { + testProperty("NavigationBarMode", new PropertyTester() { + @Override + public String toString(Object obj) { + if (util.utils.isVoid(obj)) { + return "null"; + } else { + return "(" + obj.getClass().toString() + ")" + + ((Enum)obj).getValue(); + } + } + }); + } + + /** + * This property can be VOID, and in case if it is so new + * value must be defined. + */ + public void _Cycle() { + testProperty("Cycle", new PropertyTester() { + @Override + public Object getNewValue(String propName, Object oldValue) { + return TabulatorCycle.CURRENT; + } + @Override + public String toString(Object obj) { + if (util.utils.isVoid(obj)) + return "null"; + else + return "(" + obj.getClass().toString() + ")" + + ((Enum)obj).getValue(); + } + }); + } + +} + diff --git a/qadevOOo/tests/java/ifc/form/component/_DatabaseComboBox.java b/qadevOOo/tests/java/ifc/form/component/_DatabaseComboBox.java new file mode 100644 index 000000000..cb72ff5ed --- /dev/null +++ b/qadevOOo/tests/java/ifc/form/component/_DatabaseComboBox.java @@ -0,0 +1,37 @@ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + +package ifc.form.component ; + +import lib.MultiPropertyTest; + +/** +* Testing <code>com.sun.star.form.component.DatabaseComboBox</code> +* service properties : +* <ul> +* <li><code> ConvertEmptyToNull</code></li> +* <li><code> ListSource</code></li> +* <li><code> ListSourceType</code></li> +* </ul> <p> +* All properties are tested by class <code>MultiPropertyTest</code> +* @see com.sun.star.form.component.DatabaseComboBox +*/ +public class _DatabaseComboBox extends MultiPropertyTest { + +} + diff --git a/qadevOOo/tests/java/ifc/form/component/_DatabaseForm.java b/qadevOOo/tests/java/ifc/form/component/_DatabaseForm.java new file mode 100644 index 000000000..887c881a2 --- /dev/null +++ b/qadevOOo/tests/java/ifc/form/component/_DatabaseForm.java @@ -0,0 +1,88 @@ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + +package ifc.form.component; + +import lib.MultiPropertyTest; +import util.dbg; + +import com.sun.star.form.TabulatorCycle; +import com.sun.star.uno.Enum; +import java.io.UnsupportedEncodingException; + +/** +* Testing <code>com.sun.star.form.component.DatabaseForm</code> +* service properties: +* <ul> +* <li><code> MasterFields</code></li> +* <li><code> DetailFields</code></li> +* <li><code> Cycle</code></li> +* <li><code> NavigationBarMode</code></li> +* <li><code> AllowInserts</code></li> +* <li><code> AllowUpdates</code></li> +* <li><code> AllowDeletes</code></li> +* </ul> <p> +* Properties testing is automated by <code>lib.MultiPropertyTest</code>. +* @see com.sun.star.form.component.DatabaseForm +*/ +public class _DatabaseForm extends MultiPropertyTest { + + /** + * In this property test only debugging information output + * is customized. + */ + public void _NavigationBarMode() throws UnsupportedEncodingException { + dbg.printPropertyInfo(oObj, "NavigationBarMode"); + testProperty("NavigationBarMode", new PropertyTester() { + @Override + public String toString(Object obj) { + if (obj == null) { + return "null"; + } else { + return "(" + obj.getClass().toString() + ")" + + ((Enum)obj).getValue(); + } + } + }); + } + + /** + * This property new value is always fixed and debugging + * information output is customized. + */ + public void _Cycle() throws UnsupportedEncodingException { + dbg.printPropertyInfo(oObj, "Cycle"); + testProperty("Cycle", new PropertyTester() { + @Override + public Object getNewValue(String propName, Object oldValue) { + return TabulatorCycle.CURRENT; + } + + @Override + public String toString(Object obj) { + if (obj == null) { + return "null"; + } else { + return "(" + obj.getClass().toString() + ")" + + ((Enum)obj).getValue(); + } + } + }); + } +} + diff --git a/qadevOOo/tests/java/ifc/form/component/_DatabaseFormattedField.java b/qadevOOo/tests/java/ifc/form/component/_DatabaseFormattedField.java new file mode 100644 index 000000000..85b352ef6 --- /dev/null +++ b/qadevOOo/tests/java/ifc/form/component/_DatabaseFormattedField.java @@ -0,0 +1,35 @@ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + +package ifc.form.component ; + +import lib.MultiPropertyTest; + +/** +* Testing <code>com.sun.star.form.component.DatabaseFormattedField</code> +* service properties : +* <ul> +* <li><code> ConvertEmptyToNull</code></li> +* </ul> <p> +* Properties testing is automated by <code>lib.MultiPropertyTest</code>. +* @see com.sun.star.form.component.DatabaseFormattedField +*/ +public class _DatabaseFormattedField extends MultiPropertyTest { + +} + diff --git a/qadevOOo/tests/java/ifc/form/component/_DatabaseImageControl.java b/qadevOOo/tests/java/ifc/form/component/_DatabaseImageControl.java new file mode 100644 index 000000000..ab675911a --- /dev/null +++ b/qadevOOo/tests/java/ifc/form/component/_DatabaseImageControl.java @@ -0,0 +1,35 @@ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + +package ifc.form.component; + +import lib.MultiPropertyTest; + +/** +* Testing <code>com.sun.star.form.component.DatabaseImageControl</code> +* service properties : +* <ul> +* <li><code> ReadOnly</code></li> +* </ul> <p> +* Properties testing is automated by <code>lib.MultiPropertyTest</code>. +* @see com.sun.star.form.component.DatabaseImageControl +*/ +public class _DatabaseImageControl extends MultiPropertyTest { + +} + diff --git a/qadevOOo/tests/java/ifc/form/component/_DatabaseListBox.java b/qadevOOo/tests/java/ifc/form/component/_DatabaseListBox.java new file mode 100644 index 000000000..ef8299080 --- /dev/null +++ b/qadevOOo/tests/java/ifc/form/component/_DatabaseListBox.java @@ -0,0 +1,37 @@ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + +package ifc.form.component; + +import lib.MultiPropertyTest; + +/* +* Testing <code>com.sun.star.form.component.DatabaseListBox</code> +* service properties : +* <ul> +* <li><code> BoundColumn</code></li> +* <li><code> ListSourceType</code></li> +* </ul> <p> +* All properties testing is automated by +* <code>lib.MultiPropertyTest</code>. +* @see com.sun.star.form.component.DatabaseListBox +*/ +public class _DatabaseListBox extends MultiPropertyTest { + // these properties don't needed in special code. +} + diff --git a/qadevOOo/tests/java/ifc/form/component/_DatabasePatternField.java b/qadevOOo/tests/java/ifc/form/component/_DatabasePatternField.java new file mode 100644 index 000000000..184e92511 --- /dev/null +++ b/qadevOOo/tests/java/ifc/form/component/_DatabasePatternField.java @@ -0,0 +1,36 @@ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + +package ifc.form.component; + +import lib.MultiPropertyTest; + + +/** +* Testing <code>com.sun.star.form.component.DatabasePatternField</code> +* service properties : +* <ul> +* <li><code> ConvertEmptyToNull</code></li> +* </ul> <p> +* Properties testing is automated by <code>lib.MultiPropertyTest</code>. +* @see com.sun.star.form.component.DatabasePatternField +*/ +public class _DatabasePatternField extends MultiPropertyTest { + +} + diff --git a/qadevOOo/tests/java/ifc/form/component/_DatabaseTextField.java b/qadevOOo/tests/java/ifc/form/component/_DatabaseTextField.java new file mode 100644 index 000000000..37ff264c6 --- /dev/null +++ b/qadevOOo/tests/java/ifc/form/component/_DatabaseTextField.java @@ -0,0 +1,36 @@ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + +package ifc.form.component; + +import lib.MultiPropertyTest; + + +/** +* Testing <code>com.sun.star.form.component.DatabaseTextField</code> +* service properties : +* <ul> +* <li><code> ConvertEmptyToNull</code></li> +* </ul> <p> +* All properties are tested by class <code>MultiPropertyTest</code> +* @see com.sun.star.form.component.DatabaseTextField +*/ +public class _DatabaseTextField extends MultiPropertyTest { + +} + diff --git a/qadevOOo/tests/java/ifc/form/component/_DateField.java b/qadevOOo/tests/java/ifc/form/component/_DateField.java new file mode 100644 index 000000000..4a0688a22 --- /dev/null +++ b/qadevOOo/tests/java/ifc/form/component/_DateField.java @@ -0,0 +1,47 @@ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + +package ifc.form.component; + +import lib.MultiPropertyTest; + +/** +* Testing <code>com.sun.star.form.component.DateField</code> +* service properties : +* <ul> +* <li><code> DefaultDate</code></li> +* </ul> +* @see com.sun.star.form.component.DateField +*/ +public class _DateField extends MultiPropertyTest { + + /** + * This property can be void, so if old value is <code> null </code> + * new value must be specified. + */ + public void _DefaultDate() { + testProperty("DefaultDate", new PropertyTester() { + @Override + protected Object getNewValue(String prop, Object old) { + return util.utils.isVoid(old) ? Integer.valueOf(20010507) : + super.getNewValue(prop, old) ; + } + }) ; + } +} + diff --git a/qadevOOo/tests/java/ifc/form/component/_FileControl.java b/qadevOOo/tests/java/ifc/form/component/_FileControl.java new file mode 100644 index 000000000..2cc5e5292 --- /dev/null +++ b/qadevOOo/tests/java/ifc/form/component/_FileControl.java @@ -0,0 +1,35 @@ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + +package ifc.form.component; + +import lib.MultiPropertyTest; + +/* +* Testing <code>com.sun.star.form.component.FileControl</code> +* service properties : +* <ul> +* <li><code> DefaultText</code></li> +* </ul> +* Properties testing is automated by <code>lib.MultiPropertyTest</code>. +* @see com.sun.star.form.component.FileControl +*/ +public class _FileControl extends MultiPropertyTest { + +} + diff --git a/qadevOOo/tests/java/ifc/form/component/_FormattedField.java b/qadevOOo/tests/java/ifc/form/component/_FormattedField.java new file mode 100644 index 000000000..37ce620f3 --- /dev/null +++ b/qadevOOo/tests/java/ifc/form/component/_FormattedField.java @@ -0,0 +1,26 @@ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + +package ifc.form.component ; + +import lib.MultiPropertyTest; + +public class _FormattedField extends MultiPropertyTest { + +} + diff --git a/qadevOOo/tests/java/ifc/form/component/_GridControl.java b/qadevOOo/tests/java/ifc/form/component/_GridControl.java new file mode 100644 index 000000000..de773f4d2 --- /dev/null +++ b/qadevOOo/tests/java/ifc/form/component/_GridControl.java @@ -0,0 +1,96 @@ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + +package ifc.form.component; + +import lib.MultiPropertyTest; + +/** +* Testing <code>com.sun.star.form.component.GridControl</code> +* service properties : +* <ul> +* <li><code> Border</code></li> +* <li><code> Enabled</code></li> +* <li><code> FontDescriptor</code></li> +* <li><code> RowHeight</code></li> +* <li><code> Tabstop</code></li> +* <li><code> TextColor</code></li> +* </ul> +* Properties testing is automated by <code>lib.MultiPropertyTest</code>. +* @see com.sun.star.form.component.GridControl +*/ +public class _GridControl extends MultiPropertyTest { + + /** + * This property can be void, so if old value is <code> null </code> + * new value must be specified. + */ + public void _RowHeight() { + testProperty("RowHeight", new PropertyTester() { + @Override + protected Object getNewValue(String prop, Object old) { + return util.utils.isVoid(old) ? Integer.valueOf(11) : + super.getNewValue(prop, old) ; + } + }) ; + } + + /** + * This property can be void, so if old value is <code> null </code> + * new value must be specified. + */ + public void _Tabstop() { + testProperty("Tabstop", new PropertyTester() { + @Override + protected Object getNewValue(String prop, Object old) { + return util.utils.isVoid(old) ? Boolean.TRUE : + super.getNewValue(prop, old) ; + } + }) ; + } + + /** + * This property can be void, so if old value is <code> null </code> + * new value must be specified. + */ + public void _TextColor() { + testProperty("TextColor", new PropertyTester() { + @Override + protected Object getNewValue(String prop, Object old) { + return util.utils.isVoid(old) ? Integer.valueOf(342) : + super.getNewValue(prop, old) ; + } + }) ; + } + + /** + * This property can be void, so if old value is <code> null </code> + * new value must be specified. + */ + public void _BorderColor() { + testProperty("BorderColor", new PropertyTester() { + @Override + protected Object getNewValue(String prop, Object old) { + return util.utils.isVoid(old) ? Integer.valueOf(342) : + super.getNewValue(prop, old) ; + } + }) ; + } +} // finish class _GridControl + + diff --git a/qadevOOo/tests/java/ifc/form/component/_HTMLForm.java b/qadevOOo/tests/java/ifc/form/component/_HTMLForm.java new file mode 100644 index 000000000..a79e2500e --- /dev/null +++ b/qadevOOo/tests/java/ifc/form/component/_HTMLForm.java @@ -0,0 +1,38 @@ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + +package ifc.form.component; + +import lib.MultiPropertyTest; + +/** +* Testing <code>com.sun.star.form.component.HTMLForm</code> +* service properties : +* <ul> +* <li><code> TargetFrame</code></li> +* <li><code> TargetURL</code></li> +* <li><code> SubmitMethod</code></li> +* <li><code> SubmitEncoding</code></li> +* </ul> <p> +* Properties testing is automated by <code>lib.MultiPropertyTest</code>. +* @see com.sun.star.form.component.HTMLForm +*/ +public class _HTMLForm extends MultiPropertyTest { + +} // finish class _HTMLForm + diff --git a/qadevOOo/tests/java/ifc/form/component/_HiddenControl.java b/qadevOOo/tests/java/ifc/form/component/_HiddenControl.java new file mode 100644 index 000000000..eb77e1cd5 --- /dev/null +++ b/qadevOOo/tests/java/ifc/form/component/_HiddenControl.java @@ -0,0 +1,35 @@ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + +package ifc.form.component; + +import lib.MultiPropertyTest; + +/** +* Testing <code>com.sun.star.form.component.HiddenControl</code> +* service properties : +* <ul> +* <li><code> HiddenValue</code></li> +* </ul> +* Properties testing is automated by <code>lib.MultiPropertyTest</code>. +* @see com.sun.star.form.component.HiddenControl +*/ +public class _HiddenControl extends MultiPropertyTest { + +} + diff --git a/qadevOOo/tests/java/ifc/form/component/_ImageButton.java b/qadevOOo/tests/java/ifc/form/component/_ImageButton.java new file mode 100644 index 000000000..208defc43 --- /dev/null +++ b/qadevOOo/tests/java/ifc/form/component/_ImageButton.java @@ -0,0 +1,37 @@ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + +package ifc.form.component; + +import lib.MultiPropertyTest; + +/** +* Testing <code>com.sun.star.form.component.ImageButton</code> +* service properties : +* <ul> +* <li><code> ButtonType</code></li> +* <li><code> TargetFrame</code></li> +* <li><code> TargetURL</code></li> +* </ul> +* Properties testing is automated by <code>lib.MultiPropertyTest</code>. +* @see com.sun.star.form.component.ImageButton +*/ +public class _ImageButton extends MultiPropertyTest { + +} + diff --git a/qadevOOo/tests/java/ifc/form/component/_ListBox.java b/qadevOOo/tests/java/ifc/form/component/_ListBox.java new file mode 100644 index 000000000..bdcdad7f1 --- /dev/null +++ b/qadevOOo/tests/java/ifc/form/component/_ListBox.java @@ -0,0 +1,37 @@ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + +package ifc.form.component; + +import lib.MultiPropertyTest; + + +/** +* Testing <code>com.sun.star.form.component.ListBox</code> +* service properties : +* <ul> +* <li><code> DefaultSelection</code></li> +* <li><code> ListSource</code></li> +* </ul> <p> +* Properties testing is automated by <code>lib.MultiPropertyTest</code>. +* @see com.sun.star.form.component.ListBox +*/ +public class _ListBox extends MultiPropertyTest { + +} + diff --git a/qadevOOo/tests/java/ifc/form/component/_NavigationToolBar.java b/qadevOOo/tests/java/ifc/form/component/_NavigationToolBar.java new file mode 100644 index 000000000..23e3473c1 --- /dev/null +++ b/qadevOOo/tests/java/ifc/form/component/_NavigationToolBar.java @@ -0,0 +1,45 @@ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + +package ifc.form.component; + +import lib.MultiPropertyTest; + +public class _NavigationToolBar extends MultiPropertyTest { + + public void _TextColor() { + testProperty("TextColor", new PropertyTester() { + @Override + protected Object getNewValue(String prop, Object old) { + return util.utils.isVoid(old) ? Integer.valueOf(20010507) : + super.getNewValue(prop, old) ; + } + }) ; + } + + public void _TextLineColor() { + testProperty("TextLineColor", new PropertyTester() { + @Override + protected Object getNewValue(String prop, Object old) { + return util.utils.isVoid(old) ? Integer.valueOf(20050507) : + super.getNewValue(prop, old) ; + } + }) ; + } + +}
\ No newline at end of file diff --git a/qadevOOo/tests/java/ifc/form/component/_NumericField.java b/qadevOOo/tests/java/ifc/form/component/_NumericField.java new file mode 100644 index 000000000..463e780c9 --- /dev/null +++ b/qadevOOo/tests/java/ifc/form/component/_NumericField.java @@ -0,0 +1,49 @@ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + +package ifc.form.component; + +import lib.MultiPropertyTest; + + +/** +* Testing <code>com.sun.star.form.component.NumericField</code> +* service properties : +* <ul> +* <li><code> DefaultValue</code></li> +* </ul> <p> +* Properties testing is automated by <code>lib.MultiPropertyTest</code>. +* @see com.sun.star.form.component.NumericField +*/ +public class _NumericField extends MultiPropertyTest { + + /** + * This property can be void, so if old value is <code> null </code> + * new value must be specified. + */ + public void _DefaultValue() { + testProperty("DefaultValue", new PropertyTester() { + @Override + protected Object getNewValue(String prop, Object old) { + return util.utils.isVoid(old) ? new Double(111.11) : + super.getNewValue(prop, old) ; + } + }) ; + } +} + diff --git a/qadevOOo/tests/java/ifc/form/component/_PatternField.java b/qadevOOo/tests/java/ifc/form/component/_PatternField.java new file mode 100644 index 000000000..67623ddfd --- /dev/null +++ b/qadevOOo/tests/java/ifc/form/component/_PatternField.java @@ -0,0 +1,35 @@ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + +package ifc.form.component; + +import lib.MultiPropertyTest; + +/** +* Testing <code>com.sun.star.form.component.PatternField</code> +* service properties : +* <ul> +* <li><code> DefaultText</code></li> +* </ul> <p> +* Properties testing is automated by <code>lib.MultiPropertyTest</code>. +* @see com.sun.star.form.component.PatternField +*/ +public class _PatternField extends MultiPropertyTest { + +} + diff --git a/qadevOOo/tests/java/ifc/form/component/_RadioButton.java b/qadevOOo/tests/java/ifc/form/component/_RadioButton.java new file mode 100644 index 000000000..17a45a46f --- /dev/null +++ b/qadevOOo/tests/java/ifc/form/component/_RadioButton.java @@ -0,0 +1,37 @@ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + +package ifc.form.component; + +import lib.MultiPropertyTest; + + +/** +* Testing <code>com.sun.star.form.component.RadioButton</code> +* service properties : +* <ul> +* <li><code> DefaultState</code></li> +* <li><code> RefValue</code></li> +* </ul> <p> +* Properties testing is automated by <code>lib.MultiPropertyTest</code>. +* @see com.sun.star.form.component.RadioButton +*/ +public class _RadioButton extends MultiPropertyTest { + +} + diff --git a/qadevOOo/tests/java/ifc/form/component/_RichTextControl.java b/qadevOOo/tests/java/ifc/form/component/_RichTextControl.java new file mode 100644 index 000000000..4150be3a5 --- /dev/null +++ b/qadevOOo/tests/java/ifc/form/component/_RichTextControl.java @@ -0,0 +1,25 @@ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + +package ifc.form.component; + +import lib.MultiPropertyTest; + +public class _RichTextControl extends MultiPropertyTest { + +} diff --git a/qadevOOo/tests/java/ifc/form/component/_ScrollBar.java b/qadevOOo/tests/java/ifc/form/component/_ScrollBar.java new file mode 100644 index 000000000..d6021c73d --- /dev/null +++ b/qadevOOo/tests/java/ifc/form/component/_ScrollBar.java @@ -0,0 +1,25 @@ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + +package ifc.form.component; + +import lib.MultiPropertyTest; + +public class _ScrollBar extends MultiPropertyTest{ + +} diff --git a/qadevOOo/tests/java/ifc/form/component/_SpinButton.java b/qadevOOo/tests/java/ifc/form/component/_SpinButton.java new file mode 100644 index 000000000..8d7ae9c11 --- /dev/null +++ b/qadevOOo/tests/java/ifc/form/component/_SpinButton.java @@ -0,0 +1,25 @@ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + +package ifc.form.component; + +import lib.MultiPropertyTest; + +public class _SpinButton extends MultiPropertyTest { + +} diff --git a/qadevOOo/tests/java/ifc/form/component/_TextField.java b/qadevOOo/tests/java/ifc/form/component/_TextField.java new file mode 100644 index 000000000..f6b81a1ea --- /dev/null +++ b/qadevOOo/tests/java/ifc/form/component/_TextField.java @@ -0,0 +1,35 @@ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + +package ifc.form.component; + +import lib.MultiPropertyTest; + +/** +* Testing <code>com.sun.star.form.component.TextField</code> +* service properties : +* <ul> +* <li><code> DefaultText</code></li> +* </ul> <p> +* Properties testing is automated by <code>lib.MultiPropertyTest</code>. +* @see com.sun.star.form.component.TextField +*/ +public class _TextField extends MultiPropertyTest { + +} + diff --git a/qadevOOo/tests/java/ifc/form/component/_TimeField.java b/qadevOOo/tests/java/ifc/form/component/_TimeField.java new file mode 100644 index 000000000..1faa5d959 --- /dev/null +++ b/qadevOOo/tests/java/ifc/form/component/_TimeField.java @@ -0,0 +1,49 @@ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + +package ifc.form.component; + +import lib.MultiPropertyTest; +import util.utils; + +/** +* Testing <code>com.sun.star.form.component.TimeField</code> +* service properties : +* <ul> +* <li><code> DefaultTime</code></li> +* </ul> <p> +* Properties testing is automated by <code>lib.MultiPropertyTest</code>. +* @see com.sun.star.form.component.TimeField +*/ +public class _TimeField extends MultiPropertyTest { + + /** + * This property can be VOID, and in case if it is so new + * value must defined. + */ + public void _DefaultTime() { + testProperty("DefaultTime", new PropertyTester() { + @Override + protected Object getNewValue(String p, Object old) { + return utils.isVoid(old) ? Integer.valueOf(4321) : + super.getNewValue(p, old) ; + } + }) ; + } +} + |