FileDocCategorySizeDatePackage
FailTest.javaAPI DocphoneME MR2 API (J2ME)1610Wed May 02 18:00:00 BST 2007com.sun.midp.util

FailTest.java

/*
 *  
 *
 * Copyright  1990-2007 Sun Microsystems, Inc. All Rights Reserved.
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER
 * 
 * This program 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 program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * General Public License version 2 for more details (a copy is
 * included at /legal/license.txt).
 * 
 * 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 Sun Microsystems, Inc., 4150 Network Circle, Santa
 * Clara, CA 95054 or visit www.sun.com if you need additional
 * information or have any questions.
 */

package com.sun.midp.util;

import com.sun.midp.i3test.TestCase;

/**
 * An i3test that fails. Useful for ensuring that i3test runs that include a 
 * failure report their exit status properly. Note that this class doesn't 
 * follow the typical naming conventions, so it isn't included as part of the 
 * normal test run. To invoke it, you must name the class explicitly on the 
 * i3test command line.
 */
public class FailTest extends TestCase {
    public void runTests() {
        declare("testFail");
        fail("testFail has failed as expected");
    }
}