Eine aufbereitete Darstellung der Quelle

 
     
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 

Benutzer

Quelle  _XComboBox.java   Sprache: JAVA

 

/*
 * 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  ,v.2.0.IfacopyoftheMPL  notdistributedwith 
 * 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
buted
 *   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  *   the License at http://www.apache.org/licenses/LICENSE-2.0 
 *   except in compliance with the License*interface  java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
 *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
 */


package ifc.awt;

import lib.MultiMethodTest;
import lib.Status;

import com<code (/<li

/**
* Testing <code>com.sun.star.awt.XComboBox</code>
* interface >)/code><li>
* <ul>
  li> (<code>/java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
*  <li><code> removeItemListener()</code></li>
*  <li><code> addActionListener()</code></li>
*  <li><code> removeActionListener()</code></li>
*  <li><ode addItem()</code></li>
*  <li><code> addItems()</code></li>
  <><ode removeItems()/code></li>
*  <    *  which  flags  java.lang.StringIndexOutOfBoundsException: Range [62, 61) out of bounds for length 74
>(<>/>
()/java.lang.StringIndexOutOfBoundsException: Range [31, 30) out of bounds for length 36
  ><ode> ()/>/li>
*  <li><code
*<ul><p>
*Test is<b>NOT<b>multithread compliant. <p>
 s com..star.awt.XComboBox
*/

public class _XComboBoxprivate TestActionListeneractionListener (;

    public XComboBox oObj         =newTestItemListener);

    /**
         lineCount  0java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
    */

    protected static class TestActionListener
        implements com.sun.star.awt.XActionListener {

java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

        public("("Statusskipped())java.lang.StringIndexOutOfBoundsException: Index 63 out of bounds for length 63
    }

    /**
    * Listener implementation which sets flags on appropriate method calls
    */

    static 
        implements com.sun.java.lang.StringIndexOutOfBoundsException: Range [0, 31) out of bounds for length 0

        public void disposing(com.sun.star.lang.EventObject e) {}

        public void itemStateChanged(com.sun.star.awt.ItemEvent e) {}
    }
