-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add TCK showing using external bundle (h2) and a pax warapped (sqlite)
- Loading branch information
Christoph Läubrich
committed
Dec 28, 2022
1 parent
bfd254b
commit 3358a43
Showing
9 changed files
with
420 additions
and
30 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
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
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
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
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
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 @@ | ||
<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 https://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<parent> | ||
<groupId>org.ops4j.pax</groupId> | ||
<artifactId>jdbc</artifactId> | ||
<version>1.5.6-SNAPSHOT</version> | ||
</parent> | ||
<artifactId>pax-jdbc-tck</artifactId> | ||
<name>OSGi-TCK Tests</name> | ||
<dependencies> | ||
<!-- units under test with embedded factories --> | ||
<dependency> | ||
<groupId>com.h2database</groupId> | ||
<artifactId>h2</artifactId> | ||
<scope>test</scope> | ||
</dependency> | ||
<!-- units under test wrapped by pax-jdbc--> | ||
<dependency> | ||
<groupId>org.ops4j.pax.jdbc</groupId> | ||
<artifactId>pax-jdbc-sqlite</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.ops4j.pax.jdbc</groupId> | ||
<artifactId>pax-jdbc-db2</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.ops4j.pax.jdbc</groupId> | ||
<artifactId>pax-jdbc-mariadb</artifactId> | ||
</dependency> | ||
<!-- Dependencies for performing the test --> | ||
<dependency> | ||
<groupId>org.osgi</groupId> | ||
<artifactId>org.osgi.test.cases.jdbc</artifactId> | ||
<scope>test</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.osgi</groupId> | ||
<artifactId>org.osgi.service.jdbc</artifactId> | ||
<scope>test</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>de.laeubisoft</groupId> | ||
<artifactId>osgi-test-framework</artifactId> | ||
<scope>test</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.eclipse.platform</groupId> | ||
<artifactId>org.eclipse.osgi</artifactId> | ||
</dependency> | ||
</dependencies> | ||
</project> |
41 changes: 41 additions & 0 deletions
41
pax-jdbc-tck/src/test/java/org/ops4j/pax/jdbc/tck/JdbcTckTest.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,41 @@ | ||
/* | ||
* Copyright 2022 OPS4J. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package org.ops4j.pax.jdbc.tck; | ||
|
||
import org.junit.jupiter.api.extension.ExtendWith; | ||
import org.osgi.test.cases.jdbc.junit.JDBCTestCase; | ||
|
||
import de.laeubisoft.osgi.junit5.framework.annotations.WithBundle; | ||
import de.laeubisoft.osgi.junit5.framework.extension.FrameworkExtension; | ||
|
||
//#### JDBC services to test #### | ||
//some drivers that already have a custom implementation and we just want to include them to make sure they comply | ||
@WithBundle(value = "com.h2database", start = true, isolated = true) | ||
//pax-jdbc-sqlite | ||
@WithBundle(value = "org.ops4j.pax.jdbc.sqlite", start = true, isolated = true) | ||
@WithBundle(value = "org.xerial.sqlite-jdbc", start = true, isolated = true) | ||
//pax-jdbc-mariadb --> actually obsolete see: https://github.com/ops4j/org.ops4j.pax.jdbc/issues/277 | ||
@WithBundle(value = "org.ops4j.pax.jdbc.mariadb", start = true, isolated = true) | ||
@WithBundle(value = "org.mariadb.jdbc", start = true, isolated = true) | ||
//pax-db2 TODO how to test? seems not OpenSource? | ||
// @WithBundle(value = "org.ops4j.pax.jdbc.db2", start = true, isolated = true) | ||
|
||
//### basic setup ### | ||
@ExtendWith(FrameworkExtension.class) | ||
@WithBundle("org.osgi.service.jdbc") | ||
public class JdbcTckTest extends JDBCTestCase { | ||
|
||
} |
Oops, something went wrong.