Skip to content

Commit 697939f

Browse files
committed
Update AbstractExchangeSessionTestCase, use test.properties for credentials
git-svn-id: https://svn.code.sf.net/p/davmail/code/trunk@4110 3d1905a2-6b24-0410-a738-b14d5a86fcbd
1 parent cfd3d42 commit 697939f

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

src/test/davmail/exchange/AbstractExchangeSessionTestCase.java

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,18 +27,15 @@
2727

2828
/**
2929
* Exchange session test case.
30-
* Open a session to default DavMail server as found in user davmail.properties,
31-
* except if url is not null
30+
* Open a session to default DavMail server as found in user test.properties
3231
*/
33-
public class AbstractExchangeSessionTestCase extends AbstractDavMailTestCase {
32+
public abstract class AbstractExchangeSessionTestCase extends AbstractDavMailTestCase {
3433

3534
@Override
3635
public void setUp() throws IOException {
3736
super.setUp();
3837
if (session == null) {
39-
// open session, get username and password from davmail.properties
40-
// Note: those properties should *not* exist in normal production mode,
41-
// they are not used by DavMail, just by this test case
38+
// open session, get username and password from test.properties
4239
session = ExchangeSessionFactory.getInstance(Settings.getProperty("davmail.url"), Settings.getProperty("davmail.username"), Settings.getProperty("davmail.password"));
4340
}
4441
}

0 commit comments

Comments
 (0)