File tree Expand file tree Collapse file tree 7 files changed +7
-17
lines changed
main/java/org/eclipse/jnosql/databases/arangodb/communication
test/java/org/eclipse/jnosql/databases/arangodb/communication Expand file tree Collapse file tree 7 files changed +7
-17
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ and this project adheres to https://semver.org/spec/v2.0.0.html[Semantic Version
1313
1414=== Fixed
1515- Fixed the broken connection issue at JNoSQL Redis Database API
16+ - Use `getAccessibleDatabases` method to get the databases at JNoSQL ArangoDB Database API
1617
1718== [1.1.2] - 2023-09-15
1819
Original file line number Diff line number Diff line change 2828 <description >The Eclipse JNoSQL layer to ArangoDB</description >
2929
3030 <properties >
31- <arango .driver>7.11 .0</arango .driver>
31+ <arango .driver>7.13 .0</arango .driver>
3232 </properties >
3333 <dependencies >
3434 <dependency >
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ private ArangoDBUtil() {
5858 static void checkDatabase (String database , ArangoDB arangoDB ) {
5959 Objects .requireNonNull (database , "database is required" );
6060 try {
61- Collection <String > databases = arangoDB .getDatabases ();
61+ Collection <String > databases = arangoDB .getAccessibleDatabases ();
6262 if (!databases .contains (database )) {
6363 arangoDB .createDatabase (database );
6464 }
Original file line number Diff line number Diff line change 1616
1717import org .eclipse .jnosql .communication .keyvalue .KeyValueConfiguration ;
1818import org .junit .jupiter .api .Assertions ;
19- import org .junit .jupiter .api .BeforeEach ;
2019import org .junit .jupiter .api .Test ;
2120
2221public class ArangoDBConfigurationTest {
2322
24- private ArangoDBKeyValueConfiguration configuration ;
25-
26- @ BeforeEach
27- public void setUp () {
28- configuration = new ArangoDBKeyValueConfiguration ();
29- }
3023
3124
3225 @ Test
@@ -43,4 +36,4 @@ public void shouldReturnFromConfigurationQuery() {
4336 Assertions .assertNotNull (configuration );
4437 Assertions .assertTrue (configuration instanceof ArangoDBKeyValueConfiguration );
4538 }
46- }
39+ }
Original file line number Diff line number Diff line change 2424import org .eclipse .jnosql .communication .semistructured .Elements ;
2525import org .eclipse .jnosql .communication .semistructured .SelectQuery ;
2626import org .junit .jupiter .api .AfterEach ;
27- import org .junit .jupiter .api .Assertions ;
2827import org .junit .jupiter .api .BeforeEach ;
2928import org .junit .jupiter .api .Test ;
3029import org .junit .jupiter .api .condition .EnabledIfSystemProperty ;
Original file line number Diff line number Diff line change 4242public class ArangoDBKeyValueEntityManagerTest {
4343 private BucketManager keyValueEntityManager ;
4444
45- private BucketManagerFactory keyValueEntityManagerFactory ;
46-
4745 private User userOtavio = new User ("otavio" );
4846 private KeyValueEntity keyValueOtavio = KeyValueEntity .of ("otavio" , Value .of (userOtavio ));
4947
@@ -52,7 +50,7 @@ public class ArangoDBKeyValueEntityManagerTest {
5250
5351 @ BeforeEach
5452 public void init () {
55- keyValueEntityManagerFactory = KeyvalueDatabase .INSTANCE .get ();
53+ BucketManagerFactory keyValueEntityManagerFactory = KeyvalueDatabase .INSTANCE .get ();
5654 keyValueEntityManager = keyValueEntityManagerFactory .apply ("users-entity" );
5755 }
5856
@@ -129,4 +127,4 @@ void getArangoDB() {
129127 assertThat (adb .getVersion ()).isNotNull ();
130128 }
131129
132- }
130+ }
Original file line number Diff line number Diff line change 1818import org .eclipse .jnosql .communication .semistructured .SelectQuery ;
1919import org .junit .jupiter .api .Test ;
2020
21- import java .util .List ;
2221import java .util .Map ;
2322
2423import static org .eclipse .jnosql .communication .semistructured .SelectQuery .select ;
@@ -156,4 +155,4 @@ public void shouldNegate() {
156155
157156 }
158157
159- }
158+ }
You can’t perform that action at this time.
0 commit comments