Revision: 6132
http://squirrel-sql.svn.sourceforge.net/squirrel-sql/?rev=6132&view=rev
Author: manningr
Date: 2011-01-02 22:38:04 +0000 (Sun, 02 Jan 2011)
Log Message:
-----------
new plugin test.
Added Paths:
-----------
trunk/sql12/plugins/userscript/src/test/
trunk/sql12/plugins/userscript/src/test/java/
trunk/sql12/plugins/userscript/src/test/java/net/
trunk/sql12/plugins/userscript/src/test/java/net/sourceforge/
trunk/sql12/plugins/userscript/src/test/java/net/sourceforge/squirrel_sql/
trunk/sql12/plugins/userscript/src/test/java/net/sourceforge/squirrel_sql/plugins/
trunk/sql12/plugins/userscript/src/test/java/net/sourceforge/squirrel_sql/plugins/userscript/
trunk/sql12/plugins/userscript/src/test/java/net/sourceforge/squirrel_sql/plugins/userscript/UserScriptPluginTest.java
Added: trunk/sql12/plugins/userscript/src/test/java/net/sourceforge/squirrel_sql/plugins/userscript/UserScriptPluginTest.java
===================================================================
--- trunk/sql12/plugins/userscript/src/test/java/net/sourceforge/squirrel_sql/plugins/userscript/UserScriptPluginTest.java (rev 0)
+++ trunk/sql12/plugins/userscript/src/test/java/net/sourceforge/squirrel_sql/plugins/userscript/UserScriptPluginTest.java 2011-01-02 22:38:04 UTC (rev 6132)
@@ -0,0 +1,41 @@
+package net.sourceforge.squirrel_sql.plugins.userscript;
+
+import org.junit.runner.RunWith;
+import org.mockito.runners.MockitoJUnitRunner;
+
+import net.sourceforge.squirrel_sql.client.plugin.AbstractSessionPluginTest;
+import net.sourceforge.squirrel_sql.client.plugin.IPlugin;
+
+
+/*
+ * Copyright (C) 2011 Rob Manning
+ * man...@us...
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+@RunWith(MockitoJUnitRunner.class)
+public class UserScriptPluginTest extends AbstractSessionPluginTest
+{
+
+ @Override
+ protected IPlugin getPluginToTest() throws Exception
+ {
+ UserScriptPlugin result = new UserScriptPlugin();
+ result.setResourcesFactory(mockIPluginResourcesFactory);
+ return result;
+ }
+
+}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|