blob: 809c2b51ff6e016e9a96a2396f732cdba4c70e06 [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.wst.server.core.tests;
import org.eclipse.core.resources.IProject;
import org.eclipse.wst.server.core.IModule;
import org.eclipse.wst.server.core.IModuleType;
import org.eclipse.wst.server.core.model.IModuleListener;
import junit.framework.TestCase;
public class IModuleTestCase extends TestCase {
protected static IModule module;
public void testCreate() {
module = new IModule() {
public String getId() {
return null;
}
public String getName() {
return null;
}
public IModuleType getModuleType() {
return null;
}
public IProject getProject() {
return null;
}
public void addModuleListener(IModuleListener listener) {
// ignore
}
public void removeModuleListener(IModuleListener listener) {
// ignore
}
public Object getAdapter(Class adapter) {
return null;
}
};
module.getId();
module.getName();
module.getModuleType();
module.getProject();
module.addModuleListener(null);
module.removeModuleListener(null);
module.getAdapter(null);
}
}