VncRenderService implements RenderProtocol { public DoubleProperty zoomLevelProperty() { return zoomLevel; } VncRenderService();  VncRenderService(VncConnection con); void setEventConsumer(BiConsumer<ServerDecoderEvent, ImageRect> c); ProtocolConfiguration getConfiguration(); void connect(); void disconnect(); @Override void render(ImageRect rect); @Override void renderComplete(RenderCallback callback); @Override void eventReceived(ServerDecoderEvent event); @Override void exceptionCaught(Throwable t); @Override void stateChanged(ProtocolState state); @Override void registerInputEventListener(InputEventListener listener); ReadOnlyObjectProperty<ConnectInfoEvent> connectInfoProperty(); ReadOnlyObjectProperty<ProtocolState> protocolStateProperty(); ReadOnlyObjectProperty<InputEventListener> inputEventListenerProperty(); ReadOnlyObjectProperty<ImageRect> imageProperty(); ReadOnlyObjectProperty<ColourMapEvent> colourMapEventProperty(); ReadOnlyObjectProperty<Throwable> exceptionCaughtProperty(); ReadOnlyBooleanProperty connectingProperty(); ReadOnlyBooleanProperty connectedProperty(); ReadOnlyBooleanProperty onlineProperty(); ReadOnlyBooleanProperty bellProperty(); ReadOnlyStringProperty serverCutTextProperty(); DoubleProperty zoomLevelProperty(); BooleanProperty fullSceenProperty(); BooleanProperty restartProperty(); BooleanProperty listeningModeProperty(); IntegerProperty listeningPortProperty();  }
@Test public void zoomLevelMinMax() { VncRenderService service = new VncRenderService(null); assertEquals(1.0, service.zoomLevelProperty().get(), 0.01); service.zoomLevelProperty().set(0.0); assertNotEquals(0.0, service.zoomLevelProperty().get(), 0.01); service.zoomLevelProperty().set(Double.MAX_VALUE); assertNotEquals(Double.MAX_VALUE, service.zoomLevelProperty().get(), 0.01); service.zoomLevelProperty().set(1.1); assertEquals(1.1, service.zoomLevelProperty().get(), 0.01); }