Skip to content

[Documentation] Integration with TestContainer #151

Answered by dario-vega
otaviojava asked this question in Q&A
Discussion options

You must be logged in to vote

Oi @otaviojava

I will add a new example/tutorial using test-containers at https://github.com/oracle/nosql-examples/tree/master/examples-nosql-java-sdk soon

In the meantime, here is a snippet using Junit4 and test-containers

import oracle.nosql.driver.NoSQLHandle;
import oracle.nosql.driver.NoSQLHandleConfig;
import oracle.nosql.driver.NoSQLHandleFactory;
import oracle.nosql.driver.kv.StoreAccessTokenProvider ;
import oracle.nosql.driver.ops.*;
import oracle.nosql.driver.values.MapValue;

import org.junit.Before;
import org.junit.After;
import org.junit.Test;
import org.junit.Rule;
import static org.junit.Assert.assertEquals;

import org.testcontainers.containers.GenericContainer;
import o…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies

This comment has been hidden.

Comment options

You must be logged in to vote
0 replies
Answer selected by dario-vega
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
3 participants
Converted from issue

This discussion was converted from issue #150 on January 19, 2024 17:06.