Last change
on this file since 9393 was
9393,
checked in by mlg, 13 years ago
|
Modifications to use the last version of jiwigo-ws-api
|
File size:
880 bytes
|
Line | |
---|
1 | package fr.mael.jiwigo.service; |
---|
2 | |
---|
3 | import java.io.IOException; |
---|
4 | import java.util.Date; |
---|
5 | |
---|
6 | import junit.framework.Assert; |
---|
7 | |
---|
8 | import org.junit.Test; |
---|
9 | |
---|
10 | import fr.mael.jiwigo.Main; |
---|
11 | import fr.mael.jiwigo.TestBase; |
---|
12 | import fr.mael.jiwigo.dao.TagDao; |
---|
13 | |
---|
14 | public class TagServiceTest extends TestBase { |
---|
15 | |
---|
16 | public TagServiceTest() { |
---|
17 | super(); |
---|
18 | } |
---|
19 | |
---|
20 | /** |
---|
21 | * Test of the listing method |
---|
22 | */ |
---|
23 | @Test |
---|
24 | public void ListerTest() { |
---|
25 | try { |
---|
26 | TagDao.getInstance(Main.sessionManager).list(); |
---|
27 | } catch (IOException e) { |
---|
28 | e.printStackTrace(); |
---|
29 | } |
---|
30 | } |
---|
31 | |
---|
32 | /** |
---|
33 | * Test of the creation method |
---|
34 | */ |
---|
35 | @Test |
---|
36 | public void creerTest() { |
---|
37 | Date date = new Date(); |
---|
38 | try { |
---|
39 | Assert.assertSame(true, TagService.getInstance(Main.sessionManager).create("Tag" + date.getTime())); |
---|
40 | } catch (IOException e) { |
---|
41 | // TODO Auto-generated catch block |
---|
42 | e.printStackTrace(); |
---|
43 | } |
---|
44 | } |
---|
45 | |
---|
46 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.