Replace QL with Ql for consistency with Spring naming
This commit is contained in:
@@ -21,7 +21,7 @@ import org.junit.jupiter.api.Test;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc;
|
||||
import org.springframework.boot.test.context.SpringBootTest;
|
||||
import org.springframework.graphql.test.tester.GraphQLTester;
|
||||
import org.springframework.graphql.test.tester.GraphQlTester;
|
||||
import org.springframework.test.web.reactive.server.WebTestClient;
|
||||
import org.springframework.test.web.servlet.MockMvc;
|
||||
import org.springframework.test.web.servlet.client.MockMvcWebTestClient;
|
||||
@@ -33,15 +33,15 @@ import static org.assertj.core.api.Assertions.assertThat;
|
||||
*/
|
||||
@SpringBootTest
|
||||
@AutoConfigureMockMvc
|
||||
public class MockMvcGraphQLTests {
|
||||
public class MockMvcGraphQlTests {
|
||||
|
||||
private GraphQLTester graphQLTester;
|
||||
private GraphQlTester graphQlTester;
|
||||
|
||||
|
||||
@BeforeEach
|
||||
public void setUp(@Autowired MockMvc mockMvc) {
|
||||
WebTestClient client = MockMvcWebTestClient.bindTo(mockMvc).baseUrl("/graphql").build();
|
||||
this.graphQLTester = GraphQLTester.create(client);
|
||||
this.graphQlTester = GraphQlTester.create(client);
|
||||
}
|
||||
|
||||
|
||||
@@ -55,7 +55,7 @@ public class MockMvcGraphQLTests {
|
||||
" }" +
|
||||
"}";
|
||||
|
||||
this.graphQLTester.query(query)
|
||||
this.graphQlTester.query(query)
|
||||
.execute()
|
||||
.path("project.releases[*].version")
|
||||
.entityList(String.class)
|
||||
@@ -71,7 +71,7 @@ public class MockMvcGraphQLTests {
|
||||
" }" +
|
||||
"}";
|
||||
|
||||
this.graphQLTester.query(query)
|
||||
this.graphQlTester.query(query)
|
||||
.execute()
|
||||
.path("project")
|
||||
.matchesJson("{\"repositoryUrl\":\"http://github.com/spring-projects/spring-framework\"}");
|
||||
@@ -87,7 +87,7 @@ public class MockMvcGraphQLTests {
|
||||
" }" +
|
||||
"}";
|
||||
|
||||
this.graphQLTester.query(query)
|
||||
this.graphQlTester.query(query)
|
||||
.execute()
|
||||
.path("project")
|
||||
.entity(Project.class)
|
||||
Reference in New Issue
Block a user