Author: mes
Date: 2010-11-19 11:12:53 -0800 (Fri, 19 Nov 2010)
New Revision: 22930
Added:
core3/vizmap-impl/trunk/impl/
core3/vizmap-impl/trunk/impl/osgi.bnd
core3/vizmap-impl/trunk/impl/pom.xml
core3/vizmap-impl/trunk/impl/src/
core3/vizmap-impl/trunk/it/
core3/vizmap-impl/trunk/it/pom.xml
core3/vizmap-impl/trunk/it/src/
core3/vizmap-impl/trunk/it/src/test/
core3/vizmap-impl/trunk/it/src/test/java/
core3/vizmap-impl/trunk/it/src/test/java/org/
core3/vizmap-impl/trunk/it/src/test/java/org/cytoscape/
core3/vizmap-impl/trunk/it/src/test/java/org/cytoscape/view/
core3/vizmap-impl/trunk/it/src/test/java/org/cytoscape/view/vizmap/
core3/vizmap-impl/trunk/it/src/test/java/org/cytoscape/view/vizmap/ServiceConfigurationTest.java
Removed:
core3/vizmap-impl/trunk/impl/src/integration/
core3/vizmap-impl/trunk/osgi.bnd
core3/vizmap-impl/trunk/pom.xml
core3/vizmap-impl/trunk/src/
Log:
updated integration tests
Copied: core3/vizmap-impl/trunk/impl/osgi.bnd (from rev 22929,
core3/vizmap-impl/trunk/osgi.bnd)
===================================================================
--- core3/vizmap-impl/trunk/impl/osgi.bnd (rev 0)
+++ core3/vizmap-impl/trunk/impl/osgi.bnd 2010-11-19 19:12:53 UTC (rev
22930)
@@ -0,0 +1,6 @@
+#-----------------------------------------------------------------
+# Use this file to add customized Bnd instructions for the bundle
+#-----------------------------------------------------------------
+
+Private-Package: ${bundle.namespace}.internal,${bundle.namespace}.internal.*
+
Copied: core3/vizmap-impl/trunk/impl/pom.xml (from rev 22929,
core3/vizmap-impl/trunk/pom.xml)
===================================================================
--- core3/vizmap-impl/trunk/impl/pom.xml (rev 0)
+++ core3/vizmap-impl/trunk/impl/pom.xml 2010-11-19 19:12:53 UTC (rev
22930)
@@ -0,0 +1,128 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+
+ <parent>
+ <artifactId>vizmap-impl-parent</artifactId>
+ <groupId>org.cytoscape</groupId>
+ <version>1.0-SNAPSHOT</version>
+ </parent>
+
+ <properties>
+
<bundle.symbolicName>org.cytoscape.view.vizmap-impl</bundle.symbolicName>
+ <bundle.namespace>org.cytoscape.view.vizmap</bundle.namespace>
+ </properties>
+
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.cytoscape</groupId>
+ <artifactId>vizmap-impl</artifactId>
+
+ <name>${bundle.symbolicName}</name>
+
+ <packaging>bundle</packaging>
+
+ <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>
+
+ <!-- Cytoscape modules -->
+ <dependency>
+ <groupId>org.cytoscape</groupId>
+ <artifactId>vizmap-api</artifactId>
+ <version>3.0.0-alpha2-SNAPSHOT</version>
+ </dependency>
+
+ <!-- Testing -->
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>${junit.version}</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.mockito</groupId>
+ <artifactId>mockito-all</artifactId>
+ <version>1.8.1</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.cytoscape</groupId>
+ <artifactId>vizmap-api</artifactId>
+ <version>3.0.0-alpha2-SNAPSHOT</version>
+ <type>test-jar</type>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.cytoscape</groupId>
+ <artifactId>presentation-api</artifactId>
+ <version>3.0.0-alpha2-SNAPSHOT</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.cytoscape</groupId>
+ <artifactId>viewmodel-impl</artifactId>
+ <version>3.0.0-alpha1</version>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+</project>
Added: core3/vizmap-impl/trunk/it/pom.xml
===================================================================
--- core3/vizmap-impl/trunk/it/pom.xml (rev 0)
+++ core3/vizmap-impl/trunk/it/pom.xml 2010-11-19 19:12:53 UTC (rev 22930)
@@ -0,0 +1,174 @@
+<?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>vizmap-impl-parent</artifactId>
+ <groupId>org.cytoscape</groupId>
+ <version>1.0-SNAPSHOT</version>
+ </parent>
+
+ <properties>
+
<bundle.symbolicName>org.cytoscape.vizmap-impl-it</bundle.symbolicName>
+ <bundle.namespace>org.cytoscape.vizmap</bundle.namespace>
+ </properties>
+
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.cytoscape</groupId>
+ <artifactId>vizmap-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>vizmap-api</artifactId>
+ <version>3.0.0-alpha2-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>org.cytoscape</groupId>
+ <artifactId>model-api</artifactId>
+ <version>3.0.0-alpha2-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>org.cytoscape</groupId>
+ <artifactId>model-impl</artifactId>
+ <version>3.0.0-alpha2-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>org.cytoscape</groupId>
+ <artifactId>event-api</artifactId>
+ <version>3.0.0-alpha2-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>org.cytoscape</groupId>
+ <artifactId>event-impl</artifactId>
+ <version>3.0.0-alpha2-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>org.cytoscape</groupId>
+ <artifactId>presentation-api</artifactId>
+ <version>3.0.0-alpha2-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>org.cytoscape</groupId>
+ <artifactId>vizmap-impl</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>${junit.version}</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.mockito</groupId>
+ <artifactId>mockito-all</artifactId>
+ <version>1.8.1</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>org.cytoscape</groupId>
+ <artifactId>vizmap-api</artifactId>
+ <version>3.0.0-alpha2-SNAPSHOT</version>
+ <type>test-jar</type>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.cytoscape</groupId>
+ <artifactId>presentation-api</artifactId>
+ <version>3.0.0-alpha2-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>org.cytoscape</groupId>
+ <artifactId>viewmodel-impl</artifactId>
+ <version>3.0.0-alpha1</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/vizmap-impl/trunk/it/src/test/java/org/cytoscape/view/vizmap/ServiceConfigurationTest.java
===================================================================
---
core3/vizmap-impl/trunk/it/src/test/java/org/cytoscape/view/vizmap/ServiceConfigurationTest.java
(rev 0)
+++
core3/vizmap-impl/trunk/it/src/test/java/org/cytoscape/view/vizmap/ServiceConfigurationTest.java
2010-11-19 19:12:53 UTC (rev 22930)
@@ -0,0 +1,48 @@
+package org.cytoscape.view.vizmap;
+
+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("vizmap-api").versionAsInProject(),
+
mavenBundle().groupId("org.cytoscape").artifactId("vizmap-impl").versionAsInProject(),
+
mavenBundle().groupId("org.cytoscape").artifactId("viewmodel-api").versionAsInProject(),
+
mavenBundle().groupId("org.cytoscape").artifactId("viewmodel-impl").versionAsInProject(),
+
mavenBundle().groupId("org.cytoscape").artifactId("model-impl").versionAsInProject(),
+
mavenBundle().groupId("org.cytoscape").artifactId("model-api").versionAsInProject(),
+
mavenBundle().groupId("org.cytoscape").artifactId("event-api").versionAsInProject(),
+
mavenBundle().groupId("org.cytoscape").artifactId("event-impl").versionAsInProject(),
+
mavenBundle().groupId("org.cytoscape").artifactId("presentation-api").versionAsInProject(),
+
mavenBundle().groupId("org.cytoscape").artifactId("integration-test-support").versionAsInProject()
+ ));
+ }
+
+ @Test
+ public void testExpectedServices() {
+ checkService(VisualMappingManager.class);
+ checkService(VisualStyleFactory.class);
+ }
+}
Deleted: core3/vizmap-impl/trunk/osgi.bnd
===================================================================
--- core3/vizmap-impl/trunk/osgi.bnd 2010-11-19 18:43:20 UTC (rev 22929)
+++ core3/vizmap-impl/trunk/osgi.bnd 2010-11-19 19:12:53 UTC (rev 22930)
@@ -1,6 +0,0 @@
-#-----------------------------------------------------------------
-# Use this file to add customized Bnd instructions for the bundle
-#-----------------------------------------------------------------
-
-Private-Package: ${bundle.namespace}.internal,${bundle.namespace}.internal.*
-
Deleted: core3/vizmap-impl/trunk/pom.xml
===================================================================
--- core3/vizmap-impl/trunk/pom.xml 2010-11-19 18:43:20 UTC (rev 22929)
+++ core3/vizmap-impl/trunk/pom.xml 2010-11-19 19:12:53 UTC (rev 22930)
@@ -1,186 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project xmlns="http://maven.apache.org/POM/4.0.0"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
-
- <parent>
- <artifactId>parent</artifactId>
- <groupId>org.cytoscape</groupId>
- <version>3.0.0-alpha4-SNAPSHOT</version>
- </parent>
-
- <properties>
-
<bundle.symbolicName>org.cytoscape.view.vizmap-impl</bundle.symbolicName>
- <bundle.namespace>org.cytoscape.view.vizmap</bundle.namespace>
- </properties>
-
- <modelVersion>4.0.0</modelVersion>
- <groupId>org.cytoscape</groupId>
- <artifactId>vizmap-impl</artifactId>
- <version>1.0-SNAPSHOT</version>
-
- <name>${bundle.symbolicName}</name>
-
- <packaging>bundle</packaging>
-
- <build>
- <resources>
- <resource>
- <directory>src/main/resources</directory>
- </resource>
- <!-- | example additional resource entries, useful when
building Eclipse
- RCP applications -->
- </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>
- <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>
-
- <!-- Cytoscape modules -->
- <dependency>
- <groupId>org.cytoscape</groupId>
- <artifactId>vizmap-api</artifactId>
- <version>3.0.0-alpha2-SNAPSHOT</version>
- </dependency>
-
- <!-- Testing -->
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <version>${junit.version}</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.mockito</groupId>
- <artifactId>mockito-all</artifactId>
- <version>1.8.1</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.cytoscape</groupId>
- <artifactId>integration-test-support</artifactId>
- <version>3.0.0-alpha2</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.cytoscape</groupId>
- <artifactId>vizmap-api</artifactId>
- <version>3.0.0-alpha2-SNAPSHOT</version>
- <type>test-jar</type>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.cytoscape</groupId>
- <artifactId>presentation-api</artifactId>
- <version>3.0.0-alpha2-SNAPSHOT</version>
- </dependency>
-
- <dependency>
- <groupId>org.cytoscape</groupId>
- <artifactId>viewmodel-impl</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.