Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
frascati
frascati
Commits
b236297b
Commit
b236297b
authored
Aug 07, 2012
by
Munilla Christophe
Browse files
define implementation-widget bundle module and tests
parent
271e6019
Changes
14
Hide whitespace changes
Inline
Side-by-side
frascati/osgi/frascati-in-osgi/bundles/frascati-modules/implementation-widget-test/equinox/pom.xml
0 → 100644
View file @
b236297b
<?xml version="1.0"?>
<!--
* OW2 FraSCAti OSGi
*
* Copyright (c) 2011 - 2012 Inria, University of Lille 1
*
* 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 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
*
* Contact: frascati@ow2.org
*
* Author: Christophe Munilla
*
* Contributor(s):
*
-->
<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"
>
<modelVersion>
4.0.0
</modelVersion>
<parent>
<groupId>
org.ow2.frascati.osgi.fio.test
</groupId>
<artifactId>
frascati-implementation-widget-test
</artifactId>
<version>
1.5-SNAPSHOT
</version>
</parent>
<artifactId>
frascati-implementation-widget-test-equinox
</artifactId>
<name>
FraSCAti in OSGi - Test Implementation Widget Bundle in Equinox
</name>
<dependencies>
<dependency>
<groupId>
org.ow2.frascati.osgi.fio.test
</groupId>
<artifactId>
frascati-implementation-widget-test-framework
</artifactId>
<version>
1.5-SNAPSHOT
</version>
</dependency>
<dependency>
<groupId>
org.ow2.frascati.osgi.fio
</groupId>
<artifactId>
frascati-osgi-equinox
</artifactId>
<version>
1.5-SNAPSHOT
</version>
</dependency>
<dependency>
<groupId>
org.apache.geronimo.specs
</groupId>
<artifactId>
geronimo-servlet_2.5_spec
</artifactId>
<version>
1.2
</version>
<scope>
provided
</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-dependency-plugin
</artifactId>
</plugin>
<plugin>
<artifactId>
maven-deploy-plugin
</artifactId>
<configuration>
<skip>
true
</skip>
</configuration>
</plugin>
<plugin>
<artifactId>
maven-jar-plugin
</artifactId>
<configuration>
<excludes>
<exclude>
**/*.jar
</exclude>
</excludes>
</configuration>
</plugin>
</plugins>
</build>
</project>
frascati/osgi/frascati-in-osgi/bundles/frascati-modules/implementation-widget-test/equinox/src/test/java/org/ow2/frascati/osgi/test/FraSCAtiInEquinoxTest.java
0 → 100644
View file @
b236297b
/**
* OW2 FraSCAti OSGi
* Copyright (c) 2011 - 2012 Inria, University of Lille 1
*
* 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 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
*
* Contact: frascati@ow2.org
*
* Author: Christophe Munilla
*
* Contributor(s):
*
*/
package
org.ow2.frascati.osgi.test
;
/**
* Test in Eclipse Equinox
*/
public
class
FraSCAtiInEquinoxTest
extends
FraSCAtiInOSGiImplementationWidgetTest
{
}
\ No newline at end of file
frascati/osgi/frascati-in-osgi/bundles/frascati-modules/implementation-widget-test/felix/pom.xml
0 → 100644
View file @
b236297b
<?xml version="1.0"?>
<!--
* OW2 FraSCAti OSGi
*
* Copyright (c) 2011 - 2012 Inria, University of Lille 1
*
* 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 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
*
* Contact: frascati@ow2.org
*
* Author: Christophe Munilla
*
* Contributor(s):
*
-->
<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"
>
<modelVersion>
4.0.0
</modelVersion>
<parent>
<groupId>
org.ow2.frascati.osgi.fio.test
</groupId>
<artifactId>
frascati-implementation-widget-test
</artifactId>
<version>
1.5-SNAPSHOT
</version>
</parent>
<artifactId>
frascati-implementation-widget-test-felix
</artifactId>
<name>
FraSCAti in OSGi - Test Implementation Widget Bundle in Felix
</name>
<dependencies>
<dependency>
<groupId>
org.ow2.frascati.osgi.fio.test
</groupId>
<artifactId>
frascati-implementation-widget-test-framework
</artifactId>
<version>
1.5-SNAPSHOT
</version>
</dependency>
<dependency>
<groupId>
org.ow2.frascati.osgi.fio
</groupId>
<artifactId>
frascati-osgi-felix
</artifactId>
<version>
1.5-SNAPSHOT
</version>
</dependency>
<dependency>
<groupId>
org.apache.geronimo.specs
</groupId>
<artifactId>
geronimo-servlet_2.5_spec
</artifactId>
<version>
1.2
</version>
<scope>
provided
</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-dependency-plugin
</artifactId>
</plugin>
<plugin>
<artifactId>
maven-deploy-plugin
</artifactId>
<configuration>
<skip>
true
</skip>
</configuration>
</plugin>
<plugin>
<artifactId>
maven-jar-plugin
</artifactId>
<configuration>
<excludes>
<exclude>
**/*.jar
</exclude>
</excludes>
</configuration>
</plugin>
</plugins>
</build>
</project>
frascati/osgi/frascati-in-osgi/bundles/frascati-modules/implementation-widget-test/felix/src/test/java/org/ow2/frascati/osgi/test/FraSCAtiInFelixTest.java
0 → 100644
View file @
b236297b
/**
* OW2 FraSCAti OSGi
* Copyright (c) 2011 - 2012 Inria, University of Lille 1
*
* 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 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
*
* Contact: frascati@ow2.org
*
* Author: Christophe Munilla
*
* Contributor(s):
*
*/
package
org.ow2.frascati.osgi.test
;
/**
* Test in Apache Felix
*/
public
class
FraSCAtiInFelixTest
extends
FraSCAtiInOSGiImplementationWidgetTest
{
}
\ No newline at end of file
frascati/osgi/frascati-in-osgi/bundles/frascati-modules/implementation-widget-test/framework/pom.xml
0 → 100644
View file @
b236297b
<?xml version="1.0"?>
<!--
* OW2 FraSCAti OSGi
*
* Copyright (c) 2011 - 2012 Inria, University of Lille 1
*
* 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 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
*
* Contact: frascati@ow2.org
*
* Author: Christophe Munilla
*
* Contributor(s):
*
-->
<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"
>
<modelVersion>
4.0.0
</modelVersion>
<parent>
<groupId>
org.ow2.frascati.osgi.fio.test
</groupId>
<artifactId>
frascati-implementation-widget-test
</artifactId>
<version>
1.5-SNAPSHOT
</version>
</parent>
<artifactId>
frascati-implementation-widget-test-framework
</artifactId>
<name>
FraSCAti in OSGi - Test Implementation Widget Bundle in OSGi
</name>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-dependency-plugin
</artifactId>
<version>
2.0
</version>
<executions>
<execution>
<id>
copy-test-bundles
</id>
<phase>
generate-resources
</phase>
<goals>
<goal>
copy
</goal>
</goals>
<configuration>
<outputDirectory>
${project.basedir}/target/classes
</outputDirectory>
<stripVersion>
true
</stripVersion>
<failBuild>
false
</failBuild>
<failOnMissingClassifierArtifact>
true
</failOnMissingClassifierArtifact>
<failOnWarning>
false
</failOnWarning>
<overWriteIfNewer>
true
</overWriteIfNewer>
<artifactItems>
<artifactItem>
<groupId>
org.apache.felix
</groupId>
<artifactId>
org.apache.felix.http.bundle
</artifactId>
<version>
2.2.0
</version>
</artifactItem>
<artifactItem>
<groupId>
org.apache.felix
</groupId>
<artifactId>
org.apache.felix.http.jetty
</artifactId>
<version>
2.2.0
</version>
</artifactItem>
<artifactItem>
<groupId>
org.apache.felix
</groupId>
<artifactId>
org.apache.felix.webconsole
</artifactId>
<version>
3.1.8
</version>
</artifactItem>
<artifactItem>
<groupId>
org.osgi
</groupId>
<artifactId>
org.osgi.enterprise
</artifactId>
<version>
4.2.0
</version>
</artifactItem>
<artifactItem>
<groupId>
org.osgi
</groupId>
<artifactId>
org.osgi.compendium
</artifactId>
<version>
4.2.0
</version>
</artifactItem>
</artifactItems>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-dependency-plugin
</artifactId>
</plugin>
</plugins>
</build>
</project>
frascati/osgi/frascati-in-osgi/bundles/frascati-modules/implementation-widget-test/framework/src/main/java/org/ow2/frascati/osgi/test/FraSCAtiInOSGiImplementationWidgetTest.java
0 → 100644
View file @
b236297b
/**
* OW2 FraSCAti OSGi
* Copyright (c) 2011 - 2012 Inria, University of Lille 1
*
* 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 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
*
* Contact: frascati@ow2.org
*
* Author: Christophe Munilla
*
* Contributor(s):
*
*/
package
org.ow2.frascati.osgi.test
;
//import static org.junit.Assert.assertEquals;
import
org.junit.Test
;
import
java.io.File
;
//import java.net.URL;
import
org.ow2.frascati.osgi.test.FraSCAtiInOSGiTest
;
//import com.gargoylesoftware.htmlunit.BrowserVersion;
//import com.gargoylesoftware.htmlunit.Page;
//import com.gargoylesoftware.htmlunit.WebClient;
//import com.gargoylesoftware.htmlunit.WebRequest;
//import com.gargoylesoftware.htmlunit.WebResponse;
//import com.gargoylesoftware.htmlunit.WebWindow;
//import com.gargoylesoftware.htmlunit.html.HtmlForm;
//import com.gargoylesoftware.htmlunit.html.HtmlPage;
//import com.gargoylesoftware.htmlunit.html.HtmlSubmitInput;
//import com.gargoylesoftware.htmlunit.html.HtmlTextInput;
//import com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine;
/**
* FraSCAti in OSGi Implementation Widget Bundle TestCase
*/
public
abstract
class
FraSCAtiInOSGiImplementationWidgetTest
extends
FraSCAtiInOSGiTest
{
@Test
public
void
testImplementationWidget
()
throws
Exception
{
System
.
out
.
println
(
"... do testImplementationWidget"
);
loadSCA
(
new
File
(
"target/test-classes/helloworld-widget.jar"
).
getAbsoluteFile
().
toURI
().
toURL
(),
"helloworld-widget.composite"
);
// WebClient webClient = new WebClient();
// URL widgetURL = new URL("http://localhost:8765/SayHelloWidget/widget.html");
// HtmlPage page1 = webClient.getPage(widgetURL);
//
// // Get the form that we are dealing with and within that form,
// // find the submit button and the field that we want to change.
// HtmlForm form = page1.getForms().get(0);
// HtmlSubmitInput button = form.getInputByName("sayHello");
// HtmlTextInput textField = form.getInputByName("message");
//
// // Change the value of the text field
// textField.setValueAttribute("test");
//
// // Now submit the form by clicking the button and get back the second page.
// HtmlPage page2 = button.click();
// form = page2.getForms().get(0);
// assertEquals("Hello test!", form.getElementById("sayHelloResponse").getTextContent());
// webClient.closeAllWindows();
unloadSCA
(
"helloworld-widget"
);
System
.
out
.
println
(
"... testImplementationWidget done"
);
}
}
\ No newline at end of file
frascati/osgi/frascati-in-osgi/bundles/frascati-modules/implementation-widget-test/install_bundles.xml
0 → 100644
View file @
b236297b
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
<properties>
<entry
key=
"w"
>
bundle-frascati-api.jar:true
</entry>
<entry
key=
"v"
>
bundle-frascati-osgi-r4.jar:true
</entry>
<entry
key=
"u"
>
bundle-frascati-explorer.jar:false
</entry>
<entry
key=
"t"
>
bundle-frascati-eclipse.jar:true
</entry>
<entry
key=
"s"
>
bundle-frascati-binding-http.jar:true
</entry>
<entry
key=
"r"
>
bundle-frascati-binding-rmi.jar:false
</entry>
<entry
key=
"q"
>
bundle-frascati-binding-jsonrpc.jar:false
</entry>
<entry
key=
"p"
>
bundle-frascati-binding-ws.jar:true
</entry>
<entry
key=
"o"
>
bundle-frascati-binding-rest.jar:false
</entry>
<entry
key=
"n"
>
bundle-frascati-binding-jms.jar:false
</entry>
<entry
key=
"m"
>
bundle-frascati-web-explorer.jar:false
</entry>
<entry
key=
"l"
>
bundle-frascati-introspection.jar:false
</entry>
<entry
key=
"k"
>
bundle-frascati-introspection-fscript.jar:false
</entry>
<entry
key=
"j"
>
bundle-frascati-fscript.jar:false
</entry>
<entry
key=
"i"
>
bundle-frascati-implementation-widget.jar:true
</entry>
<entry
key=
"h"
>
bundle-frascati-implementation-bpel.jar:false
</entry>
<entry
key=
"g"
>
bundle-frascati-implementation-scripts.jar:false
</entry>
<entry
key=
"f"
>
bundle-frascati-implementation-xquery.jar:false
</entry>
<entry
key=
"e"
>
bundle-frascati-implementation-spring.jar:false
</entry>
<entry
key=
"d"
>
bundle-frascati-implementation-velocity.jar:false
</entry>
<entry
key=
"c"
>
bundle-frascati-cxf-libs.jar:true
</entry>
<entry
key=
"b"
>
bundle-frascati-resources.jar:true
</entry>
<entry
key=
"a"
>
bundle-frascati-core.jar:true
</entry>
</properties>
frascati/osgi/frascati-in-osgi/bundles/frascati-modules/implementation-widget-test/jboss/pom.xml
0 → 100644
View file @
b236297b
<?xml version="1.0"?>
<!--
* OW2 FraSCAti OSGi
*
* Copyright (c) 2011 - 2012 Inria, University of Lille 1
*
* 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 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
*
* Contact: frascati@ow2.org
*
* Author: Christophe Munilla
*
* Contributor(s):
*
-->
<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"
>
<modelVersion>
4.0.0
</modelVersion>
<parent>
<groupId>
org.ow2.frascati.osgi.fio.test
</groupId>
<artifactId>
frascati-implementation-widget-test
</artifactId>
<version>
1.5-SNAPSHOT
</version>
</parent>
<artifactId>
frascati-implementation-widget-test-jboss
</artifactId>
<name>
FraSCAti in OSGi - Test Implementation Widget Bundle in JBoss
</name>
<dependencies>
<dependency>
<groupId>
org.ow2.frascati.osgi.fio.test
</groupId>
<artifactId>
frascati-implementation-widget-test-framework
</artifactId>
<version>
1.5-SNAPSHOT
</version>
</dependency>
<dependency>
<groupId>
org.ow2.frascati.osgi.fio
</groupId>
<artifactId>
frascati-osgi-jboss
</artifactId>
<version>
1.5-SNAPSHOT
</version>
</dependency>
<dependency>
<groupId>
org.apache.geronimo.specs
</groupId>
<artifactId>
geronimo-servlet_2.5_spec
</artifactId>
<version>
1.2
</version>
<scope>
provided
</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-dependency-plugin
</artifactId>
</plugin>
<plugin>
<artifactId>
maven-deploy-plugin
</artifactId>
<configuration>
<skip>
true
</skip>
</configuration>
</plugin>
<plugin>
<artifactId>
maven-jar-plugin
</artifactId>
<configuration>
<excludes>
<exclude>
**/*.jar
</exclude>
</excludes>
</configuration>
</plugin>
</plugins>
</build>
</project>
frascati/osgi/frascati-in-osgi/bundles/frascati-modules/implementation-widget-test/jboss/src/test/java/org/ow2/frascati/osgi/test/FraSCAtiInJBossTest.java
0 → 100644
View file @
b236297b
/**
* OW2 FraSCAti OSGi
* Copyright (c) 2011 - 2012 Inria, University of Lille 1
*
* 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 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