File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed
nifi/cql-processor/nifi-cql-processors/src/test/java/org/george0st/processors/cql Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -92,4 +92,28 @@ public void testRead100K() throws Exception {
92
92
}
93
93
}
94
94
95
+ @ Test
96
+ public void testRead150K () throws Exception {
97
+ MockFlowFile result ;
98
+
99
+ // Prepare data for performance test
100
+ PutCQLPerformance putCQL = new PutCQLPerformance ();
101
+ putCQL .init ();
102
+ putCQL .csvRandomWrite150K ();
103
+
104
+ // sleep before read (2 seconds)
105
+ Thread .sleep (2000 );
106
+
107
+ // Read data
108
+ for (TestSetupRead setup : setups ) {
109
+ setup .columnNames ="colbigint, colint" ;
110
+
111
+ result = runTest (setup );
112
+
113
+ // check amount of read items
114
+ assertNotNull (result , String .format ("Issue with processing in '%s'" , setup .name ));
115
+ assertEquals (150_000 , Long .parseLong (result .getAttribute (CQLAttributes .READ_COUNT )));
116
+ }
117
+ }
118
+
95
119
}
You can’t perform that action at this time.
0 commit comments