blob: 5c7e9325d8dc500d8ed64e125cf156ef36472cbb [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: LiteralTest.java,v $
* $Revision: 1.3 $ $Date: 2005/02/15 23:00:16 $
*/
/**
* @author jmyers
*
* To change the template for this generated type comment go to
* Window>Preferences>Java>Code Generation>Code and Comments
*/
public class LiteralTest extends AbstractInitParserTestCase {
/**
* Constructor for LiteralTest.
* @param name
*/
public LiteralTest(String name) {
super(name);
}
public void testString() throws Throwable {
testHelper.testInitString("\"Frog\"", "Frog");
}
public void testNull() throws Throwable {
testHelper.testInitString("null", null);
}
public void testFalse() throws Throwable {
testHelper.testInitString("false", Boolean.FALSE);
}
public void testTrue() throws Throwable {
testHelper.testInitString("true", Boolean.TRUE);
}
public void testBooleanTrue() throws Throwable {
testHelper.testInitString("Boolean.TRUE", Boolean.TRUE);
}
}