commit | 9d9982432ee1f0be580ea80be216529f7cc9fca2 | [log] [tgz] |
---|---|---|
author | Justin Edelson <justin@apache.org> | Mon Jan 25 19:32:39 2010 +0000 |
committer | Justin Edelson <justin@apache.org> | Mon Jan 25 19:32:39 2010 +0000 |
tree | 1c751277bf4b1afdc7664da731f7bc5b967790cc | |
parent | 2117519908f9e3d95dfe5c2e4e885e8f6184d617 [diff] |
SLING-1303 - switching esp test to use typeof as we're testing for an undefined value git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@902949 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/src/test/java/org/apache/sling/launchpad/webapp/integrationtest/ScriptBindingsValuesProviderTest.java b/src/test/java/org/apache/sling/launchpad/webapp/integrationtest/ScriptBindingsValuesProviderTest.java index 002991f..1a9c929 100644 --- a/src/test/java/org/apache/sling/launchpad/webapp/integrationtest/ScriptBindingsValuesProviderTest.java +++ b/src/test/java/org/apache/sling/launchpad/webapp/integrationtest/ScriptBindingsValuesProviderTest.java
@@ -52,7 +52,7 @@ final String content = getContent(displayUrl + ".html", CONTENT_TYPE_HTML); assertTrue("Content includes ESP marker (" + content + ")",content.contains("ESP template")); assertTrue("Content includes test text (" + content + ")", content.contains("Hello World!")); - assertFalse("Content doesn't include Groovy-specific test text (" + content + ")", content.contains("Hello World from Groovy!")); + assertTrue("Content doesn't include Groovy-specific test text (" + content + ")", content.contains("groovyHelloWorld:undefined")); } finally { testClient.delete(toDelete); }
diff --git a/src/test/resources/integration-test/bindingsprovided.esp b/src/test/resources/integration-test/bindingsprovided.esp index 9d32f0c..619c08a 100644 --- a/src/test/resources/integration-test/bindingsprovided.esp +++ b/src/test/resources/integration-test/bindingsprovided.esp
@@ -22,6 +22,6 @@ <body> <h1>ESP template</h1> <p>helloWorld:<%= helloWorld %></p> - <p>groovyHelloWorld:<%= groovyHelloWorld %></p> + <p>groovyHelloWorld:<%= typeof(groovyHelloWorld) %></p> </body> </html>