.. java:import:: ch.epfl.leb.sass IntegrationTest .. java:import:: ch.epfl.leb.sass.models Microscope .. java:import:: ch.epfl.leb.sass.models.backgrounds.internal.commands GenerateUniformBackground .. java:import:: ch.epfl.leb.sass.models.components.internal DefaultCamera .. java:import:: ch.epfl.leb.sass.models.components.internal DefaultLaser .. java:import:: ch.epfl.leb.sass.models.components.internal DefaultObjective .. java:import:: ch.epfl.leb.sass.models.components.internal DefaultStage .. java:import:: ch.epfl.leb.sass.models.fluorophores.commands.internal GenerateFluorophoresGrid2D .. java:import:: ch.epfl.leb.sass.models.photophysics.internal PalmDynamics .. java:import:: ch.epfl.leb.sass.models.obstructors.internal.commands GenerateFiducialsRandom2D .. java:import:: ch.epfl.leb.sass.models.psfs.internal Gaussian2D .. java:import:: ch.epfl.leb.sass.utils RNG .. java:import:: ch.epfl.leb.sass.simulator Simulator .. java:import:: ch.epfl.leb.sass.simulator SimulationManager .. java:import:: ch.epfl.leb.sass.simulator.internal RPCSimulator .. java:import:: ch.epfl.leb.sass.simulator.internal DefaultSimulationManager .. java:import:: ch.epfl.leb.sass.client RPCClient .. java:import:: ch.epfl.leb.sass.logging MessageType .. java:import:: ch.epfl.leb.sass.models.illuminations.internal SquareUniformIllumination .. java:import:: ch.epfl.leb.sass.models.samples RefractiveIndex .. java:import:: ch.epfl.leb.sass.models.samples.internal UniformRefractiveIndex .. java:import:: org.junit Test .. java:import:: org.junit Before .. java:import:: org.junit After .. java:import:: org.junit.experimental.categories Category .. java:import:: com.google.gson JsonArray .. java:import:: com.google.gson JsonParser .. java:import:: com.google.gson JsonObject .. java:import:: com.google.gson JsonElement .. java:import:: java.util List .. java:import:: java.util EnumSet .. java:import:: java.util ArrayList .. java:import:: java.util.logging Logger .. java:import:: java.util.logging Level .. java:import:: org.apache.commons.math3.complex Complex .. java:import:: org.apache.commons.math3.geometry.euclidean.threed Vector3D .. java:import:: org.apache.thrift TException RPCServerIT =========== .. java:package:: ch.epfl.leb.sass.server :noindex: .. java:type:: @Category public class RPCServerIT Integration tests for the RPCServer. :author: Kyle M. Douglass Fields ------ rpcClient ^^^^^^^^^ .. java:field:: RPCClient rpcClient :outertype: RPCServerIT A RPCClient that will be used to test server communications. rpcServer ^^^^^^^^^ .. java:field:: RPCServer rpcServer :outertype: RPCServerIT A RPCServer that will be used to test client/server communications. Methods ------- setUp ^^^^^ .. java:method:: @Before public void setUp() throws InterruptedException :outertype: RPCServerIT Sets up two different Microscopes for acquisition simulations. tearDown ^^^^^^^^ .. java:method:: @After public void tearDown() throws InterruptedException :outertype: RPCServerIT Closes the server communications. :throws java.lang.InterruptedException: testCreateAndDeleteSimulation ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ .. java:method:: @Test public void testCreateAndDeleteSimulation() throws TException :outertype: RPCServerIT Test of createSimulation and deleteSimulation methods, of class RemoteSimulationServiceHandler. testGetControlSignal ^^^^^^^^^^^^^^^^^^^^ .. java:method:: @Test public void testGetControlSignal() throws InterruptedException, UnknownSimulationIdException, TException :outertype: RPCServerIT Test of getControlSignal method, of class RemoteSimulationServiceHandler. testGetFovSize ^^^^^^^^^^^^^^ .. java:method:: @Test public void testGetFovSize() throws UnknownSimulationIdException, TException :outertype: RPCServerIT Test of getFovSize method, of class RemoteSimulationServiceHandler. testGetNextImageAndImageCount ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ .. java:method:: @Test public void testGetNextImageAndImageCount() throws UnknownSimulationIdException, TException :outertype: RPCServerIT Test of getNextImage and getImageCount methods, of class RemoteSimulationServiceHandler. testGetObjectSpacePixelSize ^^^^^^^^^^^^^^^^^^^^^^^^^^^ .. java:method:: @Test public void testGetObjectSpacePixelSize() throws UnknownSimulationIdException, TException :outertype: RPCServerIT Test of getObjectSpacePixelSize method, of class RemoteSimulationServiceHandler. testGetServerStatus ^^^^^^^^^^^^^^^^^^^ .. java:method:: @Test public void testGetServerStatus() throws UnknownSimulationIdException, TException :outertype: RPCServerIT Test of getGetServerStatus method, of class RemoteSimulationServiceHandler. testIncrementTimeStep ^^^^^^^^^^^^^^^^^^^^^ .. java:method:: @Test public void testIncrementTimeStep() throws UnknownSimulationIdException, TException :outertype: RPCServerIT Test of incrementTimeStep method, of class RemoteSimulationServiceHandler. testIsServing ^^^^^^^^^^^^^ .. java:method:: @Test public void testIsServing() throws InterruptedException :outertype: RPCServerIT Test of isServing method, of class RPCServer. testSetControlSignal ^^^^^^^^^^^^^^^^^^^^ .. java:method:: @Test public void testSetControlSignal() throws InterruptedException, UnknownSimulationIdException, TException :outertype: RPCServerIT Test of setControlSignal method, of class RemoteSimulationServiceHandler. testToJsonMessages ^^^^^^^^^^^^^^^^^^ .. java:method:: @Test public void testToJsonMessages() throws UnknownSimulationIdException, TException :outertype: RPCServerIT Test of toJsonMessages method, of class RemoteSimulationServiceHandler. testToJsonStateCamera ^^^^^^^^^^^^^^^^^^^^^ .. java:method:: @Test public void testToJsonStateCamera() throws UnknownSimulationIdException, TException :outertype: RPCServerIT Test of toJsonState and getCameraJsonName methods, of class RemoteSimulationServiceHandler. testToJsonStateFluorescence ^^^^^^^^^^^^^^^^^^^^^^^^^^^ .. java:method:: @Test public void testToJsonStateFluorescence() throws UnknownSimulationIdException, TException :outertype: RPCServerIT Test of toJsonState and getFluorescenceJsonName methods, of class RemoteSimulationServiceHandler. testToJsonStateLaser ^^^^^^^^^^^^^^^^^^^^ .. java:method:: @Test public void testToJsonStateLaser() throws UnknownSimulationIdException, TException :outertype: RPCServerIT Test of toJsonState and getLaserJsonName methods, of class RemoteSimulationServiceHandler. testToJsonStateObjective ^^^^^^^^^^^^^^^^^^^^^^^^ .. java:method:: @Test public void testToJsonStateObjective() throws UnknownSimulationIdException, TException :outertype: RPCServerIT Test of toJsonState and getObjectiveJsonName methods, of class RemoteSimulationServiceHandler. testToJsonStateStage ^^^^^^^^^^^^^^^^^^^^ .. java:method:: @Test public void testToJsonStateStage() throws UnknownSimulationIdException, TException :outertype: RPCServerIT Test of toJsonState and getLaserJsonName methods, of class RemoteSimulationServiceHandler. testTrueSignal ^^^^^^^^^^^^^^ .. java:method:: @Test public void testTrueSignal() throws UnknownSimulationIdException, TException :outertype: RPCServerIT Test of getShortTrueSignalDescription and getTrueSignal methods, of class RemoteSimulationServiceHandler.