Browse Source

Updatet servlet tests to follow the same *Test naming convention

Change-Id: I3c718232364f5ca7cce7131fa7685e4a2b833120
tags/7.1.8
Artur Signell 10 years ago
parent
commit
6779857911

+ 1
- 1
WebContent/WEB-INF/web.xml View File

@@ -92,7 +92,7 @@
<servlet-class>com.vaadin.server.VaadinServlet</servlet-class>
<init-param>
<param-name>UI</param-name>
<param-value>com.vaadin.tests.integration.IntegrationTestUI</param-value>
<param-value>com.vaadin.tests.integration.ServletIntegrationUI</param-value>
</init-param>
<async-supported>true</async-supported>
</servlet>

+ 1
- 1
WebContent/WEB-INF/web.xml.2.4 View File

@@ -86,7 +86,7 @@
<servlet-class>com.vaadin.server.VaadinServlet</servlet-class>
<init-param>
<param-name>UI</param-name>
<param-value>com.vaadin.tests.integration.IntegrationTestUI</param-value>
<param-value>com.vaadin.tests.integration.ServletIntegrationUI</param-value>
</init-param>
</servlet>
<servlet-mapping>

uitest/src/com/vaadin/tests/integration/AbstractIntegrationTestTB3.java → uitest/src/com/vaadin/tests/integration/AbstractIntegrationTest.java View File

@@ -32,7 +32,7 @@ import com.vaadin.tests.tb3.PrivateTB3Configuration;
* @author Vaadin Ltd
*/
@RunWith(IntegrationTestRunner.class)
public abstract class AbstractIntegrationTestTB3 extends
public abstract class AbstractIntegrationTest extends
PrivateTB3Configuration {
@Override
protected String getBaseURL() {

uitest/src/com/vaadin/tests/integration/ServletIntegrationTestTB3.java → uitest/src/com/vaadin/tests/integration/AbstractServletIntegrationTest.java View File

@@ -26,8 +26,8 @@ import org.openqa.selenium.WebElement;
*
* @author Vaadin Ltd
*/
public abstract class ServletIntegrationTestTB3 extends
AbstractIntegrationTestTB3 {
public abstract class AbstractServletIntegrationTest extends
AbstractIntegrationTest {

@Test
public void runTest() throws IOException, AssertionError {

+ 1
- 1
uitest/src/com/vaadin/tests/integration/IntegrationTestRunner.java View File

@@ -45,7 +45,7 @@ public class IntegrationTestRunner extends TB3Runner {
*/
@Override
protected String testName(FrameworkMethod method) {
if (AbstractIntegrationTestTB3.class.isAssignableFrom(testClass)) {
if (AbstractIntegrationTest.class.isAssignableFrom(testClass)) {
return System.getProperty("server-name");
} else {
return super.testName(method);

uitest/src/com/vaadin/tests/integration/IntegrationTestStreaming.java → uitest/src/com/vaadin/tests/integration/ServletIntegrationStreamingUI.java View File

@@ -25,11 +25,6 @@ import com.vaadin.shared.ui.ui.Transport;
* @author Vaadin Ltd
*/
@Push(transport = Transport.STREAMING)
public class IntegrationTestStreaming extends IntegrationTestUI {

public static class IntegrationTestStreamingTB3 extends
ServletIntegrationTestTB3 {
// Uses the test method declared in the super class
}
public class ServletIntegrationStreamingUI extends ServletIntegrationUI {

}

+ 21
- 0
uitest/src/com/vaadin/tests/integration/ServletIntegrationStreamingUITest.java View File

@@ -0,0 +1,21 @@
/*
* Copyright 2000-2013 Vaadin Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
package com.vaadin.tests.integration;

public class ServletIntegrationStreamingUITest extends
AbstractServletIntegrationTest {
// Uses the test method declared in the super class
}

uitest/src/com/vaadin/tests/integration/IntegrationTestUI.java → uitest/src/com/vaadin/tests/integration/ServletIntegrationUI.java View File

@@ -11,11 +11,7 @@ import com.vaadin.ui.Table;
import com.vaadin.ui.UI;
import com.vaadin.ui.VerticalLayout;

public class IntegrationTestUI extends UI {

public class IntegrationTestXhrTB3 extends ServletIntegrationTestTB3 {
// Uses the test method declared in the super class
}
public class ServletIntegrationUI extends UI {

@Override
protected void init(VaadinRequest request) {

+ 20
- 0
uitest/src/com/vaadin/tests/integration/ServletIntegrationUITest.java View File

@@ -0,0 +1,20 @@
/*
* Copyright 2000-2013 Vaadin Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
package com.vaadin.tests.integration;

public class ServletIntegrationUITest extends AbstractServletIntegrationTest {
// Uses the test method declared in the super class
}

uitest/src/com/vaadin/tests/integration/IntegrationTestWebsocket.java → uitest/src/com/vaadin/tests/integration/ServletIntegrationWebsocketUI.java View File

@@ -26,11 +26,7 @@ import com.vaadin.shared.ui.ui.Transport;
* @author Vaadin Ltd
*/
@Push(transport = Transport.WEBSOCKET)
public class IntegrationTestWebsocket extends IntegrationTestUI {

public class IntegrationTestWebsocketTB3 extends ServletIntegrationTestTB3 {
// Uses the test method declared in the super class
}
public class ServletIntegrationWebsocketUI extends ServletIntegrationUI {

/*
* (non-Javadoc)

+ 21
- 0
uitest/src/com/vaadin/tests/integration/ServletIntegrationWebsocketUITest.java View File

@@ -0,0 +1,21 @@
/*
* Copyright 2000-2013 Vaadin Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
package com.vaadin.tests.integration;

public class ServletIntegrationWebsocketUITest extends
AbstractServletIntegrationTest {
// Uses the test method declared in the super class
}

+ 2
- 2
uitest/src/com/vaadin/tests/tb3/ServletIntegrationTests.java View File

@@ -19,7 +19,7 @@ package com.vaadin.tests.tb3;
import org.junit.runner.RunWith;
import org.junit.runners.model.InitializationError;

import com.vaadin.tests.integration.ServletIntegrationTestTB3;
import com.vaadin.tests.integration.AbstractServletIntegrationTest;
import com.vaadin.tests.tb3.ServletIntegrationTests.ServletIntegrationTestSuite;

@RunWith(ServletIntegrationTestSuite.class)
@@ -28,7 +28,7 @@ public class ServletIntegrationTests {
public static class ServletIntegrationTestSuite extends TB3TestSuite {
public ServletIntegrationTestSuite(Class<?> klass)
throws InitializationError {
super(klass, ServletIntegrationTestTB3.class,
super(klass, AbstractServletIntegrationTest.class,
"com.vaadin.tests.integration", new String[] {});
}
}

Loading…
Cancel
Save