@Test public void testError() { Resource resource = Mockito.spy(context.resourceResolver().getResource("/content/pageG")); MagentoGraphqlClient client = MagentoGraphqlClient.create(resource); Assert.assertNull(client); }
public static MagentoGraphqlClient create(Resource resource) { PageManager pageManager = resource.adaptTo(PageManager.class); return create(resource, pageManager != null ? pageManager.getContainingPage(resource) : null); }
MagentoGraphqlClient { public static MagentoGraphqlClient create(Resource resource) { PageManager pageManager = resource.adaptTo(PageManager.class); return create(resource, pageManager != null ? pageManager.getContainingPage(resource) : null); } }
MagentoGraphqlClient { public static MagentoGraphqlClient create(Resource resource) { PageManager pageManager = resource.adaptTo(PageManager.class); return create(resource, pageManager != null ? pageManager.getContainingPage(resource) : null); } private  MagentoGraphqlClient(Resource resource, Page page); }
MagentoGraphqlClient { public static MagentoGraphqlClient create(Resource resource) { PageManager pageManager = resource.adaptTo(PageManager.class); return create(resource, pageManager != null ? pageManager.getContainingPage(resource) : null); } private  MagentoGraphqlClient(Resource resource, Page page); static MagentoGraphqlClient create(Resource resource); static MagentoGraphqlClient create(Resource resource, Page page); GraphqlResponse<Query, Error> execute(String query); GraphqlResponse<Query, Error> execute(String query, HttpMethod httpMethod); }
MagentoGraphqlClient { public static MagentoGraphqlClient create(Resource resource) { PageManager pageManager = resource.adaptTo(PageManager.class); return create(resource, pageManager != null ? pageManager.getContainingPage(resource) : null); } private  MagentoGraphqlClient(Resource resource, Page page); static MagentoGraphqlClient create(Resource resource); static MagentoGraphqlClient create(Resource resource, Page page); GraphqlResponse<Query, Error> execute(String query); GraphqlResponse<Query, Error> execute(String query, HttpMethod httpMethod); static final String STORE_CODE_PROPERTY; static final String CONFIGURATION_NAME; }