public class UtilsRMI extends Object
| Constructor and Description |
|---|
UtilsRMI() |
| Modifier and Type | Method and Description |
|---|---|
static void |
ensureRegistryOnLoopbackAddress()
A registry is created on the "localhost".
|
static Remote |
exportObject(Remote obj)
This is a wrapper over UnicastRemoteObject.exportObject,
as it does not properly handle anonymous/ephemeral ports.
|
public static Remote exportObject(Remote obj) throws RemoteException
obj - RemoteExceptionpublic static void ensureRegistryOnLoopbackAddress()
So, if we start EvoSuite with a connection on (eg WiFi), losing such connection would mess up EvoSuite. Even worse, if EvoSuite is started from Eclipse, Eclipse will always use the binding it used at it start! In that case, Eclipse would need to be restarted each time connection change.
For these reasons, here we try to force to always bind to 127.0.0.1
Copyright © 2010–2017 EvoSuite. All rights reserved.