blob: 904bc50de161395fc3b3f05611488117904db837 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2004, 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.tests.performance.common;
import org.eclipse.wst.server.core.IServer;
import org.eclipse.wst.server.core.model.ServerDelegate;
public abstract class AbstractGetDelegateTestCase extends ServerPerformanceTestCase {
protected void setUp() throws Exception {
super.setUp();
closeIntro();
}
public void testGetDelegate() throws Exception {
startMeasuring();
createRuntime(getRuntimeTypeId(), getRuntimeTypeLocation());
IServer server = createServer(getServerTypeId());
server.getAdapter(ServerDelegate.class);
stopMeasuring();
commitMeasurements();
assertPerformance();
}
protected abstract String getRuntimeTypeId();
protected abstract String getRuntimeTypeLocation();
protected abstract String getServerTypeId();
}