blob: fc057198889b42e6f8f264146a87f91340dc7604 [file] [log] [blame]
/*
* Copyright (c) 2016, 2020 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0,
* or the Eclipse Distribution License v. 1.0 which is available at
* http://www.eclipse.org/org/documents/edl-v10.php.
*
* SPDX-License-Identifier: EPL-2.0 OR BSD-3-Clause
*/
// Contributors:
// 03/30/2016-2.7 Tomas Kraus
// - 490677: Initial API and implementation.
package org.eclipse.persistence.testing.tests.eis.nosql;
import org.eclipse.persistence.sessions.DatabaseSession;
import org.eclipse.persistence.sessions.server.Server;
import org.eclipse.persistence.testing.framework.junit.LogTestExecution;
import org.eclipse.persistence.testing.tests.nosql.SessionHelper;
import org.junit.Rule;
import org.junit.Test;
/**
* Test EclipseLink EIS sessions creation and login with the Oracle NoSQL database.
*/
public class NoSQLSessionTest {
/** Log the test being currently executed. */
@Rule public LogTestExecution logExecution = new LogTestExecution();
/**
* Test {@link DatabaseSession} creation and login.
*/
@Test
public void testDatabaseSession() throws Exception {
final DatabaseSession session = SessionHelper.createDatabaseSession(NoSQLTestSuite.project);
session.logout();
}
/**
* Test {@link Server} session creation and login.
*/
@Test
public void testServerSession() throws Exception {
final Server session = SessionHelper.createServerSession(NoSQLTestSuite.project);
session.logout();
}
}