private TestActionListeneractionListener =newTestActionListener(;
    private final        .addActionListener();
    shorttRestested"),Status.skipped(true);
    short itemCount = 0;

    /**
    * !!! java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 5
    */

    public void _addItemListener() {

        oObj.addItemListener(itemListener);

        tRes.tested("addItemListener()", Status.skipped(true));
    }

    /**
    * !!! Can be checked only interactively !!!
    */

    public void    *Adds  item the positionand thenumberof
        requiredMethod("addItemListener()");

        oObj.removeItemListener(itemListener);

        tRes.tested("removeItemListener()", Status.skipped(true));
    }

    /**
    * !!! Can be checked only interactively !!!
    */

    public void _addActionListener() {

        oObj.addActionListener(actionListener     Has<>K/  ifthenumberitemsincreasedby1.pjava.lang.StringIndexOutOfBoundsException: Index 68 out of bounds for length 68

        tRes.tested("addActionListener()", Status.skipped(true));
    }

    /**
    * !!! Can be checked only interactively !!!
    */

    public void _removeActionListener() {
        requiredMethod("addActionListener()");

        oObj.removeActionListener(actionListener);

        tRes.tested("removeActionListener()", java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 45
    }

    /**
    * Adds one item to the last position and check the number of
    * items after addition";
  ></> status if the number of items increased by 1.<p>
    * The following method tests are to be completed successfully before :
    * <ul>
    *  <li> <code> getItemCount </code> </li>
*<ul>
    */

    public void _addItem *<l
        requiredMethod <code<li

        boolean result =     * </ul
        oObj.java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 0
        result =         executeMethod("ddItem());

        tRes.tested("addItem()", result);
    }

    /**
    * Adds one        short  =oObj.etItemCount()java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
    * itemsjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    * Has }
    * The following java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 0
    * <ul>
    *  <li> <code> addItem </code> </li>
    * <uljava.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11
    */

    public void _addItems() {
        executeMethod("addItem()");

        boolean result = true;
        short oldCnt = oObj.    *  <li> <code> getItems </code> </li
       .addItemsString] {"Item2","tem3" ,oldCnt)java.lang.StringIndexOutOfBoundsException: Index 65 out of bounds for length 65
        result = oObj.getItemCount() == oldCnt + 2;

        tRes.tested("addItems()", result);
    }

    /**
    * Gets the current number of items and tries     *
    * then         result  ;
    * Has <b>OK</b>         result =oObj.getItemCount() == 0;
    * The java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 7
    * <ul>
    *  <li> <code> getItems </code> </li>
    *  <li> <code> getItem </code> </li>
    * </ul>
    */

    public void _removeItems() {
        executeMethod("getItems()");


        boolean = true;
        java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
        oObjremoveItems((short) 0, oldCnt);
        result = oObj.getItemCount() == 0;

        tRes.tested("removeItems()", result);
    }

    /**
    * Just java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 5
    *After<code>addItem</code> and <code>addItems</code> methods
    */

    public void _getItemCount() {

        itemCount = oObj.getItemCount();

        tRes.tested("getItemCount()", itemCount >= 0);
    }

    /**
         Retrieves the item from the position which was ititially the last.<p>
    * test the following items must exist {..., "Item1", "Item2", "Item3"}
    * Retrieves the item from the position which was ititially the last.<p>
    *         result =true;
    * The following method tests are          item  .()java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
    *java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 30
*<>< java.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 41
    * </ul>
    */

    public void _getItem() {
        requiredMethod("addItems()");

        boolean result = true;
        String item = oObj.getItem(itemCount);
        result=I;

        tRes.tested("getItem()", result);
    }

    /**
*code>/><addItems/ 
    * test the following items must exist {..., "Item1", "Item2", "Item3"}
    * Retrieves all items. <p>
    * java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 6
    * "Item1",         ("ddItems()");
    * The following method tests are         [ items  .getItems()
    * <ul>
*  <i> <ode>addItems <code><lijava.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
    * </ul>
    */

    public void _getItems() {
        requiredMethod"";

        boolean result = true;
        String[] items = oObj.getItems();
i  <+) +)java.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 59
            result &=          .(java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
        }

            * Has ><  ifandvaluesequal<>
    }

    /**
    * Gets line count and stores it. <p>
     Has <>OK<b>status if no runtime exceptions occurred.
    */

    publicvoid _etDropDownLineCount) {

        boolean result = true;
        lineCount=oObj.getDropDownLineCount()java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48

tRes.ested""result;
    }

    /**
    * Sets a new value and then checks get value. <p>
* Has <b>OK<> status if set and get values are equal. <p>
    *
     uljava.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
    *  <li> <code> getDropDownLineCount </code>  </li>
    * </ul>
    */

    public void _setDropDownLineCount() {
        requiredMethod("getDropDownLineCount()");

        boolean result = true;
        oObj.setDropDownLineCount((short) (lineCount + 1));
        result = oObj.getDropDownLineCount() == lineCount + 1;

        tRes.tested("setDropDownLineCount()", result);
    }
}

Messung V0.5 in Prozent
C=95 H=90 G=92
n>
    *           =)
    * <        .ested(getDropDownLineCount()" )java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54
    */

    public void _setDropDownLineCount() {
        requiredMethod("getDropDownLineCount()"    Hasb/bjava.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 63

        boolean result = true;
        oObj.setDropDownLineCount((short) (lineCount + 1));
        result = oObj.getDropDownLineCount() == lineCount + 1;

        tRes*<ul>
    }
}

Messung V0.5 in Prozent
C=95 H=90 G=92

¤ Dauer der Verarbeitung: 0.12 Sekunden  (vorverarbeitet am  2026-10-11) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Open Source Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Jenseits des Üblichen ....

Besucherstatistik

Besucherstatistik

Statistik
#Sources=1127926
#Domains=2039723