File tree Expand file tree Collapse file tree 2 files changed +10
-5
lines changed
src/test/java/com/arangodb Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -509,14 +509,14 @@ public void getCollections() {
509
509
public void getCollectionsExcludeSystem () {
510
510
try {
511
511
final CollectionsReadOptions options = new CollectionsReadOptions ().excludeSystem (true );
512
- final Collection <CollectionEntity > systemCollections = db .getCollections (options );
512
+ final Collection <CollectionEntity > nonSystemCollections = db .getCollections (options );
513
513
514
- assertThat (systemCollections .size (), is (0 ));
514
+ assertThat (nonSystemCollections .size (), is (0 ));
515
515
db .createCollection (COLLECTION_NAME + "1" , null );
516
516
db .createCollection (COLLECTION_NAME + "2" , null );
517
- final Collection <CollectionEntity > collections = db .getCollections (options );
518
- assertThat (collections .size (), is (2 ));
519
- assertThat (collections , is (notNullValue ()));
517
+ final Collection <CollectionEntity > newCollections = db .getCollections (options );
518
+ assertThat (newCollections .size (), is (2 ));
519
+ assertThat (newCollections , is (notNullValue ()));
520
520
} catch (final ArangoDBException e ) {
521
521
System .out .println (e .getErrorMessage ());
522
522
} finally {
Original file line number Diff line number Diff line change 33
33
import java .util .Iterator ;
34
34
35
35
import org .junit .After ;
36
+ import org .junit .AfterClass ;
36
37
import org .junit .Before ;
37
38
import org .junit .Test ;
38
39
import org .junit .runner .RunWith ;
@@ -288,4 +289,8 @@ public void dropPlusDropCollections() {
288
289
assertThat (db .collection (vertexCollection ).exists (), is (false ));
289
290
}
290
291
292
+ @ AfterClass
293
+ public static void shutdown () {
294
+ db .drop ();
295
+ }
291
296
}
You can’t perform that action at this time.
0 commit comments