Ignore:
Timestamp:
Feb 26, 2011, 5:26:27 PM (13 years ago)
Author:
mlg
Message:

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 )

Location:
extensions/jiwigo/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/jiwigo/trunk

    • Property svn:ignore set to
      bin
      target
  • extensions/jiwigo/trunk/src/test/java/fr/mael/jiwigo/service/ServicesTest.java

    r6963 r9385  
    55import org.junit.Test;
    66
     7import fr.mael.jiwigo.Main;
    78import fr.mael.jiwigo.TestBase;
    89import fr.mael.jiwigo.om.Category;
     
    1819    public void testCreer() throws Exception {
    1920        Category cat = null;
    20         for (Category category : CategoryService.getInstance().lister(true)) {
     21        for (Category category : CategoryService.getInstance(Main.sessionManager).lister(true)) {
    2122            if (category.getIdentifiant().equals(3)) {
    2223                cat = category;
     
    2425            }
    2526        }
    26         Image image = ImageService.getInstance().listerParCategory(cat.getIdentifiant(), true).get(0);
    27         int firstCount = CommentService.getInstance().lister(image.getIdentifiant()).size();
    28         CommentService.getInstance().creer("comment test", image.getIdentifiant(), "none");
    29         Assert.assertSame(firstCount + 1, CommentService.getInstance().lister(image.getIdentifiant()).size());
     27        Image image = ImageService.getInstance(Main.sessionManager).listerParCategory(cat.getIdentifiant(), true)
     28                .get(0);
     29        int firstCount = CommentService.getInstance(Main.sessionManager).lister(image.getIdentifiant()).size();
     30        CommentService.getInstance(Main.sessionManager).creer("comment test", image.getIdentifiant(), "none");
     31        Assert.assertSame(firstCount + 1, CommentService.getInstance(Main.sessionManager)
     32                .lister(image.getIdentifiant()).size());
    3033    }
    3134}
Note: See TracChangeset for help on using the changeset viewer.