|
22 | 22 |
|
23 | 23 | import java.util.HashMap; |
24 | 24 |
|
25 | | -import static graphql.Scalars.GraphQLInt; |
26 | 25 | import static graphql.Scalars.GraphQLString; |
27 | 26 | import static graphql.schema.GraphQLDirective.newDirective; |
28 | 27 | import static org.mockito.Mockito.*; |
@@ -69,7 +68,7 @@ public void wireFieldDefinition_validLocations_correctMethodIsCalled() throws Ex |
69 | 68 | } |
70 | 69 |
|
71 | 70 | @Test(expectedExceptions = InvalidDirectiveLocationException.class) |
72 | | - public void wireFieldDefinition_invalidLocations_exception() throws Exception { |
| 71 | + public void wireFieldDefinition_invalidLocations_exceptionIsThrown() throws Exception { |
73 | 72 | // Arrange |
74 | 73 | AnnotationsDirectiveWiring upperWiring = mock(AnnotationsDirectiveWiring.class); |
75 | 74 |
|
@@ -114,7 +113,7 @@ public void wireGraphQLObjectType_validLocations_correctMethodIsCalled() throws |
114 | 113 | } |
115 | 114 |
|
116 | 115 | @Test(expectedExceptions = InvalidDirectiveLocationException.class) |
117 | | - public void wireGraphQLObjectType_invalidLocations_exception() throws Exception { |
| 116 | + public void wireGraphQLObjectType_invalidLocations_exceptionIsThrown() throws Exception { |
118 | 117 | // Arrange |
119 | 118 | AnnotationsDirectiveWiring upperWiring = mock(AnnotationsDirectiveWiring.class); |
120 | 119 |
|
@@ -158,7 +157,7 @@ public void wireGraphQLArgument_validLocations_correctMethodIsCalled() throws Ex |
158 | 157 | } |
159 | 158 |
|
160 | 159 | @Test(expectedExceptions = InvalidDirectiveLocationException.class) |
161 | | - public void wireGraphQLArgument_invalidLocations_exception() throws Exception { |
| 160 | + public void wireGraphQLArgument_invalidLocations_exceptionIsThrown() throws Exception { |
162 | 161 | // Arrange |
163 | 162 | AnnotationsDirectiveWiring upperWiring = mock(AnnotationsDirectiveWiring.class); |
164 | 163 |
|
@@ -207,7 +206,7 @@ public GraphQLObjectType getType(TypeResolutionEnvironment env) { |
207 | 206 | } |
208 | 207 |
|
209 | 208 | @Test(expectedExceptions = InvalidDirectiveLocationException.class) |
210 | | - public void wireGraphQLInterfaceType_invalidLocations_exception() throws Exception { |
| 209 | + public void wireGraphQLInterfaceType_invalidLocations_exceptionIsThrown() throws Exception { |
211 | 210 | // Arrange |
212 | 211 | AnnotationsDirectiveWiring upperWiring = mock(AnnotationsDirectiveWiring.class); |
213 | 212 |
|
@@ -257,7 +256,7 @@ public void wireGraphQLUnionType_validLocations_correctMethodIsCalled() throws E |
257 | 256 | } |
258 | 257 |
|
259 | 258 | @Test(expectedExceptions = InvalidDirectiveLocationException.class) |
260 | | - public void wireGraphQLUnionType_invalidLocations_exception() throws Exception { |
| 259 | + public void wireGraphQLUnionType_invalidLocations_exceptionIsThrown() throws Exception { |
261 | 260 | // Arrange |
262 | 261 | AnnotationsDirectiveWiring upperWiring = mock(AnnotationsDirectiveWiring.class); |
263 | 262 |
|
@@ -303,7 +302,7 @@ public void wireGraphQLEnumType_validLocations_correctMethodIsCalled() throws Ex |
303 | 302 | } |
304 | 303 |
|
305 | 304 | @Test(expectedExceptions = InvalidDirectiveLocationException.class) |
306 | | - public void wireGraphQLEnumType_invalidLocations_exception() throws Exception { |
| 305 | + public void wireGraphQLEnumType_invalidLocations_exceptionIsThrown() throws Exception { |
307 | 306 | // Arrange |
308 | 307 | AnnotationsDirectiveWiring upperWiring = mock(AnnotationsDirectiveWiring.class); |
309 | 308 |
|
@@ -347,7 +346,7 @@ public void wireGraphQLEnumValueDefinition_validLocations_correctMethodIsCalled( |
347 | 346 | } |
348 | 347 |
|
349 | 348 | @Test(expectedExceptions = InvalidDirectiveLocationException.class) |
350 | | - public void wireGraphQLEnumValueDefinition_invalidLocations_exception() throws Exception { |
| 349 | + public void wireGraphQLEnumValueDefinition_invalidLocations_exceptionIsThrown() throws Exception { |
351 | 350 | // Arrange |
352 | 351 | AnnotationsDirectiveWiring upperWiring = mock(AnnotationsDirectiveWiring.class); |
353 | 352 |
|
@@ -391,7 +390,7 @@ public void wireGraphQLScalarType_validLocations_correctMethodIsCalled() throws |
391 | 390 | } |
392 | 391 |
|
393 | 392 | @Test(expectedExceptions = InvalidDirectiveLocationException.class) |
394 | | - public void wireGraphQLScalarType_invalidLocations_exception() throws Exception { |
| 393 | + public void wireGraphQLScalarType_invalidLocations_exceptionIsThrown() throws Exception { |
395 | 394 | // Arrange |
396 | 395 | AnnotationsDirectiveWiring upperWiring = mock(AnnotationsDirectiveWiring.class); |
397 | 396 |
|
@@ -436,7 +435,7 @@ public void wireGraphQLInputObjectType_validLocations_correctMethodIsCalled() th |
436 | 435 | } |
437 | 436 |
|
438 | 437 | @Test(expectedExceptions = InvalidDirectiveLocationException.class) |
439 | | - public void wireGraphQLInputObjectType_invalidLocations_exception() throws Exception { |
| 438 | + public void wireGraphQLInputObjectType_invalidLocations_exceptionIsThrown() throws Exception { |
440 | 439 | // Arrange |
441 | 440 | AnnotationsDirectiveWiring upperWiring = mock(AnnotationsDirectiveWiring.class); |
442 | 441 |
|
@@ -482,7 +481,7 @@ public void wireGraphQLInputObjectField_validLocations_correctMethodIsCalled() t |
482 | 481 | } |
483 | 482 |
|
484 | 483 | @Test(expectedExceptions = InvalidDirectiveLocationException.class) |
485 | | - public void wireGraphQLInputObjectField_invalidLocations_exception() throws Exception { |
| 484 | + public void wireGraphQLInputObjectField_invalidLocations_exceptionIsThrown() throws Exception { |
486 | 485 | // Arrange |
487 | 486 | AnnotationsDirectiveWiring upperWiring = mock(AnnotationsDirectiveWiring.class); |
488 | 487 |
|
|
0 commit comments