import static org.mockito.Mockito.mock;
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(classes = {TestModule.class})
public class SpringDataFetcherFactoryTest {
@Autowired
<BUG>ApplicationContext context;
@GraphQLSpringELDataFetcher(value="@echoBean.echo('Hello World!')")</BUG>
String fieldTest = "Invalid Value!";
@GraphQLSpringELDataFetcher("@echoBean.echo(#param1, #param2)")
<BUG>public String getData(@GraphQLParam(name="param1") String param1, @GraphQLParam(name="param2") Integer param2) {
</BUG>
return "data value";

import static org.mockito.Mockito.mock;
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(classes = {TestModule.class})
public class SpringDataFetcherFactoryTest {
@Autowired
ApplicationContext context;
public class SpringDataFetcherTest {
@GraphQLSpringELDataFetcher(value="@echoBean.echo('Hello World!')")
String fieldTest = "Invalid Value!";
@GraphQLSpringELDataFetcher("@echoBean.echo(#param1, #param2)")
public String getData(@GraphQLParam(name = "param1") String param1, @GraphQLParam(name = "param2") Integer param2) {
return "data value";
