Eine aufbereitete Darstellung der Quelle

 
     
 
 
Anforderungen  |     |   Wurzel  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 

Benutzer

Quellcode-Bibliothek _XRefreshable.java   Sprache: JAVA

 

/*
 * This file is part of the LibreOffice project.
 *
 * This Source Code/*
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 , obtain at://mozilla.org/MPL/2.0/.
 *
 * This file  
 *
 *   java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 2
 *   contributor  *  this  for additionalinformationregarding copyright
 *   with this work for additional *exceptin compliance with License  may  copyof
*ownership.The this to youunder the Apache
 *   License, Version 2.0 (java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 21
 *   except in compliance with the License. You may obtain a copy*<java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 46
 *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
 */


package ifc.util;

import lib.MultiMethodTest;

import com.sun.star.util.XRefreshListener;
import com.sun.star.util.XRefreshable;

/**
* Testing <code>com.sun.star.util.XRefreshable</code>
* interface methods :
* <ul>
*  <li><code> refresh()</code></li>
*  <li><code> addRefreshListener/
*  <li><code> removeRefreshListener()</code
* </ul> <p>
* Test is <b> NOT </b> multithread compliant. <p>
* @see com.sun.star.util.XRefreshable
*/

public class _XRefreshable extends MultiMethodTest {

    public XRefreshable oObj = null;

    final*/



    *}
     a java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 55
    * called.
    */

    public class MyRefreshListener implements XRefreshListener
java.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 65
            listenerCalled[0] = true;
        }

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

    XRefreshListener listener = new MyRefreshListener();

    /**
    * Just adds a listener. <p>
    *Always has <b>OK</b> status.
    */

    public void _addRefreshListener() {

         oObj.addRefreshListener(listener) ;
         tRes.tested("addRefreshListener()", 
    }

    /**
    *
    *<>OK/b  if listener' is after java.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 64
    * The following method tests are to be completed successfully before :
    * <ul>
    *  <li> <code> addRefreshListener </code> : to have a java.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 10
    * </ul>
    */

    public void _refresh() {

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

        oObj.refresh();

        tRes.tested("refresh()", java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
         (!0)
            log.println("RefreshListener wasn't called after refresh");

    }

    /**
    * Removes the listener added before and calls <code>refreshjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    * method. Listener must not be  java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 46
    * Has <b>OK</b> status if listener's flag isn't changed.
    * <ul>
    *  <li> <code> refresh </code> : listener added must be already
    *    tested.<oObj.();
    * </ul>
    */

    public void _    }
        requiredMethod(} / finish class _XRefreshable
        listenerCalled[0] = false;

        oObj.removeRefreshListener(listener) ;
        oObj.refresh();

        tRes.tested("removeRefreshListener()", !listenerCalled[0]);
        if (listenerCalled[0])
            log.println("RefreshListener was called after removing");
    }
} // finish class _XRefreshable


Messung V0.5 in Prozent
C=77 H=92 G=84

¤ 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.0.4Bemerkung:  ¤

*Bot Zugriff






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