| /******************************************************************************* |
| * Copyright (c) 2005, 2010 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.wst.server.core.tests.model; |
| |
| import junit.framework.TestCase; |
| |
| import org.eclipse.wst.server.core.model.IModuleFolder; |
| import org.eclipse.wst.server.core.util.ModuleFolder; |
| |
| public class ModuleFolderTestCase extends TestCase { |
| protected static IModuleFolder delegate; |
| |
| protected IModuleFolder getModuleFolder() { |
| if (delegate == null) { |
| delegate = new ModuleFolder(null, "name", null); |
| } |
| return delegate; |
| } |
| |
| public void testName() throws Exception { |
| assertEquals(getModuleFolder().getName(), "name"); |
| } |
| |
| public void testPath() throws Exception { |
| assertNull(getModuleFolder().getModuleRelativePath()); |
| } |
| |
| public void testMembers() throws Exception { |
| getModuleFolder().members(); |
| } |
| } |