49
49
import org .geotools .api .referencing .crs .CoordinateReferenceSystem ;
50
50
import org .geotools .data .neo4j .Neo4jFeatureBuilder ;
51
51
import org .geotools .referencing .crs .DefaultEngineeringCRS ;
52
- import org .junit .After ;
53
- import org .junit .AfterClass ;
54
- import org .junit .Before ;
55
- import org .junit .Ignore ;
56
- import org .junit .Test ;
52
+ import org .junit .jupiter . api . AfterAll ;
53
+ import org .junit .jupiter . api . AfterEach ;
54
+ import org .junit .jupiter . api . BeforeEach ;
55
+ import org .junit .jupiter . api . Disabled ;
56
+ import org .junit .jupiter . api . Test ;
57
57
import org .locationtech .jts .geom .Coordinate ;
58
58
import org .locationtech .jts .geom .Geometry ;
59
59
import org .neo4j .dbms .api .DatabaseManagementService ;
@@ -94,17 +94,17 @@ public class RTreeBulkInsertTest {
94
94
// While the current lucene index implmentation is so slow (16n/s) we disable all benchmarks for lucene backed indexes
95
95
private static final boolean enableLucene = false ;
96
96
97
- @ Before
97
+ @ BeforeEach
98
98
public void before () throws IOException {
99
99
restart ();
100
100
}
101
101
102
- @ After
102
+ @ AfterEach
103
103
public void after () throws IOException {
104
104
doCleanShutdown ();
105
105
}
106
106
107
- @ Ignore
107
+ @ Disabled
108
108
public void shouldDeleteRecursiveTree () {
109
109
int depth = 5 ;
110
110
int width = 2 ;
@@ -185,7 +185,7 @@ private EditableLayer getOrCreateSimplePointLayer(String name, String index, Str
185
185
}
186
186
}
187
187
188
- @ Ignore
188
+ @ Disabled
189
189
public void shouldInsertSimpleRTree () {
190
190
int width = 20 ;
191
191
int blockSize = 10000 ;
@@ -603,12 +603,12 @@ public void shouldInsertManyNodesInBulkWithHilbert_small() throws FactoryExcepti
603
603
insertManyNodesInBulk (new HilbertIndexMaker ("Coordinates" , "Bulk" , testConfigs .get ("small" )), 5000 );
604
604
}
605
605
606
- @ Ignore // takes too long, change to @Test when benchmarking
606
+ @ Disabled // takes too long, change to @Test when benchmarking
607
607
public void shouldInsertManyNodesIndividuallyWithQuadraticSplit_small_10 () throws FactoryException , IOException {
608
608
insertManyNodesIndividually (RTreeIndex .QUADRATIC_SPLIT , 5000 , 10 , testConfigs .get ("small" ));
609
609
}
610
610
611
- @ Ignore // takes too long, change to @Test when benchmarking
611
+ @ Disabled // takes too long, change to @Test when benchmarking
612
612
public void shouldInsertManyNodesIndividuallyGreenesSplit_small_10 () throws FactoryException , IOException {
613
613
insertManyNodesIndividually (RTreeIndex .GREENES_SPLIT , 5000 , 10 , testConfigs .get ("small" ));
614
614
}
@@ -627,12 +627,12 @@ public void shouldInsertManyNodesInBulkWithGreenesSplit_small_10() throws Factor
627
627
* Small model 250*250 nodes (shallow tree)
628
628
*/
629
629
630
- @ Ignore // takes too long, change to @Test when benchmarking
630
+ @ Disabled // takes too long, change to @Test when benchmarking
631
631
public void shouldInsertManyNodesIndividuallyWithQuadraticSplit_small_100 () throws FactoryException , IOException {
632
632
insertManyNodesIndividually (RTreeIndex .QUADRATIC_SPLIT , 5000 , 100 , testConfigs .get ("small" ));
633
633
}
634
634
635
- @ Ignore // takes too long, change to @Test when benchmarking
635
+ @ Disabled // takes too long, change to @Test when benchmarking
636
636
public void shouldInsertManyNodesIndividuallyGreenesSplit_small_100 () throws FactoryException , IOException {
637
637
insertManyNodesIndividually (RTreeIndex .GREENES_SPLIT , 5000 , 100 , testConfigs .get ("small" ));
638
638
}
@@ -681,12 +681,12 @@ public void shouldInsertManyNodesInBulkWithHilbert_medium() throws FactoryExcept
681
681
insertManyNodesInBulk (new HilbertIndexMaker ("Coordinates" , "Bulk" , testConfigs .get ("medium" )), 5000 );
682
682
}
683
683
684
- @ Ignore
684
+ @ Disabled
685
685
public void shouldInsertManyNodesIndividuallyWithQuadraticSplit_medium_10 () throws FactoryException , IOException {
686
686
insertManyNodesIndividually (RTreeIndex .QUADRATIC_SPLIT , 5000 , 10 , testConfigs .get ("medium" ));
687
687
}
688
688
689
- @ Ignore
689
+ @ Disabled
690
690
public void shouldInsertManyNodesIndividuallyGreenesSplit_medium_10 () throws FactoryException , IOException {
691
691
insertManyNodesIndividually (RTreeIndex .GREENES_SPLIT , 5000 , 10 , testConfigs .get ("medium" ));
692
692
}
@@ -701,12 +701,12 @@ public void shouldInsertManyNodesInBulkWithGreenesSplit_medium_10() throws Facto
701
701
insertManyNodesInBulk (RTreeIndex .GREENES_SPLIT , 5000 , 10 , testConfigs .get ("medium" ));
702
702
}
703
703
704
- @ Ignore
704
+ @ Disabled
705
705
public void shouldInsertManyNodesInBulkWithQuadraticSplit_medium_10_merge () throws FactoryException , IOException {
706
706
insertManyNodesInBulk (RTreeIndex .QUADRATIC_SPLIT , 5000 , 10 , testConfigs .get ("medium" ), true );
707
707
}
708
708
709
- @ Ignore
709
+ @ Disabled
710
710
public void shouldInsertManyNodesInBulkWithGreenesSplit_medium_10_merge () throws FactoryException , IOException {
711
711
insertManyNodesInBulk (RTreeIndex .GREENES_SPLIT , 5000 , 10 , testConfigs .get ("medium" ), true );
712
712
}
@@ -715,17 +715,17 @@ public void shouldInsertManyNodesInBulkWithGreenesSplit_medium_10_merge() throws
715
715
* Medium model 500*500 nodes (shallow tree - factor 100)
716
716
*/
717
717
718
- @ Ignore
718
+ @ Disabled
719
719
public void shouldInsertManyNodesIndividuallyWithQuadraticSplit_medium_100 () throws FactoryException , IOException {
720
720
insertManyNodesIndividually (RTreeIndex .QUADRATIC_SPLIT , 5000 , 100 , testConfigs .get ("medium" ));
721
721
}
722
722
723
- @ Ignore
723
+ @ Disabled
724
724
public void shouldInsertManyNodesIndividuallyGreenesSplit_medium_100 () throws FactoryException , IOException {
725
725
insertManyNodesIndividually (RTreeIndex .GREENES_SPLIT , 5000 , 100 , testConfigs .get ("medium" ));
726
726
}
727
727
728
- @ Ignore // takes too long, change to @Test when benchmarking
728
+ @ Disabled // takes too long, change to @Test when benchmarking
729
729
public void shouldInsertManyNodesInBulkWithQuadraticSplit_medium_100 () throws FactoryException , IOException {
730
730
insertManyNodesInBulk (RTreeIndex .QUADRATIC_SPLIT , 5000 , 100 , testConfigs .get ("medium" ));
731
731
}
@@ -735,12 +735,12 @@ public void shouldInsertManyNodesInBulkWithGreenesSplit_medium_100() throws Fact
735
735
insertManyNodesInBulk (RTreeIndex .GREENES_SPLIT , 5000 , 100 , testConfigs .get ("medium" ));
736
736
}
737
737
738
- @ Ignore
738
+ @ Disabled
739
739
public void shouldInsertManyNodesInBulkWithQuadraticSplit_medium_100_merge () throws FactoryException , IOException {
740
740
insertManyNodesInBulk (RTreeIndex .QUADRATIC_SPLIT , 5000 , 100 , testConfigs .get ("medium" ), true );
741
741
}
742
742
743
- @ Ignore
743
+ @ Disabled
744
744
public void shouldInsertManyNodesInBulkWithGreenesSplit_medium_100_merge () throws FactoryException , IOException {
745
745
insertManyNodesInBulk (RTreeIndex .GREENES_SPLIT , 5000 , 100 , testConfigs .get ("medium" ), true );
746
746
}
@@ -779,22 +779,22 @@ public void shouldInsertManyNodesInBulkWithHilbert_large() throws FactoryExcepti
779
779
insertManyNodesInBulk (new HilbertIndexMaker ("Coordinates" , "Bulk" , testConfigs .get ("large" )), 5000 );
780
780
}
781
781
782
- @ Ignore // takes too long, change to @Test when benchmarking
782
+ @ Disabled // takes too long, change to @Test when benchmarking
783
783
public void shouldInsertManyNodesInBulkWithQuadraticSplit_large_10 () throws FactoryException , IOException {
784
784
insertManyNodesInBulk (RTreeIndex .QUADRATIC_SPLIT , 5000 , 10 , testConfigs .get ("large" ));
785
785
}
786
786
787
- @ Ignore // takes too long, change to @Test when benchmarking
787
+ @ Disabled // takes too long, change to @Test when benchmarking
788
788
public void shouldInsertManyNodesInBulkWithGreenesSplit_large_10 () throws FactoryException , IOException {
789
789
insertManyNodesInBulk (RTreeIndex .GREENES_SPLIT , 5000 , 10 , testConfigs .get ("large" ));
790
790
}
791
791
792
- @ Ignore // takes too long, change to @Test when benchmarking
792
+ @ Disabled // takes too long, change to @Test when benchmarking
793
793
public void shouldInsertManyNodesInBulkWithQuadraticSplit_large_100 () throws FactoryException , IOException {
794
794
insertManyNodesInBulk (RTreeIndex .QUADRATIC_SPLIT , 5000 , 100 , testConfigs .get ("large" ));
795
795
}
796
796
797
- @ Ignore // takes too long, change to @Test when benchmarking
797
+ @ Disabled // takes too long, change to @Test when benchmarking
798
798
public void shouldInsertManyNodesInBulkWithGreenesSplit_large_100 () throws FactoryException , IOException {
799
799
insertManyNodesInBulk (RTreeIndex .GREENES_SPLIT , 5000 , 100 , testConfigs .get ("large" ));
800
800
}
@@ -916,7 +916,7 @@ private void insertManyNodesIndividually(IndexMaker indexMaker, int blockSize) {
916
916
* Run this manually to generate images of RTree that can be used for animation.
917
917
* ffmpeg -f image2 -r 12 -i rtree-single/rtree-%d.png -r 12 -s 1280x960 rtree-single2_12fps.mp4
918
918
*/
919
- @ Ignore
919
+ @ Disabled
920
920
public void shouldInsertManyNodesIndividuallyAndGenerateImagesForAnimation () throws FactoryException , IOException {
921
921
IndexTestConfig config = testConfigs .get ("medium" );
922
922
int blockSize = 5 ;
@@ -1029,7 +1029,7 @@ private void insertManyNodesInBulk(IndexMaker indexMaker, int blockSize) {
1029
1029
* Run this manually to generate images of RTree that can be used for animation.
1030
1030
* ffmpeg -f image2 -r 12 -i rtree-single/rtree-%d.png -r 12 -s 1280x960 rtree-single2_12fps.mp4
1031
1031
*/
1032
- @ Ignore
1032
+ @ Disabled
1033
1033
public void shouldInsertManyNodesInBulkAndGenerateImagesForAnimation () throws FactoryException , IOException {
1034
1034
IndexTestConfig config = testConfigs .get ("medium" );
1035
1035
int blockSize = 1000 ;
@@ -1085,7 +1085,7 @@ public void shouldInsertManyNodesInBulkAndGenerateImagesForAnimation() throws Fa
1085
1085
// debugIndexTree((RTreeIndex) layer.getIndex());
1086
1086
}
1087
1087
1088
- @ Ignore
1088
+ @ Disabled
1089
1089
public void shouldAccessIndexAfterBulkInsertion () throws Exception {
1090
1090
// Use these two lines if you want to examine the output.
1091
1091
// File dbPath = new File("target/var/BulkTest");
@@ -1159,7 +1159,7 @@ public void shouldAccessIndexAfterBulkInsertion() throws Exception {
1159
1159
System .out .println ("\t " + (System .currentTimeMillis () - start ) + "ms" );
1160
1160
}
1161
1161
1162
- @ Ignore
1162
+ @ Disabled
1163
1163
public void shouldBuildTreeFromScratch () throws Exception {
1164
1164
//GraphDatabaseService db = this.databases.database("BultTest2");
1165
1165
GraphDatabaseService db = this .db ;
@@ -1215,7 +1215,7 @@ public void shouldBuildTreeFromScratch() throws Exception {
1215
1215
}
1216
1216
}
1217
1217
1218
- @ Ignore
1218
+ @ Disabled
1219
1219
public void shouldPerformRTreeBulkInsertion () throws Exception {
1220
1220
// Use this line if you want to examine the output.
1221
1221
//GraphDatabaseService db = databases.database("BulkTest");
@@ -1803,7 +1803,7 @@ public String toString() {
1803
1803
1804
1804
private static final LinkedHashSet <TestStats > allStats = new LinkedHashSet <>();
1805
1805
1806
- @ AfterClass
1806
+ @ AfterAll
1807
1807
public static void afterClass () {
1808
1808
System .out .println ("\n \n Composite stats for " + allStats .size () + " tests run" );
1809
1809
System .out .println (TestStats .headerString ());
0 commit comments