-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #307 from eclipse-jnosql/activate-tck
Active TCK to other oracle nosql
- Loading branch information
Showing
9 changed files
with
138 additions
and
5 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
41 changes: 41 additions & 0 deletions
41
...ql/src/test/java/org/eclipse/jnosql/databases/oracle/tck/OracleNoSQLTemplateSupplier.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 (c) 2024 Contributors to the Eclipse Foundation | ||
* 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: | ||
* | ||
* Otavio Santana | ||
* Alessandro Moscatelli | ||
* Maximillian Arruda | ||
*/ | ||
package org.eclipse.jnosql.databases.oracle.tck; | ||
|
||
import jakarta.enterprise.inject.se.SeContainerInitializer; | ||
import jakarta.enterprise.inject.spi.CDI; | ||
import jakarta.nosql.Template; | ||
import jakarta.nosql.tck.TemplateSupplier; | ||
import org.eclipse.jnosql.databases.oracle.communication.Database; | ||
import org.eclipse.jnosql.databases.oracle.communication.OracleNoSQLConfigurations; | ||
import org.eclipse.jnosql.mapping.core.config.MappingConfigurations; | ||
import org.eclipse.jnosql.mapping.document.DocumentTemplate; | ||
|
||
|
||
public class OracleNoSQLTemplateSupplier implements TemplateSupplier { | ||
|
||
static { | ||
System.setProperty(OracleNoSQLConfigurations.HOST.get(), Database.INSTANCE.host()); | ||
System.setProperty(MappingConfigurations.DOCUMENT_DATABASE.get(), "jakartanosqltck"); | ||
SeContainerInitializer.newInstance().initialize(); | ||
} | ||
|
||
@Override | ||
public Template get() { | ||
return CDI.current().select(DocumentTemplate.class).get(); | ||
} | ||
} |
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,21 @@ | ||
<!-- | ||
~ Copyright (c) 2022 Contributors to the Eclipse Foundation | ||
~ 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: | ||
~ | ||
~ Otavio Santana | ||
--> | ||
|
||
<beans xmlns="http://xmlns.jcp.org/xml/ns/javaee" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee | ||
http://xmlns.jcp.org/xml/ns/javaee/beans_1_1.xsd" | ||
bean-discovery-mode="annotated"> | ||
</beans> |
1 change: 1 addition & 0 deletions
1
jnosql-oracle-nosql/src/test/resources/META-INF/services/jakarta.nosql.tck.TemplateSupplier
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 @@ | ||
org.eclipse.jnosql.databases.oracle.tck.OracleNoSQLTemplateSupplier |
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
41 changes: 41 additions & 0 deletions
41
...l-redis/src/test/java/org/eclipse/jnosql/databases/redis/tck/RedisDBTemplateSupplier.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 (c) 2024 Contributors to the Eclipse Foundation | ||
* 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: | ||
* | ||
* Otavio Santana | ||
* Alessandro Moscatelli | ||
* Maximillian Arruda | ||
*/ | ||
package org.eclipse.jnosql.databases.redis.tck; | ||
|
||
import jakarta.enterprise.inject.se.SeContainerInitializer; | ||
import jakarta.enterprise.inject.spi.CDI; | ||
import jakarta.nosql.Template; | ||
import jakarta.nosql.tck.TemplateSupplier; | ||
import org.eclipse.jnosql.databases.redis.communication.KeyValueDatabase; | ||
import org.eclipse.jnosql.databases.redis.communication.RedisConfigurations; | ||
import org.eclipse.jnosql.mapping.core.config.MappingConfigurations; | ||
|
||
|
||
public class RedisDBTemplateSupplier implements TemplateSupplier { | ||
|
||
static { | ||
System.setProperty(RedisConfigurations.HOST.get(), KeyValueDatabase.INSTANCE.host()); | ||
System.setProperty(RedisConfigurations.PORT.get(), KeyValueDatabase.INSTANCE.port()); | ||
System.setProperty(MappingConfigurations.KEY_VALUE_DATABASE.get(), "jakarta-nosql-tck"); | ||
SeContainerInitializer.newInstance().initialize(); | ||
} | ||
|
||
@Override | ||
public Template get() { | ||
return CDI.current().select(Template.class).get(); | ||
} | ||
} |
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,21 @@ | ||
<!-- | ||
~ Copyright (c) 2022 Contributors to the Eclipse Foundation | ||
~ 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: | ||
~ | ||
~ Otavio Santana | ||
--> | ||
|
||
<beans xmlns="http://xmlns.jcp.org/xml/ns/javaee" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee | ||
http://xmlns.jcp.org/xml/ns/javaee/beans_1_1.xsd" | ||
bean-discovery-mode="annotated"> | ||
</beans> |
1 change: 1 addition & 0 deletions
1
jnosql-redis/src/test/resources/META-INF/services/jakarta.nosql.tck.TemplateSupplier
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 @@ | ||
org.eclipse.jnosql.databases.redis.tck.RedisDBTemplateSupplier |