Replace ecomp references
[portal.git] / ecomp-portal-BE-common / src / test / java / org / onap / portalapp / portal / core / RemoveSampleTestData.java
1 package org.onap.portalapp.portal.core;
2 /*-
3  * ============LICENSE_START==========================================
4  * ONAP Portal
5  * ===================================================================
6  * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
7  * ===================================================================
8  *
9  * Unless otherwise specified, all software contained herein is licensed
10  * under the Apache License, Version 2.0 (the "License");
11  * you may not use this software except in compliance with the License.
12  * You may obtain a copy of the License at
13  *
14  *             http://www.apache.org/licenses/LICENSE-2.0
15  *
16  * Unless required by applicable law or agreed to in writing, software
17  * distributed under the License is distributed on an "AS IS" BASIS,
18  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19  * See the License for the specific language governing permissions and
20  * limitations under the License.
21  *
22  * Unless otherwise specified, all documentation contained herein is licensed
23  * under the Creative Commons License, Attribution 4.0 Intl. (the "License");
24  * you may not use this documentation except in compliance with the License.
25  * You may obtain a copy of the License at
26  *
27  *             https://creativecommons.org/licenses/by/4.0/
28  *
29  * Unless required by applicable law or agreed to in writing, documentation
30  * distributed under the License is distributed on an "AS IS" BASIS,
31  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
32  * See the License for the specific language governing permissions and
33  * limitations under the License.
34  *
35  * ============LICENSE_END============================================
36  *
37  * 
38  */
39 //package org.onap.portalapp.portal.core;
40 //
41 //import java.sql.Connection;
42 //import java.sql.SQLException;
43 //
44 //import javax.sql.DataSource;
45 //
46 //import org.junit.After;
47 //import org.junit.Test;
48 //import org.onap.portalapp.framework.ApplicationCommonContextTestSuite;
49 //import org.springframework.beans.factory.annotation.Autowired;
50 //import org.springframework.core.io.ClassPathResource;
51 //import org.springframework.jdbc.datasource.DataSourceUtils;
52 //import org.springframework.jdbc.datasource.init.ResourceDatabasePopulator;
53 //
54 //public class RemoveSampleTestData extends ApplicationCommonContextTestSuite {
55 //      @Autowired
56 //      DataSource dataSource;
57 //
58 //      public static int count = 0;
59 //
60 //      @After
61 //      public void removeTestData() throws SQLException {
62 //              String sql = "RemoveTestData.sql";
63 //              createConnection(sql);
64 //      }
65 //
66 //      public void createConnection(String sql) {
67 //              Connection connection = null;
68 //              ResourceDatabasePopulator populator = new ResourceDatabasePopulator();
69 //              populator.addScript(new ClassPathResource(sql));
70 //              try {
71 //                      connection = DataSourceUtils.getConnection(dataSource);
72 //                      populator.populate(connection);
73 //              } finally {
74 //                      if (connection != null) {
75 //                              DataSourceUtils.releaseConnection(connection, dataSource);
76 //                      }
77 //              }
78 //      }
79 //
80 //      @Test
81 //      public void removeTest() {
82 //              assert (true);
83 //      }
84 //}