Author: clopes
Date: 2012-03-13 13:22:51 -0700 (Tue, 13 Mar 2012)
New Revision: 28520

Added:
   
core3/impl/trunk/group-impl/src/test/java/org/cytoscape/group/GroupTestSupport.java
Modified:
   core3/impl/trunk/group-impl/
   core3/impl/trunk/group-impl/pom.xml
Log:
Added GroupTestSupport class.


Property changes on: core3/impl/trunk/group-impl
___________________________________________________________________
Modified: svn:ignore
   - target

   + target
.settings
.classpath
.project


Modified: core3/impl/trunk/group-impl/pom.xml
===================================================================
--- core3/impl/trunk/group-impl/pom.xml 2012-03-13 20:03:55 UTC (rev 28519)
+++ core3/impl/trunk/group-impl/pom.xml 2012-03-13 20:22:51 UTC (rev 28520)
@@ -1,49 +1,62 @@
-<project xmlns="http://maven.apache.org/POM/4.0.0"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd";>
+<project xmlns="http://maven.apache.org/POM/4.0.0"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
+       xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd";>
        <parent>
                <groupId>org.cytoscape</groupId>
                <artifactId>impl-parent</artifactId>
                <version>3.0.0-alpha8-SNAPSHOT</version>
        </parent>
 
-  <properties>
-    <bundle.symbolicName>org.cytoscape.group-impl</bundle.symbolicName>
-    <bundle.namespace>org.cytoscape.group.internal</bundle.namespace>
-  </properties>
+       <properties>
+               
<bundle.symbolicName>org.cytoscape.group-impl</bundle.symbolicName>
+               
<bundle.namespace>org.cytoscape.group.internal</bundle.namespace>
+       </properties>
 
        <modelVersion>4.0.0</modelVersion>
-  <groupId>org.cytoscape</groupId>
-  <artifactId>group-impl</artifactId>
+       <groupId>org.cytoscape</groupId>
+       <artifactId>group-impl</artifactId>
 
        <name>${bundle.symbolicName} [${bundle.namespace}]</name>
 
-  <packaging>bundle</packaging>
+       <packaging>bundle</packaging>
 
        <build>
-    <plugins>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-surefire-plugin</artifactId>
-        <version>${maven-surefire-plugin.version}</version>
-        <configuration>
-          <redirectTestOutputToFile>true</redirectTestOutputToFile>
-        </configuration>
-      </plugin>
-      <plugin>
-        <groupId>org.apache.felix</groupId>
-        <artifactId>maven-bundle-plugin</artifactId>
-        <version>${maven-bundle-plugin.version}</version>
-        <extensions>true</extensions>
-        <configuration>
-          <instructions>
-            <Bundle-SymbolicName>${bundle.symbolicName}</Bundle-SymbolicName>
-            <Bundle-Version>${project.version}</Bundle-Version>
-                        <Export-Package>!${bundle.namespace}.*</Export-Package>
-                        
<Private-Package>${bundle.namespace}.*</Private-Package>
-                        
<Bundle-Activator>${bundle.namespace}.CyActivator</Bundle-Activator>
-          </instructions>
-        </configuration>
-      </plugin>
-    </plugins>
+               <plugins>
+                       <plugin>
+                               <groupId>org.apache.maven.plugins</groupId>
+                               <artifactId>maven-jar-plugin</artifactId>
+                               <version>${maven-jar-plugin.version}</version>
+                               <executions>
+                                       <execution>
+                                               <goals>
+                                                       <goal>test-jar</goal>
+                                               </goals>
+                                       </execution>
+                               </executions>
+                       </plugin>
+                       <plugin>
+                               <groupId>org.apache.maven.plugins</groupId>
+                               <artifactId>maven-surefire-plugin</artifactId>
+                               
<version>${maven-surefire-plugin.version}</version>
+                               <configuration>
+                                       
<redirectTestOutputToFile>true</redirectTestOutputToFile>
+                               </configuration>
+                       </plugin>
+                       <plugin>
+                               <groupId>org.apache.felix</groupId>
+                               <artifactId>maven-bundle-plugin</artifactId>
+                               
<version>${maven-bundle-plugin.version}</version>
+                               <extensions>true</extensions>
+                               <configuration>
+                                       <instructions>
+                                               
<Bundle-SymbolicName>${bundle.symbolicName}</Bundle-SymbolicName>
+                                               
<Bundle-Version>${project.version}</Bundle-Version>
+                                               
<Export-Package>!${bundle.namespace}.*</Export-Package>
+                                               
<Private-Package>${bundle.namespace}.*</Private-Package>
+                                               
<Bundle-Activator>${bundle.namespace}.CyActivator</Bundle-Activator>
+                                       </instructions>
+                               </configuration>
+                       </plugin>
+               </plugins>
        </build>
 
        <repositories>

Added: 
core3/impl/trunk/group-impl/src/test/java/org/cytoscape/group/GroupTestSupport.java
===================================================================
--- 
core3/impl/trunk/group-impl/src/test/java/org/cytoscape/group/GroupTestSupport.java
                         (rev 0)
+++ 
core3/impl/trunk/group-impl/src/test/java/org/cytoscape/group/GroupTestSupport.java
 2012-03-13 20:22:51 UTC (rev 28520)
@@ -0,0 +1,25 @@
+package org.cytoscape.group;
+
+import org.cytoscape.event.CyEventHelper;
+import org.cytoscape.group.internal.CyGroupFactoryImpl;
+import org.cytoscape.group.internal.CyGroupManagerImpl;
+import org.cytoscape.service.util.CyServiceRegistrar;
+
+import static org.mockito.Mockito.*;
+
+public class GroupTestSupport {
+
+       protected CyGroupFactory groupFactory;
+       
+       public GroupTestSupport() {
+               final CyEventHelper help = mock(CyEventHelper.class);
+               final CyServiceRegistrar serviceRegistrar = 
mock(CyServiceRegistrar.class);
+               final CyGroupManagerImpl groupMgr = new 
CyGroupManagerImpl(help);
+               
+               this.groupFactory = new CyGroupFactoryImpl(help, groupMgr, 
serviceRegistrar);
+       }
+
+       public CyGroupFactory getGroupFactory() {
+               return groupFactory;
+       }
+}

-- 
You received this message because you are subscribed to the Google Groups 
"cytoscape-cvs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/cytoscape-cvs?hl=en.

Reply via email to