-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- add lost pom.xml files and .gitignore - add lost Test classes git-svn-id: http://dev.eclipse.org/svnroot/rt/org.eclipse.gemini.dbaccess/trunk@60 12902edb-6d80-0410-83f6-77bc01f5a9c0
- Loading branch information
jkissner
committed
May 12, 2011
1 parent
c9b8921
commit ae085e7
Showing
13 changed files
with
274 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
Copyright (c) 2010 SAP AG. | ||
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: | ||
ktsvetkov - initial implementation | ||
--> | ||
|
||
<project xmlns="http://maven.apache.org/POM/4.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<parent> | ||
<groupId>org.eclipse</groupId> | ||
<artifactId>gemini.dbaccess.parent</artifactId> | ||
<version>1.1.0-SNAPSHOT</version> | ||
<relativePath>../../mvn_parent</relativePath> | ||
</parent> | ||
|
||
<artifactId>org.apache.derby</artifactId> | ||
<version>10.5.1.1</version> | ||
<packaging>eclipse-plugin</packaging> | ||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
Copyright (c) 2010 SAP AG. | ||
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: | ||
ktsvetkov - initial implementation | ||
--> | ||
|
||
<project xmlns="http://maven.apache.org/POM/4.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<parent> | ||
<groupId>org.eclipse</groupId> | ||
<artifactId>gemini.dbaccess.parent</artifactId> | ||
<version>1.1.0-SNAPSHOT</version> | ||
<relativePath>../../mvn_parent</relativePath> | ||
</parent> | ||
|
||
<artifactId>org.eclipse.gemini.dbaccess.derby</artifactId> | ||
<version>1.1.0-SNAPSHOT</version> | ||
<packaging>eclipse-plugin</packaging> | ||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
bin.includes = osgi.enterprise.jar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<!-- | ||
Copyright (c) 2010 SAP AG. | ||
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: | ||
ktsvetkov - initial implementation | ||
--> | ||
|
||
<project xmlns="http://maven.apache.org/POM/4.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<parent> | ||
<groupId>org.eclipse</groupId> | ||
<artifactId>gemini.dbaccess.parent</artifactId> | ||
<version>1.1.0-SNAPSHOT</version> | ||
<relativePath>../mvn_parent</relativePath> | ||
</parent> | ||
|
||
<groupId>org.eclipse</groupId> | ||
<artifactId>osgi.enterprise</artifactId> | ||
<version>4.2.0.201003190513</version> | ||
<packaging>eclipse-plugin</packaging> | ||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<!-- | ||
Copyright (c) 2010 SAP AG. | ||
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: | ||
ktsvetkov - initial implementation | ||
--> | ||
|
||
<project xmlns="http://maven.apache.org/POM/4.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<parent> | ||
<groupId>org.eclipse</groupId> | ||
<artifactId>gemini.dbaccess.parent</artifactId> | ||
<version>1.1.0-SNAPSHOT</version> | ||
<relativePath>../../mvn_parent</relativePath> | ||
</parent> | ||
|
||
<artifactId>org.eclipse.gemini.dbaccess.samples</artifactId> | ||
<version>1.1.0-SNAPSHOT</version> | ||
<packaging>eclipse-plugin</packaging> | ||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
/target | ||
/accountDB | ||
/trace.out |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<!-- Copyright (c) 2010 SAP AG. 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: ktsvetkov - initial | ||
implementation --> | ||
|
||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<parent> | ||
<groupId>org.eclipse</groupId> | ||
<artifactId>gemini.dbaccess.parent</artifactId> | ||
<version>1.1.0-SNAPSHOT</version> | ||
<relativePath>../../mvn_parent</relativePath> | ||
</parent> | ||
|
||
<packaging>eclipse-test-plugin</packaging> | ||
|
||
<artifactId>org.eclipse.gemini.dbaccess.test</artifactId> | ||
<version>1.1.0-SNAPSHOT</version> | ||
<!-- <packaging>eclipse-plugin</packaging> --> | ||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.sonatype.tycho</groupId> | ||
<artifactId>maven-osgi-test-plugin</artifactId> | ||
<configuration> | ||
<dependencies> | ||
<dependency> | ||
<type>eclipse-plugin</type> | ||
<groupId>org.eclipse</groupId> | ||
<artifactId>org.eclipse.gemini.dbaccess.derby</artifactId> | ||
<version>0.0.0</version> | ||
</dependency> | ||
</dependencies> | ||
</configuration> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-javadoc-plugin</artifactId> | ||
<configuration> | ||
<skip>true</skip> | ||
</configuration> | ||
</plugin> | ||
|
||
</plugins> | ||
</build> | ||
</project> |
60 changes: 60 additions & 0 deletions
60
...eclipse.gemini.dbaccess.test/src/org/eclipse/gemini/dbaccess/test/EmbeddedDriverTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2010 Oracle. | ||
* All rights reserved. This program and the accompanying materials | ||
* are made available under the terms of the Eclipse Public License v1.0 | ||
* and Apache License v2.0 which accompanies this distribution. | ||
* The Eclipse Public License is available at | ||
* http://www.eclipse.org/legal/epl-v10.html | ||
* and the Apache License v2.0 is available at | ||
* http://www.opensource.org/licenses/apache2.0.php. | ||
* You may elect to redistribute this code under either of these licenses. | ||
* | ||
* Contributors: | ||
* mkeith - Gemini DBAccess tests | ||
******************************************************************************/ | ||
package org.eclipse.gemini.dbaccess.test; | ||
|
||
import java.util.Properties; | ||
|
||
import org.junit.*; | ||
import org.osgi.service.jdbc.DataSourceFactory; | ||
|
||
/** | ||
* Test class to test OSGi JDBC embedded driver data source factory service | ||
* | ||
* @author mkeith | ||
*/ | ||
public class EmbeddedDriverTest extends JdbcTests { | ||
|
||
public static String EMBEDDED_DRIVER_NAME = "org.apache.derby.jdbc.EmbeddedDriver"; | ||
public static String JDBC_VERSION = "3.0"; | ||
|
||
|
||
@BeforeClass | ||
public static void setUpClass() throws Exception { | ||
JdbcTests.setUpClass(); | ||
log("In EmbeddedDriverTests setup"); | ||
dsf = lookupDsf(EMBEDDED_DRIVER_NAME, JDBC_VERSION); | ||
log("Found DSF service - " + dsf); | ||
} | ||
|
||
@AfterClass | ||
public static void classCleanUp() { | ||
dsf = null; | ||
} | ||
|
||
protected Properties getDataSourceProperties() { | ||
Properties props = new Properties(); | ||
props.put(DataSourceFactory.JDBC_DATABASE_NAME, "accountDB"); | ||
return props; | ||
} | ||
|
||
protected Properties getUrlProperties() { | ||
Properties props = new Properties(); | ||
props.put(DataSourceFactory.OSGI_JDBC_DRIVER_NAME, | ||
"org.apache.derby.jdbc.EmbeddedDriver"); | ||
props.put(DataSourceFactory.JDBC_URL, | ||
"jdbc:derby:accountDB;create=true"); | ||
return props; | ||
} | ||
} |
40 changes: 40 additions & 0 deletions
40
...se.gemini.dbaccess.test/src/org/eclipse/gemini/dbaccess/test/Jdbc4EmbeddedDriverTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2010 Oracle. | ||
* All rights reserved. This program and the accompanying materials | ||
* are made available under the terms of the Eclipse Public License v1.0 | ||
* and Apache License v2.0 which accompanies this distribution. | ||
* The Eclipse Public License is available at | ||
* http://www.eclipse.org/legal/epl-v10.html | ||
* and the Apache License v2.0 is available at | ||
* http://www.opensource.org/licenses/apache2.0.php. | ||
* You may elect to redistribute this code under either of these licenses. | ||
* | ||
* Contributors: | ||
* mkeith - Gemini DBAccess tests | ||
******************************************************************************/ | ||
package org.eclipse.gemini.dbaccess.test; | ||
|
||
import org.junit.*; | ||
|
||
/** | ||
* Test class to test OSGi JDBC 4 embedded driver data source factory service | ||
* | ||
* @author mkeith | ||
*/ | ||
public class Jdbc4EmbeddedDriverTest extends EmbeddedDriverTest { | ||
|
||
public static String EMBEDDED_DRIVER_NAME = "org.apache.derby.jdbc.EmbeddedDriver"; | ||
public static String JDBC_4_VERSION = "4.0"; | ||
|
||
@BeforeClass | ||
public static void classSetUp() { | ||
log("In Jdbc4EmbeddedDriverTests setup"); | ||
dsf = lookupDsf(EMBEDDED_DRIVER_NAME, JDBC_4_VERSION); | ||
log("Found DSF service - " + dsf); | ||
} | ||
|
||
@AfterClass | ||
public static void classCleanUp() { | ||
dsf = null; | ||
} | ||
} |