2424import java .util .Iterator ;
2525import java .util .List ;
2626
27- import com .google .common .collect .ImmutableList ;
2827import org .apache .commons .configuration2 .BaseConfiguration ;
2928import org .apache .commons .configuration2 .Configuration ;
3029import org .apache .commons .configuration2 .PropertiesConfiguration ;
3635
3736import com .baidu .hugegraph .HugeException ;
3837import com .baidu .hugegraph .HugeGraph ;
39- import com .baidu .hugegraph .backend .BackendException ;
4038import com .baidu .hugegraph .backend .id .IdGenerator ;
4139import com .baidu .hugegraph .backend .store .BackendStoreInfo ;
4240import com .baidu .hugegraph .backend .store .rocksdb .RocksDBOptions ;
4341import com .baidu .hugegraph .config .CoreOptions ;
42+ import com .baidu .hugegraph .exception .ConnectionException ;
4443import com .baidu .hugegraph .exception .ExistedException ;
4544import com .baidu .hugegraph .schema .EdgeLabel ;
4645import com .baidu .hugegraph .schema .IndexLabel ;
5049import com .baidu .hugegraph .testutil .Assert ;
5150import com .baidu .hugegraph .testutil .Utils ;
5251import com .baidu .hugegraph .type .define .NodeRole ;
52+ import com .google .common .collect .ImmutableList ;
5353
5454public class MultiGraphsTest {
5555
@@ -333,7 +333,7 @@ public void testCreateGraphsWithMultiDisksForRocksDB() {
333333 g1 .clearBackend ();
334334
335335 final HugeGraph [] g2 = new HugeGraph [1 ];
336- Assert .assertThrows (BackendException .class , () -> {
336+ Assert .assertThrows (ConnectionException .class , () -> {
337337 g2 [0 ] = openGraphWithBackend ("g2" , "rocksdb" , "binary" ,
338338 "rocksdb.data_disks" ,
339339 "[g/range_int_index:rocksdb-index1]" );
@@ -348,7 +348,7 @@ public void testCreateGraphsWithMultiDisksForRocksDB() {
348348 });
349349
350350 final HugeGraph [] g3 = new HugeGraph [1 ];
351- Assert .assertThrows (BackendException .class , () -> {
351+ Assert .assertThrows (ConnectionException .class , () -> {
352352 g3 [0 ] = openGraphWithBackend ("g3" , "rocksdb" , "binary" ,
353353 "rocksdb.data_disks" ,
354354 "[g/secondary_index:/]" );
0 commit comments