alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  

What this is

This file is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Other links

The source code

/*
 *                 Sun Public License Notice
 * 
 * The contents of this file are subject to the Sun Public License
 * Version 1.0 (the "License"). You may not use this file except in
 * compliance with the License. A copy of the License is available at
 * http://www.sun.com/
 * 
 * The Original Code is NetBeans. The Initial Developer of the Original
 * Code is Sun Microsystems, Inc. Portions Copyright 1997-2001 Sun
 * Microsystems, Inc. All Rights Reserved.
 */

package org.netbeans.test.debugger.watches;

import org.netbeans.test.debugger.Util.DebuggerAPI;

/**
 *
 * @author Jan Stola
 */
public class BasicWatchesTestCase extends org.netbeans.junit.NbTestCase {
    protected String debuggerType;
    
    public BasicWatchesTestCase(String name) {
        super(name);
    }
    
    public void setUp() {
        DebuggerAPI.initSettings(debuggerType);
    }
    
    public void tearDown() {
        DebuggerAPI.restoreSettings(debuggerType);
    }

    public void testObjectArgumentWatch() {
        new BasicWatchCommon(getName()).test(debuggerType, 36, "objectArgument", "\"ObjectArgumentWatch\"");
    }
    
    public void testObjectArgumentWatchInStatic() {
        new BasicWatchCommon(getName()).test(debuggerType, 44, "objectArgument", "\"StaticObjectArgumentWatch\"");
    }
    
    public void testObjectClassWatch() {
        new BasicWatchCommon(getName()).test(debuggerType, 53, "objectClass", "\"ObjectClassWatch\"");
    }
    
    public void testObjectClassWatchInStatic() {
        new BasicWatchCommon(getName()).test(debuggerType, 70, "objectClass", "\"ObjectClassWatch\"");
    }
    
    public void testObjectLocalWatch() {
        new BasicWatchCommon(getName()).test(debuggerType, 51, "objectLocal", "\"ObjectLocal\"");
    }
    
    public void testObjectLocalWatchInStatic() {
        new BasicWatchCommon(getName()).test(debuggerType, 63, "objectLocalInStatic", "\"ObjectLocalInStaticWatch\"");
    }
    
    public void testObjectMemberWatch() {
        new BasicWatchCommon(getName()).test(debuggerType, 55, "objectMember", "\"ObjectMemberWatch\"");
    }

    public void testPrimitiveArgumentWatch() {
        new BasicWatchCommon(getName()).test(debuggerType, 32, "primitiveArgument", "'w'");
    }
    
    public void testPrimitiveArgumentWatchInStatic() {
        new BasicWatchCommon(getName()).test(debuggerType, 40, "primitiveArgument", "'x'");
    }
    
    public void testPrimitiveClassWatch() {
        new BasicWatchCommon(getName()).test(debuggerType, 52, "primitiveClass", "123456789");
    }
    
    public void testPrimitiveClassWatchInStatic() {
        new BasicWatchCommon(getName()).test(debuggerType, 69, "primitiveClass", "123456789");
    }
    
    public void testPrimitiveLocalWatch() {
        new BasicWatchCommon(getName()).test(debuggerType, 50, "primitiveLocal", "102");
    }
    
    public void testPrimitiveLocalWatchInStatic() {
        new BasicWatchCommon(getName()).test(debuggerType, 62, "primitiveLocalInStatic", "101");
    }
    
    public void testPrimitiveMemberWatch() {
        new BasicWatchCommon(getName()).test(debuggerType, 54, "primitiveMember", "103");
    }
        
}
... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.