blob: 9c28121951d2cf9c07c9a6b6d6cf6a694aad913b [file] [log] [blame]
package org.eclipse.jem.tests.proxy.initParser;
/*******************************************************************************
* Copyright (c) 2003 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
/*
* $RCSfile: NeedsCodingTest.java,v $
* $Revision: 1.4 $ $Date: 2005/05/11 22:41:39 $
*/
/**
* @author jmyers
*
* To change the template for this generated type comment go to
* Window>Preferences>Java>Code Generation>Code and Comments
*/
public class NeedsCodingTest extends AbstractInitParserTestCase {
/**
* Constructor for NeedsCodingTest.
* @param name
*/
public NeedsCodingTest(String name) {
super(name);
}
// TODO: enable this test when math works
/*
public void testMath() {
// Doing math is not coded yet. We don't expect to encounter any strings like this as part of GA
testHelper.testInitString("10 + 20", new Integer(10 + 20));
}
*/
public void testInnerClasses() throws Throwable {
// Inner classes need coding but we have a test to make sure we throw an explicit exception
testHelper.testInitString("new javax.swing.table.DefaultTableModel(){}",new javax.swing.table.DefaultTableModel(){},true, true);
}
public void testParamsThreeFloats() throws Throwable {
testHelper.testInitString("org.eclipse.jem.tests.proxy.initParser.NavigationParameters.get((float)12,(float)24,(float)50)",org.eclipse.jem.tests.proxy.initParser.NavigationParameters.get(12,24,50));
}
public void testConstructThreeFloats() throws Throwable {
testHelper.testInitString("new org.eclipse.jem.tests.proxy.initParser.NavigationParameters((float)12,(float)24,(float)50)",new org.eclipse.jem.tests.proxy.initParser.NavigationParameters(12,24,50));
}
public void testNewParamsThreeFloats() throws Throwable {
testHelper.testInitString("new org.eclipse.jem.tests.proxy.initParser.NavigationParameters().set((float)12,(float)24,(float)50)",new org.eclipse.jem.tests.proxy.initParser.NavigationParameters().set(12,24,50));
}
}