View Javadoc
1   //
2   // $Id$
3   //
4   // jupload - A file upload applet.
5   //
6   // Copyright 2010 The JUpload Team
7   //
8   // Created: 27 janv. 2010
9   // Creator: etienne_sf
10  // Last modified: $Date$
11  //
12  // This program is free software; you can redistribute it and/or modify
13  // it under the terms of the GNU General Public License as published by
14  // the Free Software Foundation; either version 2 of the License, or
15  // (at your option) any later version.
16  //
17  // This program is distributed in the hope that it will be useful,
18  // but WITHOUT ANY WARRANTY; without even the implied warranty of
19  // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20  // GNU General Public License for more details.
21  //
22  // You should have received a copy of the GNU General Public License
23  // along with this program; if not, write to the Free Software
24  // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
25  
26  package wjhk.jupload2.upload;
27  
28  import org.junit.Assert;
29  
30  import org.junit.Test;
31  
32  /**
33   * @author etienne_sf
34   * 
35   */
36  
37  public class UploadFilePacketPoisonnedTest extends AbstractJUploadTestHelper {
38  	/** */
39  	@Test
40  	public void testIsPoisonned() {
41  		UploadFilePacket uploadFilePacket = new UploadFilePacketPoisonned(
42  				this.uploadPolicy);
43  		Assert.assertTrue("This class is poisonned", uploadFilePacket
44  				.isPoisonned());
45  	}
46  
47  }