@@ -0,0 +1,1631 @@
+/*%0A * Copyright 2008 The Kuali Foundation.%0A * %0A * Licensed under the Educational Community License, Version 1.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A * %0A * http://www.opensource.org/licenses/ecl1.php%0A * %0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0Apackage org.kuali.kra.s2s;%0A%0Aimport java.sql.Connection;%0A%0Aimport org.junit.After;%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0Aimport org.kuali.kra.KraTestBase;%0A/**%0A * %0A * This class is to test the database connectivity for coeus s2s engine.%0A */%0Apublic class KualiDataSourceConnectionManagerTest extends KraTestBase %7B%0A    @Before%0A%09public void setUp() throws Exception%7B%0A%09%09super.setUp();%0A%09%7D%0A    @After%0A%09public void tearDown() throws Exception %7B%0A%09%09super.tearDown();%0A%09%7D%0A    @Test%0A%09public final void getDatabaseConnectionTest() throws Exception%7B%0A        KualiDataSourceConnectionManager cnnMgr = new KualiDataSourceConnectionManager();%0A        assertNotNull(cnnMgr.getDatabaseConnection());%0A    %7D%0A    @Test%0A    public final void freeDatabaseConnectionTest() throws Exception%7B%0A        KualiDataSourceConnectionManager cnnMgr = new KualiDataSourceConnectionManager();%0A        Connection conn = cnnMgr.getDatabaseConnection();%0A        cnnMgr.freeDatabaseConnection(conn);%0A        assertTrue(conn.isClosed());%0A    %7D%0A%7D%0A

Test class for coeus-s2s engine