-
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
ffa6df0
commit 4e84f34
Showing
7 changed files
with
376 additions
and
24 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
<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 --> | ||
<dependency> | ||
<groupId>com.h2database</groupId> | ||
<artifactId>h2</artifactId> | ||
<scope>test</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.ops4j.pax.jdbc</groupId> | ||
<artifactId>pax-jdbc-sqlite</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.xerial</groupId> | ||
<artifactId>sqlite-jdbc</artifactId> | ||
</dependency> | ||
<!-- Dependencies for performing the test --> | ||
<dependency> | ||
<groupId>org.osgi</groupId> | ||
<artifactId>org.osgi.test.cases.jdbc</artifactId> | ||
<version>8.1.0</version> | ||
<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> | ||
<version>0.0.1</version> | ||
<scope>test</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.eclipse.platform</groupId> | ||
<artifactId>org.eclipse.osgi</artifactId> | ||
<version>3.18.200</version> | ||
</dependency> | ||
</dependencies> | ||
</project> |
33 changes: 33 additions & 0 deletions
33
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,33 @@ | ||
/* | ||
* 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 | ||
@WithBundle(value = "com.h2database", start = true, isolated = true) | ||
@WithBundle(value = "org.ops4j.pax.jdbc.sqlite", start = true, isolated = true) | ||
@WithBundle(value = "org.xerial.sqlite-jdbc", start = true, isolated = true) | ||
//basic setup | ||
@ExtendWith(FrameworkExtension.class) | ||
@WithBundle("org.osgi.service.jdbc") | ||
public class JdbcTckTest extends JDBCTestCase { | ||
|
||
} |
Oops, something went wrong.