JBoss Remoting SVN: r4363 - remoting3/trunk/core/src/main/java/org/jboss/cx/remoting/core.
by jboss-remoting-commits@lists.jboss.org
Author: david.lloyd(a)jboss.com
Date: 2008-07-03 21:57:58 -0400 (Thu, 03 Jul 2008)
New Revision: 4363
Modified:
remoting3/trunk/core/src/main/java/org/jboss/cx/remoting/core/EndpointImpl.java
Log:
Lifecycle management goes to the container
Modified: remoting3/trunk/core/src/main/java/org/jboss/cx/remoting/core/EndpointImpl.java
===================================================================
--- remoting3/trunk/core/src/main/java/org/jboss/cx/remoting/core/EndpointImpl.java 2008-07-04 01:44:26 UTC (rev 4362)
+++ remoting3/trunk/core/src/main/java/org/jboss/cx/remoting/core/EndpointImpl.java 2008-07-04 01:57:58 UTC (rev 4363)
@@ -10,7 +10,6 @@
import org.jboss.cx.remoting.core.util.OrderedExecutorFactory;
import org.jboss.cx.remoting.spi.remote.RemoteClientEndpoint;
import org.jboss.cx.remoting.spi.remote.RemoteServiceEndpoint;
-import org.jboss.cx.remoting.util.AtomicStateMachine;
import org.jboss.cx.remoting.util.CollectionUtil;
import org.jboss.cx.remoting.util.NamingThreadFactory;
import org.jboss.cx.remoting.version.Version;
@@ -26,20 +25,8 @@
Logger.getLogger("org.jboss.cx.remoting").info("JBoss Remoting version %s", Version.VERSION);
}
- private enum State implements org.jboss.cx.remoting.util.State<State> {
- INITIAL,
- UP,
- DOWN;
-
- public boolean isReachable(final State dest) {
- return compareTo(dest) < 0;
- }
- }
-
private String name;
- private final AtomicStateMachine<State> state = AtomicStateMachine.start(State.INITIAL);
-
private OrderedExecutorFactory orderedExecutorFactory;
private ExecutorService executorService;
@@ -83,7 +70,6 @@
executor = executorService = Executors.newCachedThreadPool(new NamingThreadFactory(Executors.defaultThreadFactory(), "Remoting endpoint %s"));
setExecutor(executorService);
}
- state.requireTransition(State.INITIAL, State.UP);
}
public void stop() {
15 years, 9 months
JBoss Remoting SVN: r4362 - in remoting3/trunk: api/src/main/java/org/jboss/cx/remoting/spi/wrapper and 2 other directories.
by jboss-remoting-commits@lists.jboss.org
Author: david.lloyd(a)jboss.com
Date: 2008-07-03 21:44:26 -0400 (Thu, 03 Jul 2008)
New Revision: 4362
Removed:
remoting3/trunk/api/src/main/java/org/jboss/cx/remoting/Session.java
remoting3/trunk/api/src/main/java/org/jboss/cx/remoting/SessionListener.java
remoting3/trunk/api/src/main/java/org/jboss/cx/remoting/spi/wrapper/SessionWrapper.java
remoting3/trunk/mc-deployers/src/main/java/org/jboss/cx/remoting/beans/SessionBean.java
Modified:
remoting3/trunk/api/src/main/java/org/jboss/cx/remoting/Endpoint.java
remoting3/trunk/api/src/main/java/org/jboss/cx/remoting/spi/wrapper/EndpointWrapper.java
remoting3/trunk/core/src/main/java/org/jboss/cx/remoting/core/EndpointImpl.java
Log:
Get rid of sessions
Modified: remoting3/trunk/api/src/main/java/org/jboss/cx/remoting/Endpoint.java
===================================================================
--- remoting3/trunk/api/src/main/java/org/jboss/cx/remoting/Endpoint.java 2008-07-04 01:41:32 UTC (rev 4361)
+++ remoting3/trunk/api/src/main/java/org/jboss/cx/remoting/Endpoint.java 2008-07-04 01:44:26 UTC (rev 4362)
@@ -51,18 +51,4 @@
* @return the context source
*/
<I, O> RemoteServiceEndpoint<I, O> createService(RequestListener<I, O> requestListener) throws RemotingException;
-
- /**
- * Add a listener that is notified when a session is created.
- *
- * @param sessionListener the session listener
- */
- void addSessionListener(SessionListener sessionListener);
-
- /**
- * Remove a previously added session listener.
- *
- * @param sessionListener the session listener
- */
- void removeSessionListener(SessionListener sessionListener);
}
Deleted: remoting3/trunk/api/src/main/java/org/jboss/cx/remoting/Session.java
===================================================================
--- remoting3/trunk/api/src/main/java/org/jboss/cx/remoting/Session.java 2008-07-04 01:41:32 UTC (rev 4361)
+++ remoting3/trunk/api/src/main/java/org/jboss/cx/remoting/Session.java 2008-07-04 01:44:26 UTC (rev 4362)
@@ -1,48 +0,0 @@
-package org.jboss.cx.remoting;
-
-import java.util.concurrent.ConcurrentMap;
-
-/**
- * Represents a point-to-point relationship with another endpoint.
- * <p/>
- * An open session may be associated with one or more connections, or it may be connectionless (e.g. UDP).
- * <p/>
- * A session may be shared safely among multiple threads.
- */
-public interface Session extends Closeable<Session> {
- /**
- * Close this session. Any associated connection(s) will be closed. Calling this method multiple times has no
- * effect.
- */
- void close() throws RemotingException;
-
- /**
- * Get the session map.
- *
- * @return the session map
- */
- ConcurrentMap<Object, Object> getAttributes();
-
- /**
- * Get the name of the associated local endpoint, if any.
- *
- * @return the name, or {@code null} if the local endpoint is anonymous
- */
- String getLocalEndpointName();
-
- /**
- * Get the name of the associated remote endpoint, if any.
- *
- * @return the name, or {@code null} if the remote endpoint is anonymous
- */
- String getRemoteEndpointName();
-
- /**
- * Get the root client for this session.
- *
- * @param <I> the request type
- * @param <O> the reply type
- * @return the root client
- */
- <I, O> Client<I, O> getRootClient();
-}
Deleted: remoting3/trunk/api/src/main/java/org/jboss/cx/remoting/SessionListener.java
===================================================================
--- remoting3/trunk/api/src/main/java/org/jboss/cx/remoting/SessionListener.java 2008-07-04 01:41:32 UTC (rev 4361)
+++ remoting3/trunk/api/src/main/java/org/jboss/cx/remoting/SessionListener.java 2008-07-04 01:44:26 UTC (rev 4362)
@@ -1,14 +0,0 @@
-package org.jboss.cx.remoting;
-
-/**
- * A session listener. Called when a session is opened on an endpoint.
- */
-public interface SessionListener {
-
- /**
- * Receive notification that the session was opened.
- *
- * @param session the new session
- */
- void handleSessionOpened(Session session);
-}
Modified: remoting3/trunk/api/src/main/java/org/jboss/cx/remoting/spi/wrapper/EndpointWrapper.java
===================================================================
--- remoting3/trunk/api/src/main/java/org/jboss/cx/remoting/spi/wrapper/EndpointWrapper.java 2008-07-04 01:41:32 UTC (rev 4361)
+++ remoting3/trunk/api/src/main/java/org/jboss/cx/remoting/spi/wrapper/EndpointWrapper.java 2008-07-04 01:44:26 UTC (rev 4362)
@@ -1,17 +1,11 @@
package org.jboss.cx.remoting.spi.wrapper;
-import java.net.URI;
import java.util.concurrent.ConcurrentMap;
-import org.jboss.cx.remoting.Client;
-import org.jboss.cx.remoting.ClientSource;
import org.jboss.cx.remoting.Endpoint;
import org.jboss.cx.remoting.RemotingException;
import org.jboss.cx.remoting.RequestListener;
-import org.jboss.cx.remoting.Session;
-import org.jboss.cx.remoting.SessionListener;
import org.jboss.cx.remoting.spi.remote.RemoteClientEndpoint;
import org.jboss.cx.remoting.spi.remote.RemoteServiceEndpoint;
-import org.jboss.cx.remoting.util.AttributeMap;
/**
* A simple delegating wrapper for endpoints.
@@ -55,18 +49,4 @@
public <I, O> RemoteServiceEndpoint<I, O> createService(final RequestListener<I, O> requestListener) throws RemotingException {
return delegate.createService(requestListener);
}
-
- /**
- * {@inheritDoc} This implementation calls the same method on the delegate object.
- */
- public void addSessionListener(final SessionListener sessionListener) {
- delegate.addSessionListener(sessionListener);
- }
-
- /**
- * {@inheritDoc} This implementation calls the same method on the delegate object.
- */
- public void removeSessionListener(final SessionListener sessionListener) {
- delegate.removeSessionListener(sessionListener);
- }
}
Deleted: remoting3/trunk/api/src/main/java/org/jboss/cx/remoting/spi/wrapper/SessionWrapper.java
===================================================================
--- remoting3/trunk/api/src/main/java/org/jboss/cx/remoting/spi/wrapper/SessionWrapper.java 2008-07-04 01:41:32 UTC (rev 4361)
+++ remoting3/trunk/api/src/main/java/org/jboss/cx/remoting/spi/wrapper/SessionWrapper.java 2008-07-04 01:44:26 UTC (rev 4362)
@@ -1,69 +0,0 @@
-package org.jboss.cx.remoting.spi.wrapper;
-
-import java.util.concurrent.ConcurrentMap;
-import org.jboss.cx.remoting.CloseHandler;
-import org.jboss.cx.remoting.Client;
-import org.jboss.cx.remoting.RemotingException;
-import org.jboss.cx.remoting.Session;
-
-/**
- * A simple delegating wrapper for clients.
- */
-public class SessionWrapper implements Session {
- protected final Session delegate;
-
- /**
- * Construct a new instance. Calls will be sent to the given {@code delegate} by default.
- *
- * @param delegate the delegate client instance
- */
- protected SessionWrapper(final Session delegate) {
- this.delegate = delegate;
- }
-
- /**
- * {@inheritDoc} This implementation calls the same method on the delegate object.
- */
- public void close() throws RemotingException {
- delegate.close();
- }
-
- /**
- * {@inheritDoc} This implementation calls the same method on the delegate object.
- */
- public void addCloseHandler(final CloseHandler<Session> closeHandler) {
- delegate.addCloseHandler(new CloseHandler<Session>() {
- public void handleClose(final Session closed) {
- closeHandler.handleClose(SessionWrapper.this);
- }
- });
- }
-
- /**
- * {@inheritDoc} This implementation calls the same method on the delegate object.
- */
- public ConcurrentMap<Object, Object> getAttributes() {
- return delegate.getAttributes();
- }
-
- /**
- * {@inheritDoc} This implementation calls the same method on the delegate object.
- */
- public String getLocalEndpointName() {
- return delegate.getLocalEndpointName();
- }
-
- /**
- * {@inheritDoc} This implementation calls the same method on the delegate object.
- */
- public String getRemoteEndpointName() {
- return delegate.getRemoteEndpointName();
- }
-
- /**
- * {@inheritDoc} This implementation calls the same method on the delegate object.
- */
- public <I, O> Client<I, O> getRootClient() {
- return delegate.getRootClient();
- }
-}
Modified: remoting3/trunk/core/src/main/java/org/jboss/cx/remoting/core/EndpointImpl.java
===================================================================
--- remoting3/trunk/core/src/main/java/org/jboss/cx/remoting/core/EndpointImpl.java 2008-07-04 01:41:32 UTC (rev 4361)
+++ remoting3/trunk/core/src/main/java/org/jboss/cx/remoting/core/EndpointImpl.java 2008-07-04 01:44:26 UTC (rev 4362)
@@ -1,14 +1,11 @@
package org.jboss.cx.remoting.core;
-import java.util.LinkedHashSet;
-import java.util.Set;
import java.util.concurrent.ConcurrentMap;
import java.util.concurrent.Executor;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import org.jboss.cx.remoting.Endpoint;
import org.jboss.cx.remoting.RequestListener;
-import org.jboss.cx.remoting.SessionListener;
import org.jboss.cx.remoting.RemotingException;
import org.jboss.cx.remoting.core.util.OrderedExecutorFactory;
import org.jboss.cx.remoting.spi.remote.RemoteClientEndpoint;
@@ -42,7 +39,6 @@
private String name;
private final AtomicStateMachine<State> state = AtomicStateMachine.start(State.INITIAL);
- private final Set<SessionListener> sessionListeners = CollectionUtil.synchronizedSet(new LinkedHashSet<SessionListener>());
private OrderedExecutorFactory orderedExecutorFactory;
private ExecutorService executorService;
@@ -117,14 +113,4 @@
serviceEndpoint.open();
return serviceEndpoint;
}
-
- public void addSessionListener(final SessionListener sessionListener) {
- // TODO security check
- sessionListeners.add(sessionListener);
- }
-
- public void removeSessionListener(final SessionListener sessionListener) {
- // TODO security check
- sessionListeners.remove(sessionListener);
- }
}
Deleted: remoting3/trunk/mc-deployers/src/main/java/org/jboss/cx/remoting/beans/SessionBean.java
===================================================================
--- remoting3/trunk/mc-deployers/src/main/java/org/jboss/cx/remoting/beans/SessionBean.java 2008-07-04 01:41:32 UTC (rev 4361)
+++ remoting3/trunk/mc-deployers/src/main/java/org/jboss/cx/remoting/beans/SessionBean.java 2008-07-04 01:44:26 UTC (rev 4362)
@@ -1,60 +0,0 @@
-package org.jboss.cx.remoting.beans;
-
-import java.net.URI;
-import org.jboss.cx.remoting.util.AttributeMap;
-import org.jboss.cx.remoting.Endpoint;
-import org.jboss.cx.remoting.RemotingException;
-import org.jboss.cx.remoting.Session;
-
-/**
- *
- */
-public final class SessionBean {
- private URI destination;
- private AttributeMap attributeMap;
- private Endpoint endpoint;
-
- public URI getDestination() {
- return destination;
- }
-
- public void setDestination(final URI destination) {
- this.destination = destination;
- }
-
- public AttributeMap getAttributeMap() {
- return attributeMap;
- }
-
- public void setAttributeMap(final AttributeMap attributeMap) {
- this.attributeMap = attributeMap;
- }
-
- public Endpoint getEndpoint() {
- return endpoint;
- }
-
- public void setEndpoint(final Endpoint endpoint) {
- this.endpoint = endpoint;
- }
-
- // lifecycle
-
- private Session session;
-
- public void create() {
-
- }
-
- public void start() throws RemotingException {
-// session = endpoint.openSession(destination, attributeMap, null);
- }
-
- public void stop() throws RemotingException {
- session.close();
- }
-
- public void destroy() {
-
- }
-}
15 years, 9 months
JBoss Remoting SVN: r4361 - remoting3/trunk/api/src/main/java/org/jboss/cx/remoting.
by jboss-remoting-commits@lists.jboss.org
Author: david.lloyd(a)jboss.com
Date: 2008-07-03 21:41:32 -0400 (Thu, 03 Jul 2008)
New Revision: 4361
Modified:
remoting3/trunk/api/src/main/java/org/jboss/cx/remoting/Endpoint.java
Log:
import cleanup
Modified: remoting3/trunk/api/src/main/java/org/jboss/cx/remoting/Endpoint.java
===================================================================
--- remoting3/trunk/api/src/main/java/org/jboss/cx/remoting/Endpoint.java 2008-07-04 01:31:50 UTC (rev 4360)
+++ remoting3/trunk/api/src/main/java/org/jboss/cx/remoting/Endpoint.java 2008-07-04 01:41:32 UTC (rev 4361)
@@ -1,8 +1,6 @@
package org.jboss.cx.remoting;
-import java.net.URI;
import java.util.concurrent.ConcurrentMap;
-import org.jboss.cx.remoting.util.AttributeMap;
import org.jboss.cx.remoting.spi.remote.RemoteClientEndpoint;
import org.jboss.cx.remoting.spi.remote.RemoteServiceEndpoint;
15 years, 9 months
JBoss Remoting SVN: r4360 - remoting3/trunk.
by jboss-remoting-commits@lists.jboss.org
Author: david.lloyd(a)jboss.com
Date: 2008-07-03 21:31:50 -0400 (Thu, 03 Jul 2008)
New Revision: 4360
Modified:
remoting3/trunk/build.properties
remoting3/trunk/build.xml
Log:
Move a bit of config to the properties file
Modified: remoting3/trunk/build.properties
===================================================================
--- remoting3/trunk/build.properties 2008-07-04 01:29:11 UTC (rev 4359)
+++ remoting3/trunk/build.properties 2008-07-04 01:31:50 UTC (rev 4360)
@@ -16,6 +16,7 @@
lib.apiviz.path=${lib.apiviz.dir}/${lib.apiviz.name}
lib.apiviz.local=${local.repository}/${lib.apiviz.path}
lib.apiviz.remote=${remote.repository}/${lib.apiviz.path}
+lib.apiviz.doclet=net.gleamynode.apiviz.APIviz
lib.jaxb-api.version=2.0.5
lib.jaxb-api.name=jaxb-api.jar
Modified: remoting3/trunk/build.xml
===================================================================
--- remoting3/trunk/build.xml 2008-07-04 01:29:11 UTC (rev 4359)
+++ remoting3/trunk/build.xml 2008-07-04 01:31:50 UTC (rev 4360)
@@ -1152,7 +1152,7 @@
<delete dir="api/target/main/docs"/>
<mkdir dir="api/target/main/docs"/>
<javadoc destdir="api/target/main/docs" author="false" version="false" use="false" windowtitle="JBoss Remoting API">
- <doclet name="net.gleamynode.apiviz.APIviz" path="${lib.apiviz.local}"/>
+ <doclet name="${lib.apiviz.doclet}" path="${lib.apiviz.local}"/>
<packageset dir="api/src/main/java"/>
<packageset dir="util/src/main/java"/>
<packageset dir="standalone/src/main/java"/>
15 years, 9 months
JBoss Remoting SVN: r4359 - remoting3/trunk.
by jboss-remoting-commits@lists.jboss.org
Author: david.lloyd(a)jboss.com
Date: 2008-07-03 21:29:11 -0400 (Thu, 03 Jul 2008)
New Revision: 4359
Modified:
remoting3/trunk/build.properties
remoting3/trunk/build.xml
Log:
Add pretty pictures to javadoc
Modified: remoting3/trunk/build.properties
===================================================================
--- remoting3/trunk/build.properties 2008-07-04 01:09:27 UTC (rev 4358)
+++ remoting3/trunk/build.properties 2008-07-04 01:29:11 UTC (rev 4359)
@@ -9,6 +9,14 @@
# Dependencies - keep in alpha order by property name
# ===================================================
+lib.apiviz.version=1.0.5
+lib.apiviz.name=apiviz-${lib.apiviz.version}.jar
+lib.apiviz.license=lgpl
+lib.apiviz.dir=apiviz/${lib.apiviz.version}/lib
+lib.apiviz.path=${lib.apiviz.dir}/${lib.apiviz.name}
+lib.apiviz.local=${local.repository}/${lib.apiviz.path}
+lib.apiviz.remote=${remote.repository}/${lib.apiviz.path}
+
lib.jaxb-api.version=2.0.5
lib.jaxb-api.name=jaxb-api.jar
lib.jaxb-api.license=cddl
Modified: remoting3/trunk/build.xml
===================================================================
--- remoting3/trunk/build.xml 2008-07-04 01:09:27 UTC (rev 4358)
+++ remoting3/trunk/build.xml 2008-07-04 01:29:11 UTC (rev 4359)
@@ -7,6 +7,18 @@
<!-- LIBRARIES - Keep in alpha order by target name -->
<!-- ============================================== -->
+ <!-- External library: apiviz -->
+
+ <target name="lib.apiviz-check">
+ <available property="lib.apiviz.exists" file="${lib.apiviz.local}"/>
+ </target>
+
+ <target name="lib.apiviz" depends="lib.apiviz-check" unless="lib.apiviz.exists">
+ <mkdir dir="${local.repository}/${lib.apiviz.dir}"/>
+ <get src="${lib.apiviz.remote}" dest="${lib.apiviz.local}" usetimestamp="true" ignoreerrors="false"/>
+ <get src="${remote.license.dir}/${lib.apiviz.license}.txt" dest="${lib.apiviz.local}.license.txt" usetimestamp="true" ignoreerrors="false"/>
+ </target>
+
<!-- External library: JAXB API -->
<target name="lib.jaxb-api-check">
@@ -1136,10 +1148,11 @@
<!-- JAVADOCS -->
<!-- ============================================== -->
- <target name="api-javadoc" depends="api,core,standalone,util">
+ <target name="api-javadoc" depends="api,core,standalone,util,lib.apiviz">
<delete dir="api/target/main/docs"/>
<mkdir dir="api/target/main/docs"/>
<javadoc destdir="api/target/main/docs" author="false" version="false" use="false" windowtitle="JBoss Remoting API">
+ <doclet name="net.gleamynode.apiviz.APIviz" path="${lib.apiviz.local}"/>
<packageset dir="api/src/main/java"/>
<packageset dir="util/src/main/java"/>
<packageset dir="standalone/src/main/java"/>
15 years, 9 months
JBoss Remoting SVN: r4358 - remoting3/trunk/core/src/test/java/org/jboss/cx/remoting/core.
by jboss-remoting-commits@lists.jboss.org
Author: david.lloyd(a)jboss.com
Date: 2008-07-03 21:09:27 -0400 (Thu, 03 Jul 2008)
New Revision: 4358
Modified:
remoting3/trunk/core/src/test/java/org/jboss/cx/remoting/core/EndpointTestCase.java
Log:
Add a test; fix spurious failure problem
Modified: remoting3/trunk/core/src/test/java/org/jboss/cx/remoting/core/EndpointTestCase.java
===================================================================
--- remoting3/trunk/core/src/test/java/org/jboss/cx/remoting/core/EndpointTestCase.java 2008-07-04 00:58:49 UTC (rev 4357)
+++ remoting3/trunk/core/src/test/java/org/jboss/cx/remoting/core/EndpointTestCase.java 2008-07-04 01:09:27 UTC (rev 4358)
@@ -25,6 +25,7 @@
import junit.framework.TestCase;
import java.util.concurrent.Executors;
import java.util.concurrent.ExecutorService;
+import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicBoolean;
import org.jboss.cx.remoting.AbstractRequestListener;
import org.jboss.cx.remoting.RequestContext;
@@ -65,7 +66,7 @@
}
}
- public void testLocalClient() throws Throwable {
+ public void testLocalClientInvoke() throws Throwable {
final AtomicBoolean clientEndpointClosed = new AtomicBoolean(false);
final AtomicBoolean clientClosed = new AtomicBoolean(false);
final EndpointImpl endpoint = new EndpointImpl();
@@ -115,10 +116,71 @@
} finally {
safeStop(endpoint);
}
+ executorService.shutdown();
+ executorService.awaitTermination(1L, TimeUnit.SECONDS);
assertTrue(clientEndpointClosed.get());
assertTrue(clientClosed.get());
} finally {
executorService.shutdownNow();
}
}
+
+ public void testLocalClientSend() throws Throwable {
+ final AtomicBoolean clientEndpointClosed = new AtomicBoolean(false);
+ final AtomicBoolean clientClosed = new AtomicBoolean(false);
+ final EndpointImpl endpoint = new EndpointImpl();
+ final ExecutorService executorService = Executors.newCachedThreadPool();
+ final Object requestObj = new Object();
+ final Object replyObj = new Object();
+ try {
+ endpoint.setExecutor(executorService);
+ endpoint.start();
+ try {
+ final RemoteClientEndpoint<Object,Object> clientEndpoint = endpoint.createClient(new AbstractRequestListener<Object, Object>() {
+ public void handleRequest(final RequestContext<Object> context, final Object request) throws RemoteExecutionException {
+ assertEquals(request, requestObj);
+ try {
+ context.sendReply(replyObj);
+ } catch (RemotingException e) {
+ try {
+ context.sendFailure(e.getMessage(), e);
+ } catch (RemotingException e1) {
+ fail("double fault");
+ }
+ }
+ }
+ });
+ try {
+ clientEndpoint.addCloseHandler(new CloseHandler<RemoteClientEndpoint<Object, Object>>() {
+ public void handleClose(final RemoteClientEndpoint<Object, Object> closed) {
+ clientEndpointClosed.set(true);
+ }
+ });
+ final Client<Object,Object> client = clientEndpoint.getClient();
+ try {
+ client.addCloseHandler(new CloseHandler<Client<Object, Object>>() {
+ public void handleClose(final Client<Object, Object> closed) {
+ clientClosed.set(true);
+ }
+ });
+ assertEquals(replyObj, client.send(requestObj).get());
+ clientEndpoint.autoClose();
+ client.close();
+ } finally {
+ IoUtils.safeClose(client);
+ }
+ } finally {
+ IoUtils.safeClose(clientEndpoint);
+ }
+ } finally {
+ safeStop(endpoint);
+ }
+ executorService.shutdown();
+ executorService.awaitTermination(1L, TimeUnit.SECONDS);
+ assertTrue(clientEndpointClosed.get());
+ assertTrue(clientClosed.get());
+ } finally {
+ executorService.shutdownNow();
+ }
+ }
}
15 years, 9 months
JBoss Remoting SVN: r4357 - in remoting3/trunk: core/src/test/java/org/jboss/cx/remoting/core and 1 other directories.
by jboss-remoting-commits@lists.jboss.org
Author: david.lloyd(a)jboss.com
Date: 2008-07-03 20:58:49 -0400 (Thu, 03 Jul 2008)
New Revision: 4357
Added:
remoting3/trunk/testing-support/src/main/java/org/jboss/cx/remoting/test/support/LoggingHelper.java
Modified:
remoting3/trunk/api/src/test/java/org/jboss/cx/remoting/stream/ByteBufferInputStreamTestCase.java
remoting3/trunk/api/src/test/java/org/jboss/cx/remoting/stream/ByteBufferOutputStreamTestCase.java
remoting3/trunk/api/src/test/java/org/jboss/cx/remoting/stream/CharBufferReaderTestCase.java
remoting3/trunk/api/src/test/java/org/jboss/cx/remoting/stream/CharBufferWriterTestCase.java
remoting3/trunk/api/src/test/java/org/jboss/cx/remoting/stream/StreamsTestCase.java
remoting3/trunk/core/src/test/java/org/jboss/cx/remoting/core/EndpointTestCase.java
Log:
Add logging helper
Modified: remoting3/trunk/api/src/test/java/org/jboss/cx/remoting/stream/ByteBufferInputStreamTestCase.java
===================================================================
--- remoting3/trunk/api/src/test/java/org/jboss/cx/remoting/stream/ByteBufferInputStreamTestCase.java 2008-07-04 00:52:01 UTC (rev 4356)
+++ remoting3/trunk/api/src/test/java/org/jboss/cx/remoting/stream/ByteBufferInputStreamTestCase.java 2008-07-04 00:58:49 UTC (rev 4357)
@@ -26,11 +26,16 @@
import java.util.Arrays;
import java.nio.ByteBuffer;
import org.jboss.cx.remoting.test.support.TestByteBufferAllocator;
+import org.jboss.cx.remoting.test.support.LoggingHelper;
/**
*
*/
public final class ByteBufferInputStreamTestCase extends TestCase {
+ static {
+ LoggingHelper.init();
+ }
+
public void testBasic() throws Throwable {
final TestByteBufferAllocator allocator = new TestByteBufferAllocator(3);
final ByteBufferInputStream stream = new ByteBufferInputStream(Streams.<ByteBuffer>getIteratorObjectSource(Arrays.<ByteBuffer>asList(
Modified: remoting3/trunk/api/src/test/java/org/jboss/cx/remoting/stream/ByteBufferOutputStreamTestCase.java
===================================================================
--- remoting3/trunk/api/src/test/java/org/jboss/cx/remoting/stream/ByteBufferOutputStreamTestCase.java 2008-07-04 00:52:01 UTC (rev 4356)
+++ remoting3/trunk/api/src/test/java/org/jboss/cx/remoting/stream/ByteBufferOutputStreamTestCase.java 2008-07-04 00:58:49 UTC (rev 4357)
@@ -24,6 +24,7 @@
import junit.framework.TestCase;
import org.jboss.cx.remoting.test.support.TestByteBufferAllocator;
+import org.jboss.cx.remoting.test.support.LoggingHelper;
import java.nio.ByteBuffer;
import java.util.ArrayList;
import java.util.List;
@@ -32,6 +33,10 @@
*
*/
public final class ByteBufferOutputStreamTestCase extends TestCase {
+ static {
+ LoggingHelper.init();
+ }
+
public void testBasic() throws Throwable {
final TestByteBufferAllocator allocator = new TestByteBufferAllocator(4);
final List<ByteBuffer> list = new ArrayList<ByteBuffer>();
Modified: remoting3/trunk/api/src/test/java/org/jboss/cx/remoting/stream/CharBufferReaderTestCase.java
===================================================================
--- remoting3/trunk/api/src/test/java/org/jboss/cx/remoting/stream/CharBufferReaderTestCase.java 2008-07-04 00:52:01 UTC (rev 4356)
+++ remoting3/trunk/api/src/test/java/org/jboss/cx/remoting/stream/CharBufferReaderTestCase.java 2008-07-04 00:58:49 UTC (rev 4357)
@@ -24,6 +24,7 @@
import junit.framework.TestCase;
import org.jboss.cx.remoting.test.support.TestCharBufferAllocator;
+import org.jboss.cx.remoting.test.support.LoggingHelper;
import java.util.Arrays;
import java.nio.CharBuffer;
@@ -31,6 +32,10 @@
*
*/
public final class CharBufferReaderTestCase extends TestCase {
+ static {
+ LoggingHelper.init();
+ }
+
public void testBasic() throws Throwable {
final TestCharBufferAllocator allocator = new TestCharBufferAllocator(10);
final ObjectSource<CharBuffer> source = Streams.getIteratorObjectSource(Arrays.asList(
Modified: remoting3/trunk/api/src/test/java/org/jboss/cx/remoting/stream/CharBufferWriterTestCase.java
===================================================================
--- remoting3/trunk/api/src/test/java/org/jboss/cx/remoting/stream/CharBufferWriterTestCase.java 2008-07-04 00:52:01 UTC (rev 4356)
+++ remoting3/trunk/api/src/test/java/org/jboss/cx/remoting/stream/CharBufferWriterTestCase.java 2008-07-04 00:58:49 UTC (rev 4357)
@@ -27,11 +27,16 @@
import java.util.List;
import java.nio.CharBuffer;
import org.jboss.cx.remoting.test.support.TestCharBufferAllocator;
+import org.jboss.cx.remoting.test.support.LoggingHelper;
/**
*
*/
public final class CharBufferWriterTestCase extends TestCase {
+ static {
+ LoggingHelper.init();
+ }
+
public void testBasic() throws Throwable {
final TestCharBufferAllocator allocator = new TestCharBufferAllocator(7);
final List<CharBuffer> list = new ArrayList<CharBuffer>();
Modified: remoting3/trunk/api/src/test/java/org/jboss/cx/remoting/stream/StreamsTestCase.java
===================================================================
--- remoting3/trunk/api/src/test/java/org/jboss/cx/remoting/stream/StreamsTestCase.java 2008-07-04 00:52:01 UTC (rev 4356)
+++ remoting3/trunk/api/src/test/java/org/jboss/cx/remoting/stream/StreamsTestCase.java 2008-07-04 00:58:49 UTC (rev 4357)
@@ -28,11 +28,16 @@
import java.util.Arrays;
import java.util.Vector;
import java.io.EOFException;
+import org.jboss.cx.remoting.test.support.LoggingHelper;
/**
*
*/
public final class StreamsTestCase extends TestCase {
+ static {
+ LoggingHelper.init();
+ }
+
public void testCollectionObjectSink() throws Throwable {
final ArrayList<String> strings = new ArrayList<String>();
final ObjectSink<String> sink = Streams.getCollectionObjectSink(strings);
Modified: remoting3/trunk/core/src/test/java/org/jboss/cx/remoting/core/EndpointTestCase.java
===================================================================
--- remoting3/trunk/core/src/test/java/org/jboss/cx/remoting/core/EndpointTestCase.java 2008-07-04 00:52:01 UTC (rev 4356)
+++ remoting3/trunk/core/src/test/java/org/jboss/cx/remoting/core/EndpointTestCase.java 2008-07-04 00:58:49 UTC (rev 4357)
@@ -32,6 +32,7 @@
import org.jboss.cx.remoting.CloseHandler;
import org.jboss.cx.remoting.Client;
import org.jboss.cx.remoting.RemotingException;
+import org.jboss.cx.remoting.test.support.LoggingHelper;
import org.jboss.cx.remoting.spi.remote.RemoteClientEndpoint;
import org.jboss.xnio.IoUtils;
@@ -39,6 +40,10 @@
*
*/
public final class EndpointTestCase extends TestCase {
+ static {
+ LoggingHelper.init();
+ }
+
private static void safeStop(EndpointImpl endpoint) {
try {
endpoint.stop();
Added: remoting3/trunk/testing-support/src/main/java/org/jboss/cx/remoting/test/support/LoggingHelper.java
===================================================================
--- remoting3/trunk/testing-support/src/main/java/org/jboss/cx/remoting/test/support/LoggingHelper.java (rev 0)
+++ remoting3/trunk/testing-support/src/main/java/org/jboss/cx/remoting/test/support/LoggingHelper.java 2008-07-04 00:58:49 UTC (rev 4357)
@@ -0,0 +1,83 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2008, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This 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.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software 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 software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+
+package org.jboss.cx.remoting.test.support;
+
+import java.security.AccessController;
+import java.security.PrivilegedAction;
+
+import java.util.logging.Logger;
+import java.util.logging.Level;
+import java.util.logging.Handler;
+import java.util.logging.Formatter;
+import java.util.logging.LogRecord;
+
+/**
+ *
+ */
+public final class LoggingHelper {
+ private static final class Once {
+ static {
+ AccessController.doPrivileged(new PrivilegedAction<Void>() {
+ public Void run() {
+ final Logger rootLogger = Logger.getLogger("");
+ rootLogger.setLevel(Level.ALL);
+ final Handler[] handlers = rootLogger.getHandlers();
+ for (Handler handler : handlers) {
+ handler.setLevel(Level.ALL);
+ handler.setFormatter(new Formatter() {
+ public String format(final LogRecord record) {
+ StringBuilder builder = new StringBuilder();
+ builder.append(record.getLevel().toString());
+ builder.append(" [").append(record.getLoggerName()).append("] ");
+ builder.append(String.format(record.getMessage(), record.getParameters()));
+ Throwable t = record.getThrown();
+ while (t != null) {
+ builder.append("\n Caused by: ");
+ builder.append(t.getClass().getName());
+ builder.append(": ");
+ builder.append(t.getMessage());
+ for (StackTraceElement e : t.getStackTrace()) {
+ builder.append("\n at ");
+ builder.append(e.getClassName()).append('.').append(e.getMethodName());
+ builder.append("(").append(e.getFileName()).append(':').append(e.getLineNumber()).append(')');
+ }
+ t = t.getCause();
+ }
+ builder.append('\n');
+ return builder.toString();
+ }
+ });
+ }
+ return null;
+ }
+ });
+ }
+ }
+
+ private LoggingHelper() {
+ }
+
+ public static void init() {
+ new Once();
+ }
+}
15 years, 9 months
JBoss Remoting SVN: r4356 - remoting3/trunk/core/src/test/java/org/jboss/cx/remoting/core.
by jboss-remoting-commits@lists.jboss.org
Author: david.lloyd(a)jboss.com
Date: 2008-07-03 20:52:01 -0400 (Thu, 03 Jul 2008)
New Revision: 4356
Modified:
remoting3/trunk/core/src/test/java/org/jboss/cx/remoting/core/EndpointTestCase.java
Log:
Fix mistake in test
Modified: remoting3/trunk/core/src/test/java/org/jboss/cx/remoting/core/EndpointTestCase.java
===================================================================
--- remoting3/trunk/core/src/test/java/org/jboss/cx/remoting/core/EndpointTestCase.java 2008-07-04 00:50:45 UTC (rev 4355)
+++ remoting3/trunk/core/src/test/java/org/jboss/cx/remoting/core/EndpointTestCase.java 2008-07-04 00:52:01 UTC (rev 4356)
@@ -99,6 +99,7 @@
}
});
assertEquals(replyObj, client.invoke(requestObj));
+ clientEndpoint.autoClose();
client.close();
} finally {
IoUtils.safeClose(client);
15 years, 9 months
JBoss Remoting SVN: r4355 - remoting3/trunk/core/src/test/java/org/jboss/cx/remoting/core.
by jboss-remoting-commits@lists.jboss.org
Author: david.lloyd(a)jboss.com
Date: 2008-07-03 20:50:45 -0400 (Thu, 03 Jul 2008)
New Revision: 4355
Modified:
remoting3/trunk/core/src/test/java/org/jboss/cx/remoting/core/EndpointTestCase.java
Log:
Framework for core tests
Modified: remoting3/trunk/core/src/test/java/org/jboss/cx/remoting/core/EndpointTestCase.java
===================================================================
--- remoting3/trunk/core/src/test/java/org/jboss/cx/remoting/core/EndpointTestCase.java 2008-07-04 00:30:16 UTC (rev 4354)
+++ remoting3/trunk/core/src/test/java/org/jboss/cx/remoting/core/EndpointTestCase.java 2008-07-04 00:50:45 UTC (rev 4355)
@@ -25,17 +25,94 @@
import junit.framework.TestCase;
import java.util.concurrent.Executors;
import java.util.concurrent.ExecutorService;
+import java.util.concurrent.atomic.AtomicBoolean;
+import org.jboss.cx.remoting.AbstractRequestListener;
+import org.jboss.cx.remoting.RequestContext;
+import org.jboss.cx.remoting.RemoteExecutionException;
+import org.jboss.cx.remoting.CloseHandler;
+import org.jboss.cx.remoting.Client;
+import org.jboss.cx.remoting.RemotingException;
+import org.jboss.cx.remoting.spi.remote.RemoteClientEndpoint;
+import org.jboss.xnio.IoUtils;
/**
*
*/
public final class EndpointTestCase extends TestCase {
- public void testCreate() {
+ private static void safeStop(EndpointImpl endpoint) {
+ try {
+ endpoint.stop();
+ } catch (Throwable t) {
+ t.printStackTrace();
+ }
+ }
+
+ public void testCreate() throws Throwable {
final EndpointImpl endpoint = new EndpointImpl();
final ExecutorService executorService = Executors.newCachedThreadPool();
- endpoint.setExecutor(executorService);
- endpoint.start();
- endpoint.stop();
- executorService.shutdown();
+ try {
+ endpoint.setExecutor(executorService);
+ endpoint.start();
+ endpoint.stop();
+ executorService.shutdown();
+ } finally {
+ executorService.shutdownNow();
+ }
}
+
+ public void testLocalClient() throws Throwable {
+ final AtomicBoolean clientEndpointClosed = new AtomicBoolean(false);
+ final AtomicBoolean clientClosed = new AtomicBoolean(false);
+ final EndpointImpl endpoint = new EndpointImpl();
+ final ExecutorService executorService = Executors.newCachedThreadPool();
+ final Object requestObj = new Object();
+ final Object replyObj = new Object();
+ try {
+ endpoint.setExecutor(executorService);
+ endpoint.start();
+ try {
+ final RemoteClientEndpoint<Object,Object> clientEndpoint = endpoint.createClient(new AbstractRequestListener<Object, Object>() {
+ public void handleRequest(final RequestContext<Object> context, final Object request) throws RemoteExecutionException {
+ assertEquals(request, requestObj);
+ try {
+ context.sendReply(replyObj);
+ } catch (RemotingException e) {
+ try {
+ context.sendFailure(e.getMessage(), e);
+ } catch (RemotingException e1) {
+ fail("double fault");
+ }
+ }
+ }
+ });
+ try {
+ clientEndpoint.addCloseHandler(new CloseHandler<RemoteClientEndpoint<Object, Object>>() {
+ public void handleClose(final RemoteClientEndpoint<Object, Object> closed) {
+ clientEndpointClosed.set(true);
+ }
+ });
+ final Client<Object,Object> client = clientEndpoint.getClient();
+ try {
+ client.addCloseHandler(new CloseHandler<Client<Object, Object>>() {
+ public void handleClose(final Client<Object, Object> closed) {
+ clientClosed.set(true);
+ }
+ });
+ assertEquals(replyObj, client.invoke(requestObj));
+ client.close();
+ } finally {
+ IoUtils.safeClose(client);
+ }
+ } finally {
+ IoUtils.safeClose(clientEndpoint);
+ }
+ } finally {
+ safeStop(endpoint);
+ }
+ assertTrue(clientEndpointClosed.get());
+ assertTrue(clientClosed.get());
+ } finally {
+ executorService.shutdownNow();
+ }
+ }
}
15 years, 9 months
JBoss Remoting SVN: r4354 - in remoting3/trunk: core/src and 8 other directories.
by jboss-remoting-commits@lists.jboss.org
Author: david.lloyd(a)jboss.com
Date: 2008-07-03 20:30:16 -0400 (Thu, 03 Jul 2008)
New Revision: 4354
Added:
remoting3/trunk/core/src/test/
remoting3/trunk/core/src/test/java/
remoting3/trunk/core/src/test/java/org/
remoting3/trunk/core/src/test/java/org/jboss/
remoting3/trunk/core/src/test/java/org/jboss/cx/
remoting3/trunk/core/src/test/java/org/jboss/cx/remoting/
remoting3/trunk/core/src/test/java/org/jboss/cx/remoting/core/
remoting3/trunk/core/src/test/java/org/jboss/cx/remoting/core/EndpointTestCase.java
Modified:
remoting3/trunk/build.xml
remoting3/trunk/testing-support/src/main/resources/testing.policy
Log:
Framework for core tests
Modified: remoting3/trunk/build.xml
===================================================================
--- remoting3/trunk/build.xml 2008-07-03 23:47:24 UTC (rev 4353)
+++ remoting3/trunk/build.xml 2008-07-04 00:30:16 UTC (rev 4354)
@@ -373,6 +373,81 @@
<touch file="core/target/main/.lastcompile" verbose="false"/>
</target>
+ <target name="core.test.compile.depcheck">
+ <mkdir dir="core/target/test"/>
+ <uptodate property="core.compile.uptodate" targetfile="core/target/test/.lastcompile">
+ <srcfiles dir="core/src/test/java">
+ <include name="**/"/>
+ <include name="**/*.java"/>
+ <exclude name="**/.*"/>
+ </srcfiles>
+ </uptodate>
+ </target>
+
+ <target name="core.test.compile" depends="lib.junit,core.compile,core.test.compile.depcheck" unless="core.test.compile.uptodate">
+ <mkdir dir="core/target/test/classes"/>
+ <javac
+ source="${javac.source}"
+ target="${javac.target}"
+ srcdir="core/src/test/java"
+ destdir="core/target/test/classes"
+ debug="true">
+ <compilerarg value="-Xlint:unchecked"/>
+ <classpath>
+ <path refid="api.classpath"/>
+ <path refid="core.classpath"/>
+ <path refid="util.classpath"/>
+ <path refid="testing-support.classpath"/>
+ <pathelement location="${lib.junit.local}"/>
+ <pathelement location="${lib.xnio-api.local}"/>
+ </classpath>
+ </javac>
+ <touch file="core/target/test/.lastcompile" verbose="false"/>
+ </target>
+
+ <target name="core.test.pseudotarget">
+ <echo message="============================================="/>
+ <echo message="${message}"/>
+ <echo message="============================================="/>
+ <mkdir dir="core/target/test-results"/>
+ <junit printsummary="true" fork="yes" includeantruntime="true">
+ <sysproperty key="build.home" value="${basedir}"/>
+ <sysproperty key="ant.library.dir" value="${ant.home}/lib"/>
+ <sysproperty key="lib.junit.local" value="${lib.junit.local}"/>
+ <sysproperty key="lib.xnio-api.local" value="${lib.xnio-api.local}"/>
+ <jvmarg line="${test.jvmargs}"/>
+ <formatter type="plain" extension="${extension}"/>
+ <classpath>
+ <path refid="api.classpath"/>
+ <path refid="core.classpath"/>
+ <path refid="testing-support.classpath"/>
+ <path refid="util.classpath"/>
+ <pathelement location="core/target/test/classes"/>
+ <pathelement location="${lib.junit.local}"/>
+ <pathelement location="${lib.xnio-api.local}"/>
+ </classpath>
+ <batchtest fork="yes" todir="core/target/test-results"
+ haltonfailure="no">
+ <fileset dir="core/target/test/classes">
+ <include name="**/*TestCase.class"/>
+ </fileset>
+ </batchtest>
+ </junit>
+ </target>
+
+ <target name="core.test" depends="api,core,testing-support,util,core.test.compile">
+ <antcall inheritall="true" inheritrefs="true" target="core.test.pseudotarget">
+ <param name="extension" value=".txt"/>
+ <param name="message" value="Running with no security manager"/>
+ <param name="test.jvmargs" value="-Ddummy=dummy"/>
+ </antcall>
+ <antcall inheritall="true" inheritrefs="true" target="core.test.pseudotarget">
+ <param name="extension" value="-security.txt"/>
+ <param name="message" value="Running with security manager"/>
+ <param name="test.jvmargs" value="-Djava.security.manager=org.jboss.cx.remoting.test.support.LoggingSecurityManager -Djava.security.policy=${basedir}/testing-support/src/main/resources/testing.policy"/>
+ </antcall>
+ </target>
+
<target name="core.clean">
<delete dir="core/target"/>
</target>
@@ -1108,6 +1183,6 @@
<target name="clean" description="Clean out all build files" depends="clean-core,clean-http"/>
- <target name="test" description="Run all tests" depends="api.test"/>
+ <target name="test" description="Run all tests" depends="api.test,core.test"/>
</project>
Added: remoting3/trunk/core/src/test/java/org/jboss/cx/remoting/core/EndpointTestCase.java
===================================================================
--- remoting3/trunk/core/src/test/java/org/jboss/cx/remoting/core/EndpointTestCase.java (rev 0)
+++ remoting3/trunk/core/src/test/java/org/jboss/cx/remoting/core/EndpointTestCase.java 2008-07-04 00:30:16 UTC (rev 4354)
@@ -0,0 +1,41 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2008, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This 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.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software 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 software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+
+package org.jboss.cx.remoting.core;
+
+import junit.framework.TestCase;
+import java.util.concurrent.Executors;
+import java.util.concurrent.ExecutorService;
+
+/**
+ *
+ */
+public final class EndpointTestCase extends TestCase {
+ public void testCreate() {
+ final EndpointImpl endpoint = new EndpointImpl();
+ final ExecutorService executorService = Executors.newCachedThreadPool();
+ endpoint.setExecutor(executorService);
+ endpoint.start();
+ endpoint.stop();
+ executorService.shutdown();
+ }
+}
Modified: remoting3/trunk/testing-support/src/main/resources/testing.policy
===================================================================
--- remoting3/trunk/testing-support/src/main/resources/testing.policy 2008-07-03 23:47:24 UTC (rev 4353)
+++ remoting3/trunk/testing-support/src/main/resources/testing.policy 2008-07-04 00:30:16 UTC (rev 4354)
@@ -1,16 +1,11 @@
-// Permissions to grant to modules
+// Permissions for the core tests
-grant codeBase "file:${build.home}/api/target/main/classes/-"
+grant codeBase "file:${build.home}/core/target/test/classes/-"
{
+ permission java.lang.RuntimePermission "modifyThread"; // for executor control
};
-// Permissions to run the api test suite
-
-grant codeBase "file:${build.home}/api/target/main/classes/-"
-{
-};
-
// Support classes
grant codeBase "file:${build.home}/testing-support/target/main/classes/-"
15 years, 9 months