blob: 3565f32c661d47b6879567a964ab084c79ebe596 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2004, 2007 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.tomcat.core.tests.module;
import org.eclipse.wst.server.core.IModule;
import junit.framework.TestCase;
public class ModuleTestCase extends TestCase {
protected static final String WEB_MODULE_NAME = "MyWeb";
protected static final String CLOSED_PROJECT = "ClosedProject";
public static IModule webModule;
public void test00ClosedProject() throws Exception {
ModuleHelper.createClosedProject(CLOSED_PROJECT);
}
public void test01CreateWebModule() throws Exception {
ModuleHelper.createModule(WEB_MODULE_NAME);
}
public void test02CreateWebContent() throws Exception {
ModuleHelper.createWebContent(WEB_MODULE_NAME, 0);
}
public void test04GetModule() throws Exception {
ModuleHelper.buildFull();
webModule = ModuleHelper.getModule(WEB_MODULE_NAME);
}
public void test05CountFilesInModule() throws Exception {
assertEquals(ModuleHelper.countFilesInModule(webModule), 3);
}
}