blob: 2e504e9288d6728856c3ef3ea19b90c6575c381e [file] [log] [blame]
/**********************************************************************
* Copyright (c) 2004 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Common Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/cpl-v10.html
 *
* Contributors:
* IBM - 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();
}