blob: c50adb1e9d14852b01815147a1e5da7dffbf883b [file] [log] [blame]
/*******************************************************************************
* 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 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* IBM Corporation - Initial API and implementation
*******************************************************************************/
package org.eclipse.jst.server.core.tests;
import org.eclipse.jst.server.core.JndiLaunchable;
import junit.framework.TestCase;
public class JndiLaunchableTestCase extends TestCase {
protected static JndiLaunchable launch;
protected JndiLaunchable getJndiLaunchable() {
if (launch == null) {
launch = new JndiLaunchable(null, "test");
}
return launch;
}
public void testCreate() {
getJndiLaunchable();
}
public void testGetProperties() {
assertNull(getJndiLaunchable().getProperties());
}
public void testGetJNDIName() {
assertEquals(getJndiLaunchable().getJNDIName(), "test");
}
}