Commit d21b5ce6 authored by Jean Meurice's avatar Jean Meurice

Version Up + Test Fix

parent a35c976e
Pipeline #188313 passed with stage
in 4 minutes and 53 seconds
......@@ -25,7 +25,7 @@
<packaging>jar</packaging>
<properties>
<montisim.simulation.version>2.0.3</montisim.simulation.version>
<montisim.simulation.version>2.0.4</montisim.simulation.version>
<montisim.rpc.version>2.1.1</montisim.rpc.version>
<montisim.simulationlanguage.version>1.1.0-SNAPSHOT</montisim.simulationlanguage.version>
......
......@@ -18,8 +18,8 @@
<properties>
<montisim.commons.version>1.0.10</montisim.commons.version>
<montisim.simulation.version>2.0.3</montisim.simulation.version>
<montisim.commons.version>1.0.11</montisim.commons.version>
<montisim.simulation.version>2.0.4</montisim.simulation.version>
<montisim.controller.version>1.0.4</montisim.controller.version>
<montisim.carlang.version>1.0.2</montisim.carlang.version>
<montisim.rmimodelserver.version>1.1.4</montisim.rmimodelserver.version>
......
......@@ -23,6 +23,7 @@ import server.adapters.util.RMIClient;
import java.io.IOException;
import java.nio.file.Paths;
import java.time.Duration;
import java.util.HashMap;
import java.util.Optional;
......@@ -42,6 +43,9 @@ public class SimulationControllerImplTest {
RMIClient rmiClient = Mockito.spy(new RMIClient("", 0, ""));
Mockito.doReturn(new HashMap<>()).when(rmiClient).oldExecute(Mockito.any(), Mockito.anyDouble());
Mockito.doNothing().when(rmiClient).set_input(Mockito.any());
Mockito.doReturn(Duration.ZERO).when(rmiClient).time_execute(Mockito.any());
Mockito.doReturn(new HashMap<>()).when(rmiClient).getOutputs();
controller = Mockito.spy(new SimulationControllerImpl());
Mockito.doReturn(rmiClient).when(controller).connectAutopilot(Mockito.anyString(), Mockito.anyInt(), Mockito.anyString());
......
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