Ignore:
Timestamp:
Mar 29, 2011, 8:24:34 PM (13 years ago)
Author:
mlg
Message:

Adds spring for the dependency injection
Deletion of jdom (not useful just for a class that manipulates a simple XML file)

File:
1 edited

Legend:

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

    r9431 r9921  
    66
    77import fr.mael.jiwigo.transverse.session.SessionManager;
     8import fr.mael.jiwigo.transverse.util.spring.SpringUtils;
    89
    910public class TestBase {
    1011    public TestBase() {
    11         Main.sessionManager = new SessionManager("mael", "motdepasse", "http://mael.piwigo.com");
    12         if (Main.sessionManager.processLogin() != 0) {
     12        SessionManager sessionManager = SpringUtils.getSessionManager();
     13        sessionManager.setLogin("mael");
     14        sessionManager.setPassword("motdepasse");
     15        sessionManager.setUrl("http://mael.piwigo.com/ws.php");
     16        if (sessionManager.processLogin() != 0) {
    1317            try {
    1418                throw new Exception("Connection failed");
Note: See TracChangeset for help on using the changeset viewer.