You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@aries.apache.org by am...@apache.org on 2026/04/30 20:28:23 UTC
(aries-rsa) branch master updated (0cb48b9d -> 43dba1cf)
This is an automated email from the ASF dual-hosted git repository.
amichair pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/aries-rsa.git
from 0cb48b9d Bump org.mockito:mockito-core from 5.18.0 to 5.23.0 (#97)
new a301e348 Remove repository module
new 43985cc0 Remove empty test class
new fd2f5875 Update JVM debug parameter in itests
new 43dba1cf Move dependency versions to parent dependencyManagement
The 4 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
discovery/command/pom.xml | 1 -
discovery/local/pom.xml | 9 -
discovery/mdns/pom.xml | 4 -
discovery/tcp/pom.xml | 3 -
discovery/zookeeper/pom.xml | 2 -
features/pom.xml | 1 -
itests/felix/pom.xml | 1 -
.../apache/aries/rsa/itests/felix/RsaTestBase.java | 2 +-
itests/pom.xml | 10 -
parent/pom.xml | 230 ++++++++++++++-------
pom.xml | 1 -
provider/fastbin/pom.xml | 2 -
.../aries/rsa/provider/fastbin/ManagerTest.java | 108 ----------
provider/tcp/pom.xml | 1 -
repository/pom.xml | 87 --------
15 files changed, 161 insertions(+), 301 deletions(-)
delete mode 100644 provider/fastbin/src/test/java/org/apache/aries/rsa/provider/fastbin/ManagerTest.java
delete mode 100644 repository/pom.xml
(aries-rsa) 03/04: Update JVM debug parameter in itests
Posted by am...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
amichair pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/aries-rsa.git
commit fd2f5875f2653f55b3c59d24e4ec2dbdc35289e4
Author: Amichai Rothman <am...@apache.org>
AuthorDate: Mon Mar 23 09:11:17 2026 +0200
Update JVM debug parameter in itests
---
.../src/test/java/org/apache/aries/rsa/itests/felix/RsaTestBase.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/itests/felix/src/test/java/org/apache/aries/rsa/itests/felix/RsaTestBase.java b/itests/felix/src/test/java/org/apache/aries/rsa/itests/felix/RsaTestBase.java
index 360e4432..ce78aeeb 100644
--- a/itests/felix/src/test/java/org/apache/aries/rsa/itests/felix/RsaTestBase.java
+++ b/itests/felix/src/test/java/org/apache/aries/rsa/itests/felix/RsaTestBase.java
@@ -158,7 +158,7 @@ public class RsaTestBase {
}
protected static Option debug() {
- return CoreOptions.vmOption("-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005");
+ return CoreOptions.vmOption("-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=5005");
}
protected static Option rsaDiscoveryConfig() {
(aries-rsa) 01/04: Remove repository module
Posted by am...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
amichair pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/aries-rsa.git
commit a301e348fdf1a78e7648847e46d1fb8460397c59
Author: Amichai Rothman <am...@apache.org>
AuthorDate: Sun Mar 22 15:02:19 2026 +0200
Remove repository module
---
pom.xml | 1 -
repository/pom.xml | 87 ------------------------------------------------------
2 files changed, 88 deletions(-)
diff --git a/pom.xml b/pom.xml
index 426e286a..108f9cc7 100644
--- a/pom.xml
+++ b/pom.xml
@@ -55,7 +55,6 @@
<module>provider</module>
<module>discovery</module>
<module>examples</module>
- <module>repository</module>
<module>features</module>
<module>itests</module>
</modules>
diff --git a/repository/pom.xml b/repository/pom.xml
deleted file mode 100644
index 8d1abcec..00000000
--- a/repository/pom.xml
+++ /dev/null
@@ -1,87 +0,0 @@
-<?xml version='1.0' encoding='UTF-8' ?>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements. See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership. The ASF licenses this file
- to you under the Apache License, Version 2.0 (the
- "License"); you may not use this file except in compliance
- with the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied. See the License for the
- specific language governing permissions and limitations
- under the License.
--->
-<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/xsd/maven-4.0.0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <parent>
- <groupId>org.apache.aries.rsa</groupId>
- <artifactId>org.apache.aries.rsa.parent</artifactId>
- <version>2.0.0-SNAPSHOT</version>
- <relativePath>../parent/pom.xml</relativePath>
- </parent>
- <artifactId>repository</artifactId>
- <packaging>pom</packaging>
- <name>Aries Remote Service Admin Repository</name>
- <dependencies>
- <dependency>
- <groupId>org.apache.aries.rsa</groupId>
- <artifactId>org.apache.aries.rsa.core</artifactId>
- <version>${project.version}</version>
- </dependency>
- <dependency>
- <groupId>org.apache.aries.rsa</groupId>
- <artifactId>org.apache.aries.rsa.spi</artifactId>
- </dependency>
- <dependency>
- <groupId>org.apache.aries.rsa</groupId>
- <artifactId>org.apache.aries.rsa.topology-manager</artifactId>
- <version>${project.version}</version>
- </dependency>
- <dependency>
- <groupId>org.apache.aries.rsa.provider</groupId>
- <artifactId>org.apache.aries.rsa.provider.tcp</artifactId>
- <version>${project.version}</version>
- </dependency>
- <dependency>
- <groupId>org.apache.aries.rsa.discovery</groupId>
- <artifactId>org.apache.aries.rsa.discovery.local</artifactId>
- <version>${project.version}</version>
- </dependency>
- <dependency>
- <groupId>org.apache.aries.rsa.discovery</groupId>
- <artifactId>org.apache.aries.rsa.discovery.zookeeper</artifactId>
- <version>${project.version}</version>
- </dependency>
- <dependency>
- <groupId>org.apache.aries.rsa.discovery</groupId>
- <artifactId>org.apache.aries.rsa.discovery.config</artifactId>
- <version>${project.version}</version>
- </dependency>
- <dependency>
- <groupId>org.apache.aries.rsa.discovery</groupId>
- <artifactId>org.apache.aries.rsa.discovery.command</artifactId>
- <version>${project.version}</version>
- </dependency>
- <dependency>
- <groupId>org.apache.aries.rsa.examples.echotcp</groupId>
- <artifactId>org.apache.aries.rsa.examples.echotcp.service</artifactId>
- <version>${project.version}</version>
- </dependency>
- <dependency>
- <groupId>org.apache.aries.rsa.examples.echotcp</groupId>
- <artifactId>org.apache.aries.rsa.examples.echotcp.consumer</artifactId>
- <version>${project.version}</version>
- </dependency>
- <dependency>
- <groupId>org.ops4j.pax.logging</groupId>
- <artifactId>pax-logging-service</artifactId>
- <version>1.11.17</version>
- </dependency>
- </dependencies>
-</project>
(aries-rsa) 04/04: Move dependency versions to parent dependencyManagement
Posted by am...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
amichair pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/aries-rsa.git
commit 43dba1cfa60fbd00f11b3753a100de56f08d9678
Author: Amichai Rothman <am...@apache.org>
AuthorDate: Thu Apr 30 11:40:56 2026 +0300
Move dependency versions to parent dependencyManagement
---
discovery/command/pom.xml | 1 -
discovery/local/pom.xml | 9 --
discovery/mdns/pom.xml | 4 -
discovery/tcp/pom.xml | 3 -
discovery/zookeeper/pom.xml | 2 -
features/pom.xml | 1 -
itests/felix/pom.xml | 1 -
itests/pom.xml | 10 --
parent/pom.xml | 230 ++++++++++++++++++++++++++++++--------------
provider/fastbin/pom.xml | 2 -
provider/tcp/pom.xml | 1 -
11 files changed, 160 insertions(+), 104 deletions(-)
diff --git a/discovery/command/pom.xml b/discovery/command/pom.xml
index f06d9fbe..e85b899c 100644
--- a/discovery/command/pom.xml
+++ b/discovery/command/pom.xml
@@ -46,7 +46,6 @@
<dependency>
<groupId>org.apache.karaf.shell</groupId>
<artifactId>org.apache.karaf.shell.core</artifactId>
- <version>4.4.10</version>
<scope>provided</scope>
</dependency>
</dependencies>
diff --git a/discovery/local/pom.xml b/discovery/local/pom.xml
index 217488f4..b6100de5 100644
--- a/discovery/local/pom.xml
+++ b/discovery/local/pom.xml
@@ -47,7 +47,6 @@
<dependency>
<groupId>xmlunit</groupId>
<artifactId>xmlunit</artifactId>
- <version>1.6</version>
<scope>test</scope>
</dependency>
@@ -66,14 +65,6 @@
<plugin>
<groupId>org.jvnet.jaxb</groupId>
<artifactId>jaxb-maven-plugin</artifactId>
- <version>4.0.12</version>
- <executions>
- <execution>
- <goals>
- <goal>generate</goal>
- </goals>
- </execution>
- </executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
diff --git a/discovery/mdns/pom.xml b/discovery/mdns/pom.xml
index 6308e5bb..4791cf77 100644
--- a/discovery/mdns/pom.xml
+++ b/discovery/mdns/pom.xml
@@ -24,23 +24,19 @@
<dependency>
<groupId>org.osgi</groupId>
<artifactId>org.osgi.service.component.annotations</artifactId>
- <version>1.5.1</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.osgi</groupId>
<artifactId>org.osgi.service.jaxrs</artifactId>
- <version>1.0.1</version>
</dependency>
<dependency>
<groupId>jakarta.ws.rs</groupId>
<artifactId>jakarta.ws.rs-api</artifactId>
- <version>2.1.6</version>
</dependency>
<dependency>
<groupId>org.jmdns</groupId>
<artifactId>jmdns</artifactId>
- <version>3.6.3</version>
</dependency>
</dependencies>
</project>
\ No newline at end of file
diff --git a/discovery/tcp/pom.xml b/discovery/tcp/pom.xml
index a96b7811..bb08cdcd 100644
--- a/discovery/tcp/pom.xml
+++ b/discovery/tcp/pom.xml
@@ -48,14 +48,11 @@
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
- <version>5.23.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.osgi</groupId>
<artifactId>org.osgi.service.remoteserviceadmin</artifactId>
- <version>1.1.0</version>
- <scope>compile</scope>
</dependency>
</dependencies>
diff --git a/discovery/zookeeper/pom.xml b/discovery/zookeeper/pom.xml
index 67ccb1db..ad44a358 100644
--- a/discovery/zookeeper/pom.xml
+++ b/discovery/zookeeper/pom.xml
@@ -93,13 +93,11 @@
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
- <version>5.23.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest-all</artifactId>
- <version>1.3</version>
<scope>test</scope>
</dependency>
<dependency>
diff --git a/features/pom.xml b/features/pom.xml
index 6f3110b3..9c107239 100644
--- a/features/pom.xml
+++ b/features/pom.xml
@@ -153,7 +153,6 @@
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
- <version>3.6.1</version>
<executions>
<execution>
<id>attach-artifacts</id>
diff --git a/itests/felix/pom.xml b/itests/felix/pom.xml
index df3db818..e9dd8763 100644
--- a/itests/felix/pom.xml
+++ b/itests/felix/pom.xml
@@ -63,7 +63,6 @@
<dependency>
<groupId>org.osgi</groupId>
<artifactId>org.osgi.util.promise</artifactId>
- <version>1.3.0</version>
</dependency>
<dependency>
<groupId>org.osgi</groupId>
diff --git a/itests/pom.xml b/itests/pom.xml
index c802567f..4385152b 100644
--- a/itests/pom.xml
+++ b/itests/pom.xml
@@ -43,11 +43,6 @@
<dependencyManagement>
<dependencies>
- <dependency>
- <groupId>org.apache.geronimo.specs</groupId>
- <artifactId>geronimo-atinject_1.0_spec</artifactId>
- <version>1.2</version>
- </dependency>
<dependency>
<groupId>org.ops4j.pax.exam</groupId>
<artifactId>pax-exam-junit4</artifactId>
@@ -78,11 +73,6 @@
<artifactId>pax-exam-link-mvn</artifactId>
<version>${exam.version}</version>
</dependency>
- <dependency>
- <groupId>org.ops4j.pax.url</groupId>
- <artifactId>pax-url-aether</artifactId>
- <version>3.0.3</version>
- </dependency>
</dependencies>
</dependencyManagement>
diff --git a/parent/pom.xml b/parent/pom.xml
index 294a2ece..f9cc6267 100644
--- a/parent/pom.xml
+++ b/parent/pom.xml
@@ -162,6 +162,18 @@
<version>4.13.2</version>
<scope>test</scope>
</dependency>
+ <dependency>
+ <groupId>org.mockito</groupId>
+ <artifactId>mockito-core</artifactId>
+ <version>5.23.0</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.hamcrest</groupId>
+ <artifactId>hamcrest-all</artifactId>
+ <version>1.3</version>
+ <scope>test</scope>
+ </dependency>
<dependency>
<groupId>org.easymock</groupId>
<artifactId>easymock</artifactId>
@@ -175,77 +187,138 @@
<scope>test</scope>
</dependency>
<dependency>
- <groupId>org.apache.servicemix.bundles</groupId>
- <artifactId>org.apache.servicemix.bundles.zookeeper</artifactId>
- <version>${zookeeper.version}</version>
- <exclusions>
- <exclusion>
- <groupId>com.sun.jdmk</groupId>
- <artifactId>jmxtools</artifactId>
- </exclusion>
- <exclusion>
- <groupId>com.sun.jmx</groupId>
- <artifactId>jmxri</artifactId>
- </exclusion>
- <exclusion>
- <artifactId>slf4j-log4j12</artifactId>
- <groupId>org.slf4j</groupId>
- </exclusion>
- <exclusion>
- <artifactId>jline</artifactId>
- <groupId>jline</groupId>
- </exclusion>
- <exclusion>
- <artifactId>netty</artifactId>
- <groupId>io.netty</groupId>
- </exclusion>
- <exclusion>
- <artifactId>log4j</artifactId>
- <groupId>log4j</groupId>
- </exclusion>
- <exclusion>
- <groupId>io.netty</groupId>
- <artifactId>netty</artifactId>
- </exclusion>
- </exclusions>
- </dependency>
- <dependency>
- <groupId>io.dropwizard.metrics</groupId>
- <artifactId>metrics-core</artifactId>
- <version>4.2.38</version>
- <exclusions>
- <exclusion>
- <groupId>org.slf4j</groupId>
- <artifactId>slf4j-api</artifactId>
- </exclusion>
- </exclusions>
- </dependency>
- <dependency>
- <groupId>org.xerial.snappy</groupId>
- <artifactId>snappy-java</artifactId>
- <version>1.1.10.8</version>
- </dependency>
- <dependency>
- <groupId>org.apache.felix</groupId>
- <artifactId>org.apache.felix.converter</artifactId>
- <version>1.0.18</version>
- </dependency>
+ <groupId>org.apache.servicemix.bundles</groupId>
+ <artifactId>org.apache.servicemix.bundles.zookeeper</artifactId>
+ <version>${zookeeper.version}</version>
+ <exclusions>
+ <exclusion>
+ <groupId>com.sun.jdmk</groupId>
+ <artifactId>jmxtools</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>com.sun.jmx</groupId>
+ <artifactId>jmxri</artifactId>
+ </exclusion>
+ <exclusion>
+ <artifactId>slf4j-log4j12</artifactId>
+ <groupId>org.slf4j</groupId>
+ </exclusion>
+ <exclusion>
+ <artifactId>jline</artifactId>
+ <groupId>jline</groupId>
+ </exclusion>
+ <exclusion>
+ <artifactId>netty</artifactId>
+ <groupId>io.netty</groupId>
+ </exclusion>
+ <exclusion>
+ <artifactId>log4j</artifactId>
+ <groupId>log4j</groupId>
+ </exclusion>
+ <exclusion>
+ <groupId>io.netty</groupId>
+ <artifactId>netty</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+ <dependency>
+ <groupId>io.dropwizard.metrics</groupId>
+ <artifactId>metrics-core</artifactId>
+ <version>4.2.38</version>
+ <exclusions>
+ <exclusion>
+ <groupId>org.slf4j</groupId>
+ <artifactId>slf4j-api</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+ <dependency>
+ <groupId>org.xerial.snappy</groupId>
+ <artifactId>snappy-java</artifactId>
+ <version>1.1.10.8</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.felix</groupId>
+ <artifactId>org.apache.felix.converter</artifactId>
+ <version>1.0.18</version>
+ </dependency>
+
+ <dependency>
+ <groupId>jakarta.xml.bind</groupId>
+ <artifactId>jakarta.xml.bind-api</artifactId>
+ <version>4.0.5</version>
+ </dependency>
+ <dependency>
+ <groupId>com.sun.xml.bind</groupId>
+ <artifactId>jaxb-osgi</artifactId>
+ <version>4.0.5</version>
+ </dependency>
+ <dependency>
+ <groupId>jakarta.activation</groupId>
+ <artifactId>jakarta.activation-api</artifactId>
+ <version>2.1.4</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.osgi</groupId>
+ <artifactId>org.osgi.service.remoteserviceadmin</artifactId>
+ <version>1.1.0</version>
+ </dependency>
+ <dependency>
+ <groupId>org.osgi</groupId>
+ <artifactId>org.osgi.util.promise</artifactId>
+ <version>1.3.0</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.osgi</groupId>
+ <artifactId>org.osgi.service.component.annotations</artifactId>
+ <version>1.5.1</version>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.osgi</groupId>
+ <artifactId>org.osgi.service.jaxrs</artifactId>
+ <version>1.0.1</version>
+ </dependency>
+ <dependency>
+ <groupId>jakarta.ws.rs</groupId>
+ <artifactId>jakarta.ws.rs-api</artifactId>
+ <version>2.1.6</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.jmdns</groupId>
+ <artifactId>jmdns</artifactId>
+ <version>3.6.3</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.karaf.shell</groupId>
+ <artifactId>org.apache.karaf.shell.core</artifactId>
+ <version>4.4.10</version>
+ <scope>provided</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>xmlunit</groupId>
+ <artifactId>xmlunit</artifactId>
+ <version>1.6</version>
+ <scope>test</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.geronimo.specs</groupId>
+ <artifactId>geronimo-atinject_1.0_spec</artifactId>
+ <version>1.2</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.ops4j.pax.url</groupId>
+ <artifactId>pax-url-aether</artifactId>
+ <version>3.0.3</version>
+ </dependency>
- <dependency>
- <groupId>jakarta.xml.bind</groupId>
- <artifactId>jakarta.xml.bind-api</artifactId>
- <version>4.0.5</version>
- </dependency>
- <dependency>
- <groupId>com.sun.xml.bind</groupId>
- <artifactId>jaxb-osgi</artifactId>
- <version>4.0.5</version>
- </dependency>
- <dependency>
- <groupId>jakarta.activation</groupId>
- <artifactId>jakarta.activation-api</artifactId>
- <version>2.1.4</version>
- </dependency>
</dependencies>
</dependencyManagement>
@@ -281,6 +354,23 @@
<doclint>none</doclint>
</configuration>
</plugin>
+ <plugin>
+ <groupId>org.jvnet.jaxb</groupId>
+ <artifactId>jaxb-maven-plugin</artifactId>
+ <version>4.0.12</version>
+ <executions>
+ <execution>
+ <goals>
+ <goal>generate</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>build-helper-maven-plugin</artifactId>
+ <version>3.6.1</version>
+ </plugin>
</plugins>
</pluginManagement>
diff --git a/provider/fastbin/pom.xml b/provider/fastbin/pom.xml
index 95905e03..dbcf8658 100644
--- a/provider/fastbin/pom.xml
+++ b/provider/fastbin/pom.xml
@@ -60,7 +60,6 @@
<dependency>
<groupId>org.osgi</groupId>
<artifactId>org.osgi.util.promise</artifactId>
- <version>1.3.0</version>
<optional>true</optional>
</dependency>
</dependencies>
@@ -85,7 +84,6 @@
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
- <version>3.6.1</version>
<executions>
<execution>
<id>add-test-source</id>
diff --git a/provider/tcp/pom.xml b/provider/tcp/pom.xml
index 306808f5..2d8ef252 100644
--- a/provider/tcp/pom.xml
+++ b/provider/tcp/pom.xml
@@ -45,7 +45,6 @@
<dependency>
<groupId>org.osgi</groupId>
<artifactId>org.osgi.util.promise</artifactId>
- <version>1.3.0</version>
</dependency>
<dependency>
<groupId>org.apache.felix</groupId>
(aries-rsa) 02/04: Remove empty test class
Posted by am...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
amichair pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/aries-rsa.git
commit 43985cc06ca9595aef63f0c7bb1bcb8823100827
Author: Amichai Rothman <am...@apache.org>
AuthorDate: Thu Mar 26 18:00:05 2026 +0200
Remove empty test class
---
.../aries/rsa/provider/fastbin/ManagerTest.java | 108 ---------------------
1 file changed, 108 deletions(-)
diff --git a/provider/fastbin/src/test/java/org/apache/aries/rsa/provider/fastbin/ManagerTest.java b/provider/fastbin/src/test/java/org/apache/aries/rsa/provider/fastbin/ManagerTest.java
deleted file mode 100644
index 3bf5d48c..00000000
--- a/provider/fastbin/src/test/java/org/apache/aries/rsa/provider/fastbin/ManagerTest.java
+++ /dev/null
@@ -1,108 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.aries.rsa.provider.fastbin;
-
-public class ManagerTest {
-
- /*
- @Test
- public void testManager() throws Exception {
-
- ZKServerFactoryBean zkServerFactoryBean = null;
-
- try {
-
- int zooKeeperPort = getFreePort();
- int serverPort = getFreePort();
-
- zkServerFactoryBean = new ZKServerFactoryBean();
- zkServerFactoryBean.setPurge(true);
- zkServerFactoryBean.setClientPortAddress(new InetSocketAddress("localhost", zooKeeperPort));
- zkServerFactoryBean.afterPropertiesSet();
-
- CuratorFrameworkFactory.Builder builder = CuratorFrameworkFactory.builder()
- .connectString("localhost:" + zooKeeperPort)
- .retryPolicy(new RetryOneTime(1000))
- .connectionTimeoutMs(60000);
-
- CuratorFramework curator = builder.build();
- curator.start();
- curator.getZookeeperClient().blockUntilConnectedOrTimedOut();
-
- BundleContext bundleContext = createMock(BundleContext.class);
- ServiceRegistration registration = createMock(ServiceRegistration.class);
- Manager manager = new Manager(bundleContext, curator, "tcp://localhost:" + serverPort, "localhost", TimeUnit.MINUTES.toMillis(5));
-
- bundleContext.addServiceListener(manager, "(service.exported.interfaces=*)");
- expect(bundleContext.getProperty("org.osgi.framework.uuid")).andReturn("the-framework-uuid");
- expect(bundleContext.registerService(
- EasyMock.<String[]>anyObject(),
- same(manager),
- EasyMock.<Dictionary>same(null))).andReturn(registration);
- expect(bundleContext.getServiceReferences((String) null, "(service.exported.interfaces=*)")).andReturn(null);
-
- replay(bundleContext, registration);
-
- manager.init();
-
- verify(bundleContext, registration);
-
- reset(bundleContext, registration);
-
- BundleContext expBundleContext = createMock(BundleContext.class);
- Bundle expBundle = createMock(Bundle.class);
- ServiceReference reference = createMock(ServiceReference.class);
- final Properties props = new Properties();
- props.put(Constants.OBJECTCLASS, new String[]{ConfigurationAdmin.class.getName()});
- expect(reference.getProperty(EasyMock.<String>anyObject())).andAnswer(new IAnswer<Object>() {
- public Object answer() throws Throwable {
- return props.get(EasyMock.getCurrentArguments()[0]);
- }
- }).anyTimes();
- expect(reference.getPropertyKeys()).andReturn(props.keySet().toArray(new String[0]));
- expect(reference.getBundle()).andReturn(expBundle).anyTimes();
- expect(expBundle.getBundleContext()).andReturn(expBundleContext).anyTimes();
- expect(expBundle.getState()).andReturn(Bundle.ACTIVE).anyTimes();
-
- replay(bundleContext, registration, reference, expBundleContext, expBundle);
-
- manager.serviceChanged(new ServiceEvent(ServiceEvent.REGISTERED, reference));
- Thread.sleep(1000);
-
- verify(bundleContext, registration, reference, expBundleContext, expBundle);
-
- }
- finally {
- try {
- zkServerFactoryBean.destroy();
- } catch (Throwable t) { }
- }
- }
-
- static int getFreePort() throws IOException {
- ServerSocket sock = new ServerSocket();
- try {
- sock.bind(new InetSocketAddress(0));
- return sock.getLocalPort();
- } finally {
- sock.close();
- }
- }
- */
-}