blob: a0b13a43b8b2eb9f46fb37b8f33c184fd022c7ac [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 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.jst.server.core.tests;
import org.eclipse.jst.server.core.JndiObject;
import junit.framework.TestCase;
public class JndiObjectTestCase extends TestCase {
protected static JndiObject obj;
protected JndiObject getJndiObject() {
if (obj == null) {
obj = new JndiObject(null, "test");
}
return obj;
}
public void testCreate() {
getJndiObject();
}
public void testGetModule() {
assertNull(getJndiObject().getModule());
}
public void testGetJNDIName() {
assertEquals(getJndiObject().getJndiName(), "test");
}
}