Code example for Charset

Methods: decode

0
			return true; 
		} 
 
		@Override 
		public String deserialise(ByteBuffer message) {
			return utf8.decode(message).toString();
		} 
	} 
	 
	@Test 
	public void testJobPoolConsumer() throws TTransportException { 
		@SuppressWarnings("unused") 
		Consumer<String> consumer = new EmptyStringConsumer(HOSTNAME, PORT, POOL);
		 
		verify(mockFactory).createClient(HOSTNAME, PORT);
	} 
 
	@Test 
	public void testRun_OneItem() throws NoSuchPool, EmptyPool, TException, InterruptedException { 
		 
		when(mockFactory.createClient(HOSTNAME, PORT)).thenReturn(mockClient);