Commit 2f8b91a5 authored by Munilla Christophe's avatar Munilla Christophe
Browse files

fix "Could not start Jetty server on port 18,000: Address already in use"...

fix "Could not start Jetty server on port 18,000: Address already in use" error : set "org.ow2.frascati.binding.uri.base" system property to "http://localhost:8765/"
parent 7e61a803
......@@ -29,7 +29,7 @@ package org.ow2.frascati.nuxeo.binding.test;
import static org.junit.Assert.assertNotNull;
import java.net.URL;
import java.util.logging.Logger;
import java.io.InputStream;
import org.junit.Test;
import org.objectweb.fractal.api.Component;
import org.ow2.frascati.FraSCAti;
......@@ -47,11 +47,13 @@ public class ExportingFraSCAtiSideTest
@Test
public void testExportingFraSCAtiSide() throws Exception
{
System.setProperty("org.ow2.frascati.binding.uri.base","http://localhost:8765");
FraSCAti frascati = FraSCAti.newFraSCAti();
Component component = frascati.getComposite("NuxeoExporter",frascati.getClassLoader());
URL urlExporter = new URL("http://localhost:18000/NuxeoExporter?wsdl");
assertNotNull(urlExporter.openConnection());
Component component = frascati.getComposite("NuxeoExporter",frascati.getClassLoader());
URL urlExporter = new URL("http://localhost:8765/NuxeoExporter?wsdl");
InputStream stream = urlExporter.openStream();
assertNotNull(stream);
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment