Skip to content

Commit 34e44d3

Browse files
committed
fix cr notes
1 parent 88caa41 commit 34e44d3

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

src/test/java/graphql/annotations/directives/DirectiveWirerTest.java

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222

2323
import java.util.HashMap;
2424

25-
import static graphql.Scalars.GraphQLInt;
2625
import static graphql.Scalars.GraphQLString;
2726
import static graphql.schema.GraphQLDirective.newDirective;
2827
import static org.mockito.Mockito.*;
@@ -69,7 +68,7 @@ public void wireFieldDefinition_validLocations_correctMethodIsCalled() throws Ex
6968
}
7069

7170
@Test(expectedExceptions = InvalidDirectiveLocationException.class)
72-
public void wireFieldDefinition_invalidLocations_exception() throws Exception {
71+
public void wireFieldDefinition_invalidLocations_exceptionIsThrown() throws Exception {
7372
// Arrange
7473
AnnotationsDirectiveWiring upperWiring = mock(AnnotationsDirectiveWiring.class);
7574

@@ -114,7 +113,7 @@ public void wireGraphQLObjectType_validLocations_correctMethodIsCalled() throws
114113
}
115114

116115
@Test(expectedExceptions = InvalidDirectiveLocationException.class)
117-
public void wireGraphQLObjectType_invalidLocations_exception() throws Exception {
116+
public void wireGraphQLObjectType_invalidLocations_exceptionIsThrown() throws Exception {
118117
// Arrange
119118
AnnotationsDirectiveWiring upperWiring = mock(AnnotationsDirectiveWiring.class);
120119

@@ -158,7 +157,7 @@ public void wireGraphQLArgument_validLocations_correctMethodIsCalled() throws Ex
158157
}
159158

160159
@Test(expectedExceptions = InvalidDirectiveLocationException.class)
161-
public void wireGraphQLArgument_invalidLocations_exception() throws Exception {
160+
public void wireGraphQLArgument_invalidLocations_exceptionIsThrown() throws Exception {
162161
// Arrange
163162
AnnotationsDirectiveWiring upperWiring = mock(AnnotationsDirectiveWiring.class);
164163

@@ -207,7 +206,7 @@ public GraphQLObjectType getType(TypeResolutionEnvironment env) {
207206
}
208207

209208
@Test(expectedExceptions = InvalidDirectiveLocationException.class)
210-
public void wireGraphQLInterfaceType_invalidLocations_exception() throws Exception {
209+
public void wireGraphQLInterfaceType_invalidLocations_exceptionIsThrown() throws Exception {
211210
// Arrange
212211
AnnotationsDirectiveWiring upperWiring = mock(AnnotationsDirectiveWiring.class);
213212

@@ -257,7 +256,7 @@ public void wireGraphQLUnionType_validLocations_correctMethodIsCalled() throws E
257256
}
258257

259258
@Test(expectedExceptions = InvalidDirectiveLocationException.class)
260-
public void wireGraphQLUnionType_invalidLocations_exception() throws Exception {
259+
public void wireGraphQLUnionType_invalidLocations_exceptionIsThrown() throws Exception {
261260
// Arrange
262261
AnnotationsDirectiveWiring upperWiring = mock(AnnotationsDirectiveWiring.class);
263262

@@ -303,7 +302,7 @@ public void wireGraphQLEnumType_validLocations_correctMethodIsCalled() throws Ex
303302
}
304303

305304
@Test(expectedExceptions = InvalidDirectiveLocationException.class)
306-
public void wireGraphQLEnumType_invalidLocations_exception() throws Exception {
305+
public void wireGraphQLEnumType_invalidLocations_exceptionIsThrown() throws Exception {
307306
// Arrange
308307
AnnotationsDirectiveWiring upperWiring = mock(AnnotationsDirectiveWiring.class);
309308

@@ -347,7 +346,7 @@ public void wireGraphQLEnumValueDefinition_validLocations_correctMethodIsCalled(
347346
}
348347

349348
@Test(expectedExceptions = InvalidDirectiveLocationException.class)
350-
public void wireGraphQLEnumValueDefinition_invalidLocations_exception() throws Exception {
349+
public void wireGraphQLEnumValueDefinition_invalidLocations_exceptionIsThrown() throws Exception {
351350
// Arrange
352351
AnnotationsDirectiveWiring upperWiring = mock(AnnotationsDirectiveWiring.class);
353352

@@ -391,7 +390,7 @@ public void wireGraphQLScalarType_validLocations_correctMethodIsCalled() throws
391390
}
392391

393392
@Test(expectedExceptions = InvalidDirectiveLocationException.class)
394-
public void wireGraphQLScalarType_invalidLocations_exception() throws Exception {
393+
public void wireGraphQLScalarType_invalidLocations_exceptionIsThrown() throws Exception {
395394
// Arrange
396395
AnnotationsDirectiveWiring upperWiring = mock(AnnotationsDirectiveWiring.class);
397396

@@ -436,7 +435,7 @@ public void wireGraphQLInputObjectType_validLocations_correctMethodIsCalled() th
436435
}
437436

438437
@Test(expectedExceptions = InvalidDirectiveLocationException.class)
439-
public void wireGraphQLInputObjectType_invalidLocations_exception() throws Exception {
438+
public void wireGraphQLInputObjectType_invalidLocations_exceptionIsThrown() throws Exception {
440439
// Arrange
441440
AnnotationsDirectiveWiring upperWiring = mock(AnnotationsDirectiveWiring.class);
442441

@@ -482,7 +481,7 @@ public void wireGraphQLInputObjectField_validLocations_correctMethodIsCalled() t
482481
}
483482

484483
@Test(expectedExceptions = InvalidDirectiveLocationException.class)
485-
public void wireGraphQLInputObjectField_invalidLocations_exception() throws Exception {
484+
public void wireGraphQLInputObjectField_invalidLocations_exceptionIsThrown() throws Exception {
486485
// Arrange
487486
AnnotationsDirectiveWiring upperWiring = mock(AnnotationsDirectiveWiring.class);
488487

0 commit comments

Comments
 (0)