Package org.apache.sling.launchpad.webapp.integrationtest
The tests found in and under this package are used in the "integration-test" build phase (SLING-82), they are not run as part of the normal "test" build phase.
To debug the integration tests, however, it is useful to run them as part of the normal test phase, after starting a separate Sling instance that they can talk to.
This is implemented using Maven profiles: to run the integration
tests during the normal test phase, disable the "disableIntegrationTestsInTestPhase"
Maven profile, for example using mvn -P nullUslingProfile test
.
See pom.xml for more details.
-
Class Summary Class Description AbstractSlingResourceTypeRenderingTest Base abstract test for creating a Node and rendering it using scripts in various supported languages, using slingResourceType-based script resolutionAuthenticatedTestUtil Utility class for tests which use authentication.BundleContentTest ContentLoaderMiscPropertyTest Test that property types are supported in initial content.CreateNodeTest Test creating a Node using the MicroslingIntegrationTestClientDavExDisabledAnonAccessTest Test that the repository is accessible via DavEx when anonymous access is disabled.DavExIntegrationTest Test of DavexEspLoadTest Test the SLING-428 esp load functionEventsCounterTest Test the EventsCounter servlet and underlying events subsystemsExecuteScriptTest Test the executeScript test methodExportedPackagesTest FileUploadTest Test uploading files to the Sling repository via WebDAV, as a first step towards testing the complete content creation and rendering scenario.FiltersTest FiltersTest2 ForwardTest Test the {link ScriptHelper#forward) functionalityGeneratedNodeNameTest Test the generation of node names for POST requests to URLS ending in / *GeneratedNodeNameTestStar Test the generation of node names for POST requests to URLS ending in / *GetStarTest A GET to *.html and *.json must work even if there is no Node at the specified path (SLING-344)GetWithSuffixTest GET requests with a suffix should fail with a 404, otherwise we get a lot of extra possible URLs which point to the same content.HttpPingTest Ping the Sling server to verify that our integration test setup is ok.ImmediateScriptActivationTest Upload many different scripts in sequence and verify that they are immediately available to render content.IncludeTest Test the {link ScriptHelper#include) functionalityInitialContentTest JavascriptWrappersTest Test Scriptable objectsJsonRenderingTest Test creating Nodes and rendering them in JSONJspForwardTest Test the {link ScriptHelper#forward) functionalityJspIncludeTest Test the {link ScriptHelper#include) functionalityJspScriptingTest Test JSP scripting TODO this class can be generalized to be used for any scripting language, that would help in testing all scripting engines.LaunchpadConfigInstallerTest Verify that the test config is installedMappingEventsProxyTest Run the server-side MappingEventsTestMiscUnsafeTest The MiscUnsafeTest verifies that the sun.misc.Unsafe class can be loadedMkdirTest Test the MicroslingIntegrationTestClient's mkdir functionsNodeTypeBasedRenderingTest Test rendering resources based on their JCR node typeNodetypeRenderingTest Test creating a Node and rendering it using scripts in various supported languages, using nodetype-based script resolutionPostRedirectTest Test the various redirect options for POST, SLING-126PropertyRenderingTest Test the rendering of JCR Properties, directly addressed by URLs.RangeStreamingTest TheRangeStreamingTest
tests the Range request header support for the StreamRendererServlet introduced with SLING-1814RedirectTest Test redirectsRenderingTestBase Base class for rendering testsRequestAttributeTest Test the "org.apache.sling.api.include.servlet" and "org.apache.sling.api.include.resource" request attributes with the {link ScriptHelper#include) functionalityResourceDecoratorTest ResourceSuperTypeTest Test resource supertypesScriptBindingsValuesProviderTest ScriptBuiltinObjectsTest ServerSideScriptsTest Execute all server-side test scripts found in a specified (class) resource folder.ServletResolverConfigTest Verify that the ServletResolver cache is disabled for testingSlingResourceTypeRenderingTest Test creating a Node and rendering it using scripts in various supported languages, using slingResourceType-based script resolutionSlingWebDavServletTest StaticContentTest Some tests about static contentStreamServletTest Test the streaming of static files uploaded to the repositorySyntheticResourceTest Test the SLING-129SyntheticResource
, by requesting non-existent Nodes..UploadFileTest Test uploading files using the Sling post servlet (SLING-168)ValueFromTest Test the @ValueFrom field name suffix, SLING-130VanityPathTest Tests of the sling:VanityPath mixin support.VersionInfoServletTest VersionParameterTest WebdavDeleteTest WebDavDoubleSlashTest Clarify the behavior of a double slash in a Sling WebDAV URLWebdavOptionsTest Test WebDAV upload of various file typesWebdavUploadTest Test WebDAV upload of various file typesWriteableResourcesProxyTest Run the server-side WriteableResourcesTest