1   /*
2       This file is part of quExec.
3   
4       quExec is free software; you can redistribute it and/or modify
5       it under the terms of the GNU Lesser General Public License as published by
6       the Free Software Foundation; either version 2 of the License, or
7       (at your option) any later version.
8   
9       quExec is distributed in the hope that it will be useful,
10      but WITHOUT ANY WARRANTY; without even the implied warranty of
11      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12      GNU Lesser General Public License for more details.
13  
14      You should have received a copy of the GNU Lesser General Public License
15      along with quExec; if not, write to the Free Software
16      Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
17  */
18  
19  package net.sourceforge.quexec.packet.chars.stream;
20  
21  import org.junit.Before;
22  
23  public class QueueCharPacketStreamTest extends AbstractCharPacketStreamTest {
24  	
25  	private QueueCharPacketStream queueStream;
26  
27  	@Before
28  	public void runBeforeEveryTest() throws Exception {
29  		setUpMultithreading();
30  		this.queueStream = QueueCharPacketStream.newInstance();
31  		initStreamsBeforeEveryTest();
32  	}
33  	
34  	@Override
35  	protected CharPacketInputStream getInputStream() {
36  		return this.queueStream;
37  	}
38  
39  	@Override
40  	protected CharPacketOutputStream getOutputStream() {
41  		return this.queueStream;
42  	}
43  
44  }