Class ShadowBluetoothSocket

    • Constructor Detail

      • ShadowBluetoothSocket

        public ShadowBluetoothSocket()
    • Method Detail

      • setOutputStream

        public void setOutputStream​(PipedOutputStream outputStream)
        Set the output stream. write() operations on this stream can be observed to verify expected behavior.
      • getInputStream

        @Implementation
        protected InputStream getInputStream()
      • getOutputStream

        @Implementation
        protected OutputStream getOutputStream()
      • isConnected

        @Implementation
        protected boolean isConnected()
      • connect

        @Implementation
        protected void connect()
                        throws IOException
        This method doesn't perform an actual connection and returns immediately
        Throws:
        IOException