From a161c80b735eab7b166b4a5cf6b4ce14278c999a Mon Sep 17 00:00:00 2001 From: John Alhroos Date: Thu, 11 Aug 2011 07:14:02 +0000 Subject: [PATCH] Added dummy test method so JUnit will not complain about "No runnable methods" svn changeset:20290/svn branch:6.7 --- .../tests/server/container/sqlcontainer/DataGenerator.java | 6 ++++++ .../server/container/sqlcontainer/FreeformQueryUtil.java | 7 +++++++ .../sqlcontainer/connection/MockInitialContextFactory.java | 7 +++++++ 3 files changed, 20 insertions(+) diff --git a/tests/src/com/vaadin/tests/server/container/sqlcontainer/DataGenerator.java b/tests/src/com/vaadin/tests/server/container/sqlcontainer/DataGenerator.java index 52225984a7..49f08bc798 100644 --- a/tests/src/com/vaadin/tests/server/container/sqlcontainer/DataGenerator.java +++ b/tests/src/com/vaadin/tests/server/container/sqlcontainer/DataGenerator.java @@ -6,11 +6,17 @@ import java.sql.SQLException; import java.sql.Statement; import org.junit.Assert; +import org.junit.Test; import com.vaadin.data.util.sqlcontainer.connection.JDBCConnectionPool; import com.vaadin.tests.server.container.sqlcontainer.AllTests.DB; public class DataGenerator { + + @Test + public void testDummy(){ + // Added dummy test so JUnit will not complain about "No runnable methods". + } public static void addPeopleToDatabase(JDBCConnectionPool connectionPool) throws SQLException { diff --git a/tests/src/com/vaadin/tests/server/container/sqlcontainer/FreeformQueryUtil.java b/tests/src/com/vaadin/tests/server/container/sqlcontainer/FreeformQueryUtil.java index 22e8531c65..e85183be89 100644 --- a/tests/src/com/vaadin/tests/server/container/sqlcontainer/FreeformQueryUtil.java +++ b/tests/src/com/vaadin/tests/server/container/sqlcontainer/FreeformQueryUtil.java @@ -2,6 +2,8 @@ package com.vaadin.tests.server.container.sqlcontainer; import java.util.List; +import org.junit.Test; + import com.vaadin.data.Container.Filter; import com.vaadin.data.util.sqlcontainer.query.generator.StatementHelper; import com.vaadin.data.util.sqlcontainer.query.generator.filter.QueryBuilder; @@ -9,6 +11,11 @@ import com.vaadin.tests.server.container.sqlcontainer.AllTests.DB; public class FreeformQueryUtil { + @Test + public void testDummy(){ + // Added dummy test so JUnit will not complain about "No runnable methods". + } + public static StatementHelper getQueryWithFilters(List filters, int offset, int limit) { StatementHelper sh = new StatementHelper(); diff --git a/tests/src/com/vaadin/tests/server/container/sqlcontainer/connection/MockInitialContextFactory.java b/tests/src/com/vaadin/tests/server/container/sqlcontainer/connection/MockInitialContextFactory.java index 0d3d2660fb..c16cfb746b 100644 --- a/tests/src/com/vaadin/tests/server/container/sqlcontainer/connection/MockInitialContextFactory.java +++ b/tests/src/com/vaadin/tests/server/container/sqlcontainer/connection/MockInitialContextFactory.java @@ -4,11 +4,18 @@ import javax.naming.Context; import javax.naming.NamingException; import javax.naming.spi.InitialContextFactory; +import org.junit.Test; + /** * Provides a JNDI initial context factory for the MockContext. */ public class MockInitialContextFactory implements InitialContextFactory { private static Context mockCtx = null; + + @Test + public void testDummy(){ + // Added dummy test so JUnit will not complain about "No runnable methods". + } public static void setMockContext(Context ctx) { mockCtx = ctx; -- 2.39.5