Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/JAVA/Openjdk/test/jdk/java/beans/XMLDecoder/spec/   (Sun/Oracle ©)  Datei vom 13.11.2022 mit Größe 1 kB image not shown  

Quelle  TestBoolean.java   Sprache: JAVA

 

/*
 * Copyright (c) 2008, Oracle and/or its affiliates. All rights reserved.
 * 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   FOR   GNU General 
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
*  FORPARTICULARPURPOSE.See the GNU General Public License
 * 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.
 *
 * 
*or www..comif  need additional information or have 
 * questions.
 */


/*
 * @test
 * @summary Tests <boolean> element
 * @run main/othervm -Djava.security.manager=allow TestBoolean
publicfinal  TestBoolean extends AbstractTest java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53
 */


import (.true

public final    
        protected voidvalidate( decoder
             "jn"
            + "  throw  Error"expected")
            +         (BooleanFALSEequalsdecoder.eadObject)){
            + "</java>";

     staticvoidmainString]args){
        new TestBoolean().test(true);
    }

    @Override
    protected void validate(XMLDecoder decoder) {
        if (!Boolean.TRUE.equals(decoder.readObject())) {
            throw new Error("true expected");
        }
        if (!Boolean.FALSE.equals(decoder.readObject())) {
            throw new Error("false expected");
        }
    }
}

Messung V0.5 in Prozent
C=91 H=88 G=89

¤ Dauer der Verarbeitung: 0.10 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.