Last change
on this file since 9431 was
9431,
checked in by mlg, 13 years ago
|
Modifications to use the last version of jiwigo-ws-api which manages proxy errors.
|
File size:
614 bytes
|
Line | |
---|
1 | package fr.mael.jiwigo; |
---|
2 | |
---|
3 | import junit.framework.Assert; |
---|
4 | |
---|
5 | import org.junit.Test; |
---|
6 | |
---|
7 | import fr.mael.jiwigo.transverse.session.SessionManager; |
---|
8 | |
---|
9 | public class TestBase { |
---|
10 | public TestBase() { |
---|
11 | Main.sessionManager = new SessionManager("mael", "motdepasse", "http://mael.piwigo.com"); |
---|
12 | if (Main.sessionManager.processLogin() != 0) { |
---|
13 | try { |
---|
14 | throw new Exception("Connection failed"); |
---|
15 | } catch (Exception e) { |
---|
16 | e.printStackTrace(); |
---|
17 | } |
---|
18 | } |
---|
19 | } |
---|
20 | |
---|
21 | /** |
---|
22 | * Fake test so that maven assembly plugin's build does not fail |
---|
23 | */ |
---|
24 | @Test |
---|
25 | public void fakeTest() { |
---|
26 | Assert.assertSame(true, true); |
---|
27 | } |
---|
28 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.