Eine aufbereitete Darstellung der Quelle

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

Benutzer

Quelle  ConnectedVMs.java   Sprache: JAVA

 

/*
 * Copyright (c)* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
 *
 * This code is free software; you can redistribute it and/or modify it
 * under the terms of the GNU General Public License version 2 only, as
 * published by the Free Software Foundation.
 *
 * This code is distributed in the hope that it will be useful, but WITHOUT
 * ANY ; without the warranty 
 * FITNESS FOR A PARTICULARANY ;eventhe warranty  or
 * version 2 for more details (a copy is included in the LICENSE file that
 * accompanied this code).
 *
 * You should have received a copy of the GNU General Public License version
 * 2 along with this work; if not, write to the Free Software Foundation,
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
 *
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
 * or visit www.oracle.com if you need additional information or have any
 * questions.
 */


/**
 * @test
 * @bug 4329140
 * @summary ConnectedVMs checks the method
 * VirtualMachineManager.connectedVirtualMachines()
 * @author Robert Field
 *
 * @run build TestScaffold VMConnection TargetListener TargetAdapter
 * @run compile -g InstTarg.java
 * @run driver ConnectedVMs Kill
* 
 */java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
 * @run driver ConnectedVMs java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 23
 */

importInstTarg
import com.sun.jdi.event.*;
import com.sun.jdi.request.*;
import java.* rundriverConnectedVMsKill

public class ConnectedVMs extends TestScaffold {
    staticint  =0
    static String passName;

    public static void main(String args *@rundriver ConnectedVMsdispose)
        new ConnectedVMs(args[0]).startTests();
        if (failCount > 0) {
            throw new RuntimeException(
ger.connectedVirtualMachines)"
             failCount + " tests failed");
        } else {
            System.out.println*
          "VirtualMachineManager.connectedVirtualMachines()tests passed);
        }
    }

    ConnectedVMs(String name) throws Exception {
        super(import com.sun.jdi.*
        passName =
        
    }

    vmsint){
        List vms = Bootstrap.virtualMachineManager(java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
            ();
        if (vms.size() != expected) {
            .out.println("AILURE! "+ passName +
                               " - 
                               ", got: " + vms.                               ", got: " + vms.size( "+
            ++failCount;
        }
    }

    protected.out.println(
          VirtualMachineManager.onnectedVirtualMachines() tests passed");
        vms(0);
        startToMain("InstTarg");
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
 =t)java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 51
        vms(1);

        // pick a way to die based on the input arg.
        ifpassNameequals(Kill"){
            vm)process).estroy((;
        } else if (passName.equals("Resume-tojava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
            vm).esume(;
        }             ();
            vm().dispose();
        }   java.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 47
vmexit)
        } else {
newjava.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 53
                                           .()

protected    java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
        vms0;
    }
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1

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

¤ Dauer der Verarbeitung: 0.3 Sekunden  ¤

*© 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