@@ -34,7 +34,7 @@ public void deleteGraph() {
3434
3535 @ Test
3636 public void testSyntaxErrorReporting () {
37- exceptionRule .expect (JRedisGraphCompileTimeException .class );
37+ exceptionRule .expect (JRedisGraphException .class );
3838 exceptionRule .expectMessage ("Type mismatch: expected String but was Integer" );
3939
4040 // Issue a query that causes a compile-time error
@@ -44,7 +44,7 @@ public void testSyntaxErrorReporting() {
4444
4545 @ Test
4646 public void testRuntimeErrorReporting () {
47- exceptionRule .expect (JRedisGraphRunTimeException .class );
47+ exceptionRule .expect (JRedisGraphException .class );
4848 exceptionRule .expectMessage ("Type mismatch: expected String but was Integer" );
4949
5050 // Issue a query that causes a run-time error
@@ -59,7 +59,7 @@ public void testExceptionFlow() {
5959 api .query ("social" , "RETURN toUpper(5)" );
6060 }
6161 catch (Exception e ) {
62- Assert .assertEquals (JRedisGraphCompileTimeException .class , e .getClass ());
62+ Assert .assertEquals (JRedisGraphException .class , e .getClass ());
6363 Assert .assertTrue ( e .getMessage ().contains ("Type mismatch: expected String but was Integer" ));
6464 }
6565
@@ -70,7 +70,7 @@ public void testExceptionFlow() {
7070 api .query ("social" , "MATCH (p:person) RETURN toUpper(p.mixed_prop)" );
7171 }
7272 catch (Exception e ) {
73- Assert .assertEquals (JRedisGraphRunTimeException .class , e .getClass ());
73+ Assert .assertEquals (JRedisGraphException .class , e .getClass ());
7474 Assert .assertTrue ( e .getMessage ().contains ("Type mismatch: expected String but was Integer" ));
7575 }
7676
@@ -79,7 +79,7 @@ public void testExceptionFlow() {
7979
8080 @ Test
8181 public void testContextSyntaxErrorReporting () {
82- exceptionRule .expect (JRedisGraphCompileTimeException .class );
82+ exceptionRule .expect (JRedisGraphException .class );
8383 exceptionRule .expectMessage ("Type mismatch: expected String but was Integer" );
8484 RedisGraphContext c = api .getContext ();
8585
@@ -90,21 +90,21 @@ public void testContextSyntaxErrorReporting() {
9090
9191 @ Test
9292 public void testMissingParametersSyntaxErrorReporting (){
93- exceptionRule .expect (JRedisGraphRunTimeException .class );
93+ exceptionRule .expect (JRedisGraphException .class );
9494 exceptionRule .expectMessage ("Missing parameters" );
9595 api .query ("social" ,"RETURN $param" );
9696 }
9797
9898 @ Test
9999 public void testMissingParametersSyntaxErrorReporting2 (){
100- exceptionRule .expect (JRedisGraphRunTimeException .class );
100+ exceptionRule .expect (JRedisGraphException .class );
101101 exceptionRule .expectMessage ("Missing parameters" );
102102 api .query ("social" ,"RETURN $param" , new HashMap <>());
103103 }
104104
105105 @ Test
106106 public void testContextRuntimeErrorReporting () {
107- exceptionRule .expect (JRedisGraphRunTimeException .class );
107+ exceptionRule .expect (JRedisGraphException .class );
108108 exceptionRule .expectMessage ("Type mismatch: expected String but was Integer" );
109109
110110 RedisGraphContext c = api .getContext ();
@@ -122,7 +122,7 @@ public void testContextExceptionFlow() {
122122 c .query ("social" , "RETURN toUpper(5)" );
123123 }
124124 catch (Exception e ) {
125- Assert .assertEquals (JRedisGraphCompileTimeException .class , e .getClass ());
125+ Assert .assertEquals (JRedisGraphException .class , e .getClass ());
126126 Assert .assertTrue ( e .getMessage ().contains ("Type mismatch: expected String but was Integer" ));
127127 }
128128
@@ -133,15 +133,15 @@ public void testContextExceptionFlow() {
133133 c .query ("social" , "MATCH (p:person) RETURN toUpper(p.mixed_prop)" );
134134 }
135135 catch (Exception e ) {
136- Assert .assertEquals (JRedisGraphRunTimeException .class , e .getClass ());
136+ Assert .assertEquals (JRedisGraphException .class , e .getClass ());
137137 Assert .assertTrue ( e .getMessage ().contains ("Type mismatch: expected String but was Integer" ));
138138 }
139139
140140 }
141141
142142 @ Test
143143 public void timeoutExcpetion () {
144- exceptionRule .expect (JRedisGraphRunTimeException .class );
144+ exceptionRule .expect (JRedisGraphException .class );
145145 exceptionRule .expectMessage ("Query timed out" );
146146
147147 api .query ("social" , "UNWIND range(0,100000) AS x WITH x AS x WHERE x = 10000 RETURN x" , 1L );
0 commit comments