use of com.adobe.granite.ui.components.ds.DataSource in project aem-core-wcm-components by Adobe-Marketing-Cloud.
the class VariationsDataSourceServletTest method testComponentPathInvalid.
@Test
void testComponentPathInvalid() throws ServletException, IOException {
DataSource dataSource = getDataSource(servlet, DS_COMPONENT_PATH_INVALID);
assertDataSource(dataSource, new String[0], new String[0]);
}
use of com.adobe.granite.ui.components.ds.DataSource in project aem-core-wcm-components by Adobe-Marketing-Cloud.
the class VariationsDataSourceServletTest method testFragmentPathNonExisting.
@Test
void testFragmentPathNonExisting() throws ServletException, IOException {
DataSource dataSource = getDataSource(servlet, DS_FRAGMENT_PATH_NON_EXISTING);
assertDataSource(dataSource, new String[0], new String[0]);
}
use of com.adobe.granite.ui.components.ds.DataSource in project aem-core-wcm-components by Adobe-Marketing-Cloud.
the class VariationsDataSourceServletTest method testComponentPathInvalidFragmentPath.
@Test
void testComponentPathInvalidFragmentPath() throws ServletException, IOException {
DataSource dataSource = getDataSource(servlet, DS_COMPONENT_PATH_INVALID_FRAGMENT_PATH);
assertDataSource(dataSource, new String[0], new String[0]);
}
use of com.adobe.granite.ui.components.ds.DataSource in project aem-core-wcm-components by Adobe-Marketing-Cloud.
the class VariationsDataSourceServletTest method testFragmentPathOverride.
@Test
void testFragmentPathOverride() throws ServletException, IOException {
DataSource dataSource = getDataSource(servlet, DS_FRAGMENT_PATH_OVERRIDE);
assertDataSource(dataSource, VARIATION_NAMES, VARIATION_TITLES);
}
use of com.adobe.granite.ui.components.ds.DataSource in project aem-core-wcm-components by Adobe-Marketing-Cloud.
the class EmbeddableOptionsDataSourceServletTest method testEmbeddableOptionsDataSourceServlet.
@Test
public void testEmbeddableOptionsDataSourceServlet() {
dataSourceServlet.doGet(context.request(), context.response());
DataSource dataSource = (DataSource) context.request().getAttribute(DataSource.class.getName());
Assertions.assertNotNull(dataSource);
dataSource.iterator().forEachRemaining(Assertions::assertNotNull);
}
Aggregations