blob: a410d8e2da29cac18dc1f061f879bbddc24c5f6b [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2005 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
*******************************************************************************/
package org.eclipse.jst.server.core.tests;
import org.eclipse.jst.server.core.Servlet;
import junit.framework.Test;
import junit.framework.TestCase;
public class ServletTestCase extends TestCase {
protected static Servlet servlet;
public static Test suite() {
return new OrderedTestSuite(ServletTestCase.class, "ServletTestCase");
}
public void test00Create() {
servlet = new Servlet(null, "class", "alias");
}
public void test01GetModule() {
assertNull(servlet.getModule());
}
public void test02GetClassName() {
assertEquals(servlet.getServletClassName(), "class");
}
public void test02GetAlias() {
assertEquals(servlet.getAlias(), "alias");
}
public void test03ToString() {
servlet.toString();
}
}