java.lang.Object
com.github.mizosoft.methanol.testing.TestUtils
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
awaitUnchecked
(CyclicBarrier barrier) static void
static int
copyRemaining
(ByteBuffer src, ByteBuffer dst) static byte[]
static byte[]
gunzip
(byte[] data) static byte[]
static HttpHeaders
static byte[]
inflate
(byte[] data) static BufferedReader
inputReaderOf
(Process process) static byte[]
static String
static X509Certificate
static SSLContext
BuildSSLContext
that trusts a self-assigned certificate for the loopback address.static void
static byte[]
toByteArray
(ByteBuffer buffer) static byte[]
zlibUnwrap
(byte[] zlibWrapped)
-
Field Details
-
EMPTY_BUFFER
-
-
Constructor Details
-
TestUtils
public TestUtils()
-
-
Method Details
-
awaitUninterruptibly
-
awaitUnchecked
-
shutdown
-
gunzip
public static byte[] gunzip(byte[] data) -
gzip
-
zlibUnwrap
public static byte[] zlibUnwrap(byte[] zlibWrapped) -
inflate
public static byte[] inflate(byte[] data) -
deflate
-
headers
-
copyRemaining
-
load
-
loadUtf8
-
lines
-
listFiles
- Throws:
IOException
-
toByteArray
-
localhostCert
-
localhostSslContext
BuildSSLContext
that trusts a self-assigned certificate for the loopback address. -
inputReaderOf
-