You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by hl...@apache.org on 2007/02/08 01:44:43 UTC
svn commit: r504755 -
/tapestry/tapestry5/tapestry-core/trunk/src/test/java/org/apache/tapestry/integration/IntegrationTests.java
Author: hlship
Date: Wed Feb 7 16:44:43 2007
New Revision: 504755
URL: http://svn.apache.org/viewvc?view=rev&rev=504755
Log:
Turn off integration tests via a system property (while setting up continuous integration server)
Modified:
tapestry/tapestry5/tapestry-core/trunk/src/test/java/org/apache/tapestry/integration/IntegrationTests.java
Modified: tapestry/tapestry5/tapestry-core/trunk/src/test/java/org/apache/tapestry/integration/IntegrationTests.java
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/tapestry-core/trunk/src/test/java/org/apache/tapestry/integration/IntegrationTests.java?view=diff&rev=504755&r1=504754&r2=504755
==============================================================================
--- tapestry/tapestry5/tapestry-core/trunk/src/test/java/org/apache/tapestry/integration/IntegrationTests.java (original)
+++ tapestry/tapestry5/tapestry-core/trunk/src/test/java/org/apache/tapestry/integration/IntegrationTests.java Wed Feb 7 16:44:43 2007
@@ -42,6 +42,10 @@
{ "integration" })
public class IntegrationTests extends Assert
{
+
+ // TEMPORARY WHILE SETTING UP CONTINUOUS INTEGRATION
+ private static final boolean SKIP_TESTS = Boolean.getBoolean("skip-integration");
+
/** 60 seconds */
public static final String PAGE_LOAD_TIMEOUT = "600000";
@@ -58,6 +62,8 @@
@Test
public void any_component()
{
+ if (SKIP_TESTS)
+ return;
_selenium.open(BASE_URL);
@@ -75,6 +81,9 @@
@Test
public void assets() throws Exception
{
+ if (SKIP_TESTS)
+ return;
+
_selenium.open(BASE_URL);
clickAndWait("link=AssetDemo");
@@ -104,6 +113,9 @@
@Test
public void basic_output() throws Exception
{
+ if (SKIP_TESTS)
+ return;
+
_selenium.open(BASE_URL);
clickAndWait("link=Start Page");
@@ -126,6 +138,8 @@
@Test
public void basic_parameters() throws Exception
{
+ if (SKIP_TESTS)
+ return;
// OK ... this could be a separate test, but for efficiency, we'll mix it in here.
// It takes a while to start up Selenium RC (and a Firefox browser).
@@ -143,6 +157,9 @@
@Test
public void block_rendering() throws Exception
{
+ if (SKIP_TESTS)
+ return;
+
_selenium.open(BASE_URL);
clickAndWait("link=BlockDemo");
@@ -163,6 +180,9 @@
@Test
public void component_parameter_default_from_method() throws Exception
{
+ if (SKIP_TESTS)
+ return;
+
_selenium.open(BASE_URL);
clickAndWait("link=ParameterDefault");
@@ -172,6 +192,9 @@
@Test
public void embedded_components()
{
+ if (SKIP_TESTS)
+ return;
+
_selenium.open(BASE_URL);
clickAndWait("link=Countdown Page");
@@ -184,12 +207,18 @@
@Test
public void encoded_loop_inside_a_form()
{
+ if (SKIP_TESTS)
+ return;
+
test_loop_inside_form("ToDo List");
}
@Test
public void environmental()
{
+ if (SKIP_TESTS)
+ return;
+
_selenium.open(BASE_URL);
clickAndWait("link=Environmental Annotation Useage");
@@ -200,6 +229,9 @@
@Test
public void exception_report()
{
+ if (SKIP_TESTS)
+ return;
+
_selenium.open(BASE_URL);
clickAndWait("link=BadTemplate Page");
@@ -213,6 +245,9 @@
@Test
public void expansion()
{
+ if (SKIP_TESTS)
+ return;
+
_selenium.open(BASE_URL);
clickAndWait("link=Expansion Page");
@@ -228,6 +263,9 @@
@Test
public void inject_component_failure() throws Exception
{
+ if (SKIP_TESTS)
+ return;
+
_selenium.open(BASE_URL);
clickAndWait("link=InjectComponentMismatch");
@@ -239,6 +277,9 @@
@Test
public void injection() throws Exception
{
+ if (SKIP_TESTS)
+ return;
+
_selenium.open(BASE_URL);
clickAndWait("link=Inject Demo");
@@ -256,6 +297,9 @@
@Test
public void instance_mixin()
{
+ if (SKIP_TESTS)
+ return;
+
_selenium.open(BASE_URL);
final String[] dates =
@@ -282,6 +326,9 @@
@Test
public void localization()
{
+ if (SKIP_TESTS)
+ return;
+
_selenium.open(BASE_URL);
clickAndWait("link=Localization");
@@ -297,6 +344,9 @@
@Test
public void page_injection() throws Exception
{
+ if (SKIP_TESTS)
+ return;
+
_selenium.open(BASE_URL);
clickAndWait("link=Inject Demo");
@@ -318,6 +368,9 @@
@Test
public void passivate_activate() throws Exception
{
+ if (SKIP_TESTS)
+ return;
+
_selenium.open(BASE_URL);
clickAndWait("link=NumberSelect");
clickAndWait("link=5");
@@ -327,6 +380,9 @@
@Test
public void password_field()
{
+ if (SKIP_TESTS)
+ return;
+
_selenium.open(BASE_URL);
clickAndWait("link=PasswordFieldDemo");
@@ -353,6 +409,9 @@
@Test
public void render_phase_method_returns_a_component() throws Exception
{
+ if (SKIP_TESTS)
+ return;
+
_selenium.open(BASE_URL);
clickAndWait("link=RenderComponentDemo");
@@ -376,6 +435,9 @@
@Test
public void render_phase_order()
{
+ if (SKIP_TESTS)
+ return;
+
_selenium.open(BASE_URL);
clickAndWait("link=RenderPhaseOrder");
@@ -386,6 +448,9 @@
@Test
public void server_side_validation_for_textfield_and_textarea() throws Exception
{
+ if (SKIP_TESTS)
+ return;
+
_selenium.open(BASE_URL);
clickAndWait("link=ValidForm");
clickAndWait("//input[@type='submit']");
@@ -433,6 +498,9 @@
@AfterClass
public void shutdownBackground() throws Exception
{
+ if (SKIP_TESTS)
+ return;
+
// Thread.sleep(10000);
_selenium.stop();
@@ -448,6 +516,9 @@
@Test
public void simple_component_event()
{
+ if (SKIP_TESTS)
+ return;
+
final String YOU_CHOSE = "You chose: ";
_selenium.open(BASE_URL);
@@ -471,6 +542,9 @@
@Test
public void simple_form()
{
+ if (SKIP_TESTS)
+ return;
+
_selenium.open(BASE_URL);
clickAndWait("link=SimpleForm");
@@ -515,6 +589,9 @@
@BeforeClass
public void startupBackground() throws Exception
{
+ if (SKIP_TESTS)
+ return;
+
_jettyRunner = new JettyRunner("/", JETTY_PORT, "src/test/app1");
_server = new SeleniumServer();
@@ -530,6 +607,9 @@
@Test
public void subclass_inherits_parent_template()
{
+ if (SKIP_TESTS)
+ return;
+
_selenium.open(BASE_URL);
clickAndWait("link=ExpansionSubclass");
@@ -540,6 +620,9 @@
@Test
public void template_overridden()
{
+ if (SKIP_TESTS)
+ return;
+
_selenium.open(BASE_URL);
clickAndWait("link=Template Overriden by Class Page");
@@ -557,6 +640,9 @@
@Test
public void flash_persistence()
{
+ if (SKIP_TESTS)
+ return;
+
_selenium.open(BASE_URL);
clickAndWait("link=FlashDemo");
@@ -670,6 +756,9 @@
private void test_loop_inside_form(String linkLabel)
{
+ if (SKIP_TESTS)
+ return;
+
_selenium.open(BASE_URL);
clickAndWait("link=" + linkLabel);
@@ -708,6 +797,9 @@
@Test
public void bean_editor()
{
+ if (SKIP_TESTS)
+ return;
+
String submitButton = "//input[@id='submit']";
_selenium.open(BASE_URL);
@@ -753,6 +845,9 @@
@Test
public void pageloaded_lifecycle_method_invoked()
{
+ if (SKIP_TESTS)
+ return;
+
_selenium.open(BASE_URL);
clickAndWait("link=PageLoaded Demo");