Revision: 6115
http://squirrel-sql.svn.sourceforge.net/squirrel-sql/?rev=6115&view=rev
Author: manningr
Date: 2011-01-02 22:28:45 +0000 (Sun, 02 Jan 2011)
Log Message:
-----------
Modifed test to support new plugin tests.
Modified Paths:
--------------
trunk/sql12/plugins/h2/src/test/java/net/sourceforge/squirrel_sql/plugins/h2/H2PluginTest.java
Modified: trunk/sql12/plugins/h2/src/test/java/net/sourceforge/squirrel_sql/plugins/h2/H2PluginTest.java
===================================================================
--- trunk/sql12/plugins/h2/src/test/java/net/sourceforge/squirrel_sql/plugins/h2/H2PluginTest.java 2011-01-02 22:28:30 UTC (rev 6114)
+++ trunk/sql12/plugins/h2/src/test/java/net/sourceforge/squirrel_sql/plugins/h2/H2PluginTest.java 2011-01-02 22:28:45 UTC (rev 6115)
@@ -19,26 +19,11 @@
package net.sourceforge.squirrel_sql.plugins.h2;
import net.sourceforge.squirrel_sql.client.plugin.AbstractSessionPluginTest;
+import net.sourceforge.squirrel_sql.client.plugin.IPlugin;
-import org.junit.After;
-import org.junit.Before;
-
public class H2PluginTest extends AbstractSessionPluginTest
{
- @Before
- public void setUp() throws Exception
- {
- super.setUp();
- classUnderTest = new H2Plugin();
- }
-
- @After
- public void tearDown() throws Exception
- {
- classUnderTest = null;
- }
-
@Override
protected String getDatabaseProductName()
{
@@ -49,6 +34,12 @@
protected String getDatabaseProductVersion()
{
return null;
+ }
+
+ @Override
+ protected IPlugin getPluginToTest() throws Exception
+ {
+ return new H2Plugin();
}
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|