use of org.eclipse.jst.server.generic.servertype.definition.JndiConnection in project webtools.servertools by eclipse.
the class ServerRuntimeImpl method basicSetJndiConnection.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetJndiConnection(JndiConnection newJndiConnection, NotificationChain msgs) {
JndiConnection oldJndiConnection = jndiConnection;
jndiConnection = newJndiConnection;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ServerTypePackage.SERVER_RUNTIME__JNDI_CONNECTION, oldJndiConnection, newJndiConnection);
if (msgs == null)
msgs = notification;
else
msgs.add(notification);
}
return msgs;
}
use of org.eclipse.jst.server.generic.servertype.definition.JndiConnection in project webtools.servertools by eclipse.
the class ServerTypeDefinitionModelTest method testJNDIConnection.
public void testJNDIConnection() {
JndiConnection jndi = subject.getJndiConnection();
assertNotNull(jndi);
assertTrue(jndi.getProviderUrl() != null && jndi.getProviderUrl().length() > 0);
assertTrue(jndi.getInitialContextFactory() != null && jndi.getInitialContextFactory().length() > 0);
assertNotNull(jndi.getJndiProperty());
if (jndi.getJndiProperty().size() > 0) {
ArgumentPair property = (ArgumentPair) jndi.getJndiProperty().get(0);
assertNotNull(property.getName());
assertNotNull(property.getValue());
}
}
Aggregations