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  import org.junit.Test;
30  
31  /**
32   * @author etienne_sf
33   * 
34   */
35  public class UploadFileDataPoisonnedTest extends AbstractJUploadTestHelper {
36  
37  	/**
38       * 
39       */
40  	@Test
41  	public void testIsPoisonned() {
42  		UploadFilePacketPoisonned uploadFilePacketPoisonned = new UploadFilePacketPoisonned(
43  				this.uploadPolicy);
44  		Assert.assertEquals("The good upload policy", this.uploadPolicy,
45  				uploadFilePacketPoisonned.uploadPolicy);
46  		Assert.assertTrue("This file is poisonned", uploadFilePacketPoisonned
47  				.isPoisonned());
48  
49  	}
50  
51  }