Ignore:
Timestamp:
Apr 30, 2011, 12:43:16 PM (13 years ago)
Author:
mlg
Message:

Integrates last jiwigo-ws-api modifications

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/jiwigo/trunk/src/test/java/fr/mael/jiwigo/service/CategoryServiceTest.java

    r9921 r10697  
    11package fr.mael.jiwigo.service;
    22
    3 import java.io.IOException;
    43import java.util.Date;
    54
     
    98
    109import fr.mael.jiwigo.TestBase;
     10import fr.mael.jiwigo.transverse.exception.JiwigoException;
    1111import fr.mael.jiwigo.transverse.exception.ProxyAuthenticationException;
    1212import fr.mael.jiwigo.transverse.util.spring.SpringUtils;
    1313
    1414public class CategoryServiceTest extends TestBase {
    15     public CategoryServiceTest() {
     15    public CategoryServiceTest() throws JiwigoException {
    1616        super();
    1717    }
     
    2020     *  Test of the listing method
    2121     * @throws ProxyAuthenticationException
     22     * @throws JiwigoException
    2223     */
    2324    @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);
    3128    }
    3229
     
    3431     * Test of the creation method
    3532     * @throws ProxyAuthenticationException
     33     * @throws JiwigoException
    3634     */
    3735    @Test
    38     public void creerTest() throws ProxyAuthenticationException {
     36    public void creerTest() throws ProxyAuthenticationException, JiwigoException {
    3937        Date date = new Date();
    4038        Assert.assertSame(true, SpringUtils.getCategoryService().create("Category" + date.getTime()));
Note: See TracChangeset for help on using the changeset viewer.