Last change
on this file since 9385 was
9385,
checked in by mlg, 13 years ago
|
All services have been removed from this project to be integrated in a new project : jiwigo-ws-api (not yet on the svn).
The current project now uses jiwigo-ws-api as a maven dependency (explanations can be found here : http://www.jiwigo.com/api.html )
|
File size:
881 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).lister(); |
---|
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).creer("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.