Changeset 10697 for extensions/jiwigo/trunk/src/test/java/fr/mael/jiwigo/service/CategoryServiceTest.java
- Timestamp:
- Apr 30, 2011, 12:43:16 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/jiwigo/trunk/src/test/java/fr/mael/jiwigo/service/CategoryServiceTest.java
r9921 r10697 1 1 package fr.mael.jiwigo.service; 2 2 3 import java.io.IOException;4 3 import java.util.Date; 5 4 … … 9 8 10 9 import fr.mael.jiwigo.TestBase; 10 import fr.mael.jiwigo.transverse.exception.JiwigoException; 11 11 import fr.mael.jiwigo.transverse.exception.ProxyAuthenticationException; 12 12 import fr.mael.jiwigo.transverse.util.spring.SpringUtils; 13 13 14 14 public class CategoryServiceTest extends TestBase { 15 public CategoryServiceTest() {15 public CategoryServiceTest() throws JiwigoException { 16 16 super(); 17 17 } … … 20 20 * Test of the listing method 21 21 * @throws ProxyAuthenticationException 22 * @throws JiwigoException 22 23 */ 23 24 @Test 24 public void ListerTest() throws ProxyAuthenticationException { 25 try { 26 SpringUtils.getCategoryService().list(true); 27 SpringUtils.getCategoryService().list(false); 28 } catch (IOException e) { 29 e.printStackTrace(); 30 } 25 public void ListerTest() throws ProxyAuthenticationException, JiwigoException { 26 SpringUtils.getCategoryService().list(true); 27 SpringUtils.getCategoryService().list(false); 31 28 } 32 29 … … 34 31 * Test of the creation method 35 32 * @throws ProxyAuthenticationException 33 * @throws JiwigoException 36 34 */ 37 35 @Test 38 public void creerTest() throws ProxyAuthenticationException {36 public void creerTest() throws ProxyAuthenticationException, JiwigoException { 39 37 Date date = new Date(); 40 38 Assert.assertSame(true, SpringUtils.getCategoryService().create("Category" + date.getTime()));
Note: See TracChangeset
for help on using the changeset viewer.