Author: mes
Date: 2010-11-18 17:10:23 -0800 (Thu, 18 Nov 2010)
New Revision: 22918

Added:
   core3/event-impl/trunk/impl/
   core3/event-impl/trunk/impl/osgi.bnd
   core3/event-impl/trunk/impl/pom.xml
   core3/event-impl/trunk/impl/src/
   core3/event-impl/trunk/it/
   core3/event-impl/trunk/it/pom.xml
   core3/event-impl/trunk/it/src/
   core3/event-impl/trunk/it/src/test/
   core3/event-impl/trunk/it/src/test/java/
   core3/event-impl/trunk/it/src/test/java/org/
   core3/event-impl/trunk/it/src/test/java/org/cytoscape/
   core3/event-impl/trunk/it/src/test/java/org/cytoscape/event/
   
core3/event-impl/trunk/it/src/test/java/org/cytoscape/event/ServiceConfigurationTest.java
Removed:
   core3/event-impl/trunk/impl/src/integration/
   core3/event-impl/trunk/osgi.bnd
   core3/event-impl/trunk/pom.xml
   core3/event-impl/trunk/src/
Log:
refactored integration testing

Copied: core3/event-impl/trunk/impl/osgi.bnd (from rev 22917, 
core3/event-impl/trunk/osgi.bnd)
===================================================================
--- core3/event-impl/trunk/impl/osgi.bnd                                (rev 0)
+++ core3/event-impl/trunk/impl/osgi.bnd        2010-11-19 01:10:23 UTC (rev 
22918)
@@ -0,0 +1,7 @@
+#-----------------------------------------------------------------
+# Use this file to add customized Bnd instructions for the bundle
+#-----------------------------------------------------------------
+
+Spring-Context: META-INF/spring/*.xml
+Private-Package: ${bundle.namespace}.internal, ${bundle.namespace}.internal.*
+

Copied: core3/event-impl/trunk/impl/pom.xml (from rev 22917, 
core3/event-impl/trunk/pom.xml)
===================================================================
--- core3/event-impl/trunk/impl/pom.xml                         (rev 0)
+++ core3/event-impl/trunk/impl/pom.xml 2010-11-19 01:10:23 UTC (rev 22918)
@@ -0,0 +1,134 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<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>
+               <artifactId>event-impl-parent</artifactId>
+               <groupId>org.cytoscape</groupId>
+               <version>3.0.0-alpha2-SNAPSHOT</version>
+       </parent>
+
+       <properties>
+               
<bundle.symbolicName>org.cytoscape.event-impl</bundle.symbolicName>
+               <bundle.namespace>org.cytoscape.event</bundle.namespace>
+       </properties>
+
+       <modelVersion>4.0.0</modelVersion>
+       <groupId>org.cytoscape</groupId>
+       <artifactId>event-impl</artifactId>
+
+       <name>${bundle.symbolicName}</name>
+
+       <packaging>bundle</packaging>
+
+       <scm>
+               
<connection>scm:svn:http://chianti.ucsd.edu/svn/core3/event-impl/trunk</connection>
+               
<developerConnection>scm:svn:svn+ssh://grenache.ucsd.edu/cellar/common/svn/core3/event-impl/trunk</developerConnection>
+               <url>http://chianti.ucsd.edu/svn/core3/event-impl/trunk</url>
+       </scm>
+
+       <build>
+               <plugins>
+                       <plugin>
+                               <groupId>org.apache.maven.plugins</groupId>
+                               <artifactId>maven-surefire-plugin</artifactId>
+                               <configuration>
+                                       
<redirectTestOutputToFile>true</redirectTestOutputToFile>
+                               </configuration>
+                       </plugin>
+                       <plugin>
+                               <groupId>org.ops4j</groupId>
+                               <artifactId>maven-pax-plugin</artifactId>
+                               <version>1.4</version>
+                               <!-- | enable improved OSGi compilation support 
for the bundle life-cycle. 
+                                       | to switch back to the standard bundle 
life-cycle, move this setting | down 
+                                       to the maven-bundle-plugin section -->
+                               <extensions>true</extensions>
+                       </plugin>
+                       <plugin>
+                               <groupId>org.apache.felix</groupId>
+                               <artifactId>maven-bundle-plugin</artifactId>
+                               
<version>${maven-bundle-plugin.version}</version>
+                               <!-- | the following instructions build a 
simple set of public/private 
+                                       classes into an OSGi bundle -->
+                               <configuration>
+                                       <instructions>
+                                               
<Bundle-SymbolicName>${bundle.symbolicName}</Bundle-SymbolicName>
+                                               
<Bundle-Version>${pom.version}</Bundle-Version>
+                                               <_include>-osgi.bnd</_include>
+                                       </instructions>
+                               </configuration>
+                       </plugin>
+               </plugins>
+       </build>
+
+       <repositories>
+               <!-- bootstrap for cytoscape dependencies, namely the parent 
POM snapshots -->
+               <repository>
+                       <id>cytoscape_snapshots</id>
+                       <snapshots>
+                               <enabled>true</enabled>
+                       </snapshots>
+                       <releases>
+                               <enabled>false</enabled>
+                       </releases>
+                       <name>Cytoscape Snapshots</name>
+                       
<url>http://cytoscape.wodaklab.org/nexus/content/repositories/snapshots/</url>
+               </repository>
+               <!-- bootstrap for cytoscape dependencies, namely the parent 
POM releases -->
+               <repository>
+                       <id>cytoscape_releases</id>
+                       <snapshots>
+                               <enabled>false</enabled>
+                       </snapshots>
+                       <releases>
+                               <enabled>true</enabled>
+                       </releases>
+                       <name>Cytoscape Releases</name>
+                       
<url>http://cytoscape.wodaklab.org/nexus/content/repositories/releases/</url>
+               </repository>
+       </repositories>
+       <dependencies>
+
+               <dependency>
+                       <groupId>org.cytoscape</groupId>
+                       <artifactId>event-api</artifactId>
+                       <version>3.0.0-alpha2-SNAPSHOT</version>
+               </dependency>
+
+               <!-- Testing -->
+               <dependency>
+                       <groupId>org.osgi</groupId>
+                       <artifactId>org.osgi.core</artifactId>
+                       <version>4.2.0</version>
+                       <scope>provided</scope>
+                       <optional>true</optional>
+               </dependency>
+               <dependency>
+                       <groupId>org.osgi</groupId>
+                       <artifactId>org.osgi.compendium</artifactId>
+                       <version>4.2.0</version>
+                       <scope>provided</scope>
+                       <optional>true</optional>
+               </dependency>
+               <dependency>
+                       <groupId>org.cytoscape</groupId>
+                       <artifactId>event-api</artifactId>
+                       <version>3.0.0-alpha1</version>
+                       <type>test-jar</type>
+                       <scope>test</scope>
+               </dependency>
+               <dependency>
+                       <groupId>junit</groupId>
+                       <artifactId>junit</artifactId>
+                       <version>${junit.version}</version>
+                       <scope>test</scope>
+               </dependency>
+               <dependency>
+                       <groupId>org.springframework.osgi</groupId>
+                       <artifactId>spring-osgi-mock</artifactId>
+                       <version>1.0</version>
+                       <scope>test</scope>
+               </dependency>
+       </dependencies>
+
+</project>

Copied: core3/event-impl/trunk/impl/src (from rev 22917, 
core3/event-impl/trunk/src)

Added: core3/event-impl/trunk/it/pom.xml
===================================================================
--- core3/event-impl/trunk/it/pom.xml                           (rev 0)
+++ core3/event-impl/trunk/it/pom.xml   2010-11-19 01:10:23 UTC (rev 22918)
@@ -0,0 +1,126 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<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>
+               <artifactId>event-impl-parent</artifactId>
+               <groupId>org.cytoscape</groupId>
+               <version>3.0.0-alpha2-SNAPSHOT</version>
+       </parent>
+
+       <properties>
+               
<bundle.symbolicName>org.cytoscape.event-impl-it</bundle.symbolicName>
+               <bundle.namespace>org.cytoscape.event</bundle.namespace>
+       </properties>
+
+       <modelVersion>4.0.0</modelVersion>
+       <groupId>org.cytoscape</groupId>
+       <artifactId>event-impl-it</artifactId>
+
+       <name>${bundle.symbolicName}</name>
+
+       <packaging>jar</packaging>
+
+       <build>
+               <plugins>
+                       <plugin>
+                               <groupId>org.ops4j.pax.exam</groupId>
+                               <artifactId>maven-paxexam-plugin</artifactId>
+                               <executions>
+                                       <execution>
+                                               <id>generate-config</id>
+                                               <goals>
+                                                       
<goal>generate-depends-file</goal>
+                                               </goals>
+                                       </execution>
+                               </executions>
+               <!--
+                               <configuration>
+                                       <options>
+                                               <platform>felix</platform>
+                                               <profiles>spring.dm</profiles>
+                                       </options>
+                               </configuration>
+               -->
+       </plugin>
+                       <plugin>
+                               <groupId>org.apache.maven.plugins</groupId>
+                               <artifactId>maven-surefire-plugin</artifactId>
+                               <configuration>
+                                       
<redirectTestOutputToFile>true</redirectTestOutputToFile>
+                               </configuration>
+                       </plugin>
+               </plugins>
+       </build>
+
+       <repositories>
+               <!-- bootstrap for cytoscape dependencies, namely the parent 
POM snapshots -->
+               <repository>
+                       <id>cytoscape_snapshots</id>
+                       <snapshots>
+                               <enabled>true</enabled>
+                       </snapshots>
+                       <releases>
+                               <enabled>false</enabled>
+                       </releases>
+                       <name>Cytoscape Snapshots</name>
+                       
<url>http://cytoscape.wodaklab.org/nexus/content/repositories/snapshots/</url>
+               </repository>
+               <!-- bootstrap for cytoscape dependencies, namely the parent 
POM releases -->
+               <repository>
+                       <id>cytoscape_releases</id>
+                       <snapshots>
+                               <enabled>false</enabled>
+                       </snapshots>
+                       <releases>
+                               <enabled>true</enabled>
+                       </releases>
+                       <name>Cytoscape Releases</name>
+                       
<url>http://cytoscape.wodaklab.org/nexus/content/repositories/releases/</url>
+               </repository>
+       </repositories>
+
+       <dependencies>
+               <dependency>
+                       <groupId>org.cytoscape</groupId>
+                       <artifactId>event-api</artifactId>
+                       <version>3.0.0-alpha2-SNAPSHOT</version>
+                       <scope>test</scope>
+               </dependency>
+               <dependency>
+                       <groupId>org.cytoscape</groupId>
+                       <artifactId>event-impl</artifactId>
+                       <version>3.0.0-alpha2-SNAPSHOT</version>
+                       <scope>test</scope>
+               </dependency>
+               <dependency>
+                       <groupId>org.cytoscape</groupId>
+                       <artifactId>integration-test-support</artifactId>
+                       <version>3.0.0-alpha3-SNAPSHOT</version>
+                       <scope>test</scope>
+               </dependency>
+               <dependency>
+                       <groupId>junit</groupId>
+                       <artifactId>junit</artifactId>
+                       <version>${junit.version}</version>
+                       <scope>test</scope>
+               </dependency>
+               <dependency>
+                       <groupId>org.ops4j.pax.exam</groupId>
+                       <artifactId>pax-exam</artifactId>
+                       <version>1.2.0</version>
+                       <scope>test</scope>
+               </dependency>
+               <dependency>
+                       <groupId>org.ops4j.pax.exam</groupId>
+                       <artifactId>pax-exam-junit</artifactId>
+                       <version>1.2.0</version>
+                       <scope>test</scope>
+               </dependency>
+               <dependency>
+                       <groupId>org.ops4j.pax.exam</groupId>
+                       <artifactId>pax-exam-container-default</artifactId>
+                       <version>1.2.0</version>
+                       <scope>test</scope>
+               </dependency>
+       </dependencies>
+</project>

Added: 
core3/event-impl/trunk/it/src/test/java/org/cytoscape/event/ServiceConfigurationTest.java
===================================================================
--- 
core3/event-impl/trunk/it/src/test/java/org/cytoscape/event/ServiceConfigurationTest.java
                           (rev 0)
+++ 
core3/event-impl/trunk/it/src/test/java/org/cytoscape/event/ServiceConfigurationTest.java
   2010-11-19 01:10:23 UTC (rev 22918)
@@ -0,0 +1,40 @@
+package org.cytoscape.event; 
+
+import static org.ops4j.pax.exam.CoreOptions.*;
+import static org.ops4j.pax.exam.container.def.PaxRunnerOptions.*;
+import static org.junit.Assert.*;
+import org.junit.Test;
+import org.junit.Before;
+import org.junit.runner.RunWith;
+import org.ops4j.pax.exam.Option;
+import org.ops4j.pax.exam.Inject;
+import org.ops4j.pax.exam.junit.Configuration;
+import org.ops4j.pax.exam.junit.MavenConfiguredJUnit4TestRunner;
+import org.ops4j.pax.exam.junit.JUnit4TestRunner;
+import org.osgi.framework.BundleContext;
+import org.osgi.framework.ServiceReference;
+import org.osgi.util.tracker.ServiceTracker;
+
+
+import org.cytoscape.integration.ServiceTestSupport;
+
+//@RunWith(MavenConfiguredJUnit4TestRunner.class)
+...@runwith(JUnit4TestRunner.class)
+public class ServiceConfigurationTest extends ServiceTestSupport {
+
+       @Configuration
+       public static Option[] configuration() {      
+               return options(felix(), 
+                              profile("spring.dm"), 
+                              provision( 
+                                        
mavenBundle().groupId("org.cytoscape").artifactId("event-api").versionAsInProject(),
+                                        
mavenBundle().groupId("org.cytoscape").artifactId("event-impl").versionAsInProject(),
+                                        
mavenBundle().groupId("org.cytoscape").artifactId("integration-test-support").versionAsInProject()
+               ));
+       }  
+
+       @Test
+       public void testExpectedServices() {
+               checkService(CyEventHelper.class);
+       }
+}

Deleted: core3/event-impl/trunk/osgi.bnd
===================================================================
--- core3/event-impl/trunk/osgi.bnd     2010-11-19 00:56:31 UTC (rev 22917)
+++ core3/event-impl/trunk/osgi.bnd     2010-11-19 01:10:23 UTC (rev 22918)
@@ -1,7 +0,0 @@
-#-----------------------------------------------------------------
-# Use this file to add customized Bnd instructions for the bundle
-#-----------------------------------------------------------------
-
-Spring-Context: META-INF/spring/*.xml
-Private-Package: ${bundle.namespace}.internal, ${bundle.namespace}.internal.*
-

Deleted: core3/event-impl/trunk/pom.xml
===================================================================
--- core3/event-impl/trunk/pom.xml      2010-11-19 00:56:31 UTC (rev 22917)
+++ core3/event-impl/trunk/pom.xml      2010-11-19 01:10:23 UTC (rev 22918)
@@ -1,213 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<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>
-               <artifactId>parent</artifactId>
-               <groupId>org.cytoscape</groupId>
-               <version>3.0.0-alpha2</version>
-       </parent>
-
-       <properties>
-               
<bundle.symbolicName>org.cytoscape.event-impl</bundle.symbolicName>
-               <bundle.namespace>org.cytoscape.event</bundle.namespace>
-       </properties>
-
-       <modelVersion>4.0.0</modelVersion>
-       <groupId>org.cytoscape</groupId>
-       <artifactId>event-impl</artifactId>
-       <version>3.0.0-alpha2-SNAPSHOT</version>
-
-       <name>${bundle.symbolicName}</name>
-
-       <packaging>bundle</packaging>
-
-       <scm>
-               
<connection>scm:svn:http://chianti.ucsd.edu/svn/core3/event-impl/trunk</connection>
-               
<developerConnection>scm:svn:svn+ssh://grenache.ucsd.edu/cellar/common/svn/core3/event-impl/trunk</developerConnection>
-               <url>http://chianti.ucsd.edu/svn/core3/event-impl/trunk</url>
-       </scm>
-
-       <build>
-               <resources>
-                       <resource>
-                               <directory>src/main/resources</directory>
-                       </resource>
-                       <resource>
-                               <directory>src/integration/resources</directory>
-                       </resource>
-                       <!-- | example additional resource entries, useful when 
building Eclipse 
-                               RCP applications -->
-                       <resource>
-                               <directory>.</directory>
-                               <includes>
-                                       <include>plugin.xml</include>
-                                       <include>plugin.properties</include>
-                                       <include>icons/**</include>
-                               </includes>
-                       </resource>
-               </resources>
-               <plugins>
-                       <plugin>
-                               <groupId>org.apache.maven.plugins</groupId>
-                               <artifactId>maven-surefire-plugin</artifactId>
-                               <configuration>
-                                       
<redirectTestOutputToFile>true</redirectTestOutputToFile>
-                               </configuration>
-                       </plugin>
-                       <plugin>
-                               <groupId>org.ops4j</groupId>
-                               <artifactId>maven-pax-plugin</artifactId>
-                               <version>1.4</version>
-                               <!-- | enable improved OSGi compilation support 
for the bundle life-cycle. 
-                                       | to switch back to the standard bundle 
life-cycle, move this setting | down 
-                                       to the maven-bundle-plugin section -->
-                               <extensions>true</extensions>
-                       </plugin>
-                       <plugin>
-                               <groupId>org.apache.felix</groupId>
-                               <artifactId>maven-bundle-plugin</artifactId>
-                               
<version>${maven-bundle-plugin.version}</version>
-                               <!-- | the following instructions build a 
simple set of public/private 
-                                       classes into an OSGi bundle -->
-                               <configuration>
-                                       <instructions>
-                                               
<Bundle-SymbolicName>${bundle.symbolicName}</Bundle-SymbolicName>
-                                               
<Bundle-Version>${pom.version}</Bundle-Version>
-                                               <_include>-osgi.bnd</_include>
-                                       </instructions>
-                               </configuration>
-                       </plugin>
-      <plugin>
-        <artifactId>maven-clean-plugin</artifactId>
-        <version>2.4.1</version>
-        <configuration>
-          <filesets>
-            <fileset>
-              <directory>${basedir}/eclipse_config</directory>
-            </fileset>
-          </filesets>
-        </configuration>
-      </plugin>
-            <plugin>
-                <groupId>org.codehaus.mojo</groupId>
-                <artifactId>build-helper-maven-plugin</artifactId>
-                <version>1.5</version>
-                <executions>
-                    <execution>
-                        <id>add-test-source</id>
-                        <phase>generate-test-sources</phase>
-                        <goals>
-                            <goal>add-test-source</goal>
-                        </goals>
-                        <configuration>
-                            <sources>
-                                
<source>${basedir}/src/integration/java</source>
-                            </sources>
-                        </configuration>
-                    </execution>
-                </executions>
-            </plugin>
-            <plugin>
-                <groupId>org.apache.maven.plugins</groupId>
-                <artifactId>maven-failsafe-plugin</artifactId>
-                <version>2.6</version>
-                <configuration>
-                    
<testSourceDirectory>${basedir}/src/integration/java</testSourceDirectory>
-                    <redirectTestOutputToFile>true</redirectTestOutputToFile>
-                </configuration>
-                <executions>
-                    <execution>
-                        <id>integration-test</id>
-                        <goals>
-                            <goal>integration-test</goal>
-                        </goals>
-                    </execution>
-                    <execution>
-                        <id>verify</id>
-                        <goals>
-                            <goal>verify</goal>
-                        </goals>
-                    </execution>
-                </executions>
-            </plugin>
-               </plugins>
-       </build>
-
-       <repositories>
-               <!-- bootstrap for cytoscape dependencies, namely the parent 
POM snapshots -->
-               <repository>
-                       <id>cytoscape_snapshots</id>
-                       <snapshots>
-                               <enabled>true</enabled>
-                       </snapshots>
-                       <releases>
-                               <enabled>false</enabled>
-                       </releases>
-                       <name>Cytoscape Snapshots</name>
-                       
<url>http://cytoscape.wodaklab.org/nexus/content/repositories/snapshots/</url>
-               </repository>
-               <!-- bootstrap for cytoscape dependencies, namely the parent 
POM releases -->
-               <repository>
-                       <id>cytoscape_releases</id>
-                       <snapshots>
-                               <enabled>false</enabled>
-                       </snapshots>
-                       <releases>
-                               <enabled>true</enabled>
-                       </releases>
-                       <name>Cytoscape Releases</name>
-                       
<url>http://cytoscape.wodaklab.org/nexus/content/repositories/releases/</url>
-               </repository>
-       </repositories>
-       <dependencies>
-
-               <dependency>
-                       <groupId>org.cytoscape</groupId>
-                       <artifactId>event-api</artifactId>
-                       <version>3.0.0-alpha2-SNAPSHOT</version>
-               </dependency>
-
-               <!-- Testing -->
-               <dependency>
-                       <groupId>org.osgi</groupId>
-                       <artifactId>org.osgi.core</artifactId>
-                       <version>4.2.0</version>
-                       <scope>provided</scope>
-                       <optional>true</optional>
-               </dependency>
-               <dependency>
-                       <groupId>org.osgi</groupId>
-                       <artifactId>org.osgi.compendium</artifactId>
-                       <version>4.2.0</version>
-                       <scope>provided</scope>
-                       <optional>true</optional>
-               </dependency>
-               <dependency>
-                       <groupId>org.cytoscape</groupId>
-                       <artifactId>event-api</artifactId>
-                       <version>3.0.0-alpha1</version>
-                       <type>test-jar</type>
-                       <scope>test</scope>
-               </dependency>
-               <dependency>
-                       <groupId>junit</groupId>
-                       <artifactId>junit</artifactId>
-                       <version>${junit.version}</version>
-                       <scope>test</scope>
-               </dependency>
-               <dependency>
-                       <groupId>org.springframework.osgi</groupId>
-                       <artifactId>spring-osgi-mock</artifactId>
-                       <version>1.0</version>
-                       <scope>test</scope>
-               </dependency>
-               <dependency>
-                       <groupId>org.cytoscape</groupId>
-                       <artifactId>integration-test-support</artifactId>
-                       <version>3.0.0-alpha1</version>
-                       <scope>test</scope>
-               </dependency>
-
-       </dependencies>
-
-</project>

-- 
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