IOS-1542 Less optionals for AccountSettings (test). IOS-1542
authorDirk Zimmermann <dz@pep.security>
Mon, 15 Apr 2019 16:17:33 +0200
branchIOS-1542
changeset 823621266fc95bca
parent 8227 9cc7bc0c040a
child 8237 e23c7448bc16
IOS-1542 Less optionals for AccountSettings (test).
Backed out changeset 9cc7bc0c040a
pEpForiOSTests/TestUtils/TestDataBase.swift
     1.1 --- a/pEpForiOSTests/TestUtils/TestDataBase.swift	Mon Apr 15 09:07:29 2019 +0200
     1.2 +++ b/pEpForiOSTests/TestUtils/TestDataBase.swift	Mon Apr 15 16:17:33 2019 +0200
     1.3 @@ -18,26 +18,17 @@
     1.4          var idAddress: String
     1.5          var idUserName: String?
     1.6          var smtpLoginName: String?
     1.7 -        var smtpServerAddress: String?
     1.8 +        var smtpServerAddress: String
     1.9          var smtpServerType: Server.ServerType = .smtp
    1.10          var smtpServerTransport: Server.Transport = .tls
    1.11          var smtpServerPort: UInt16 = 587
    1.12          var imapLoginName: String?
    1.13 -        var imapServerAddress: String?
    1.14 +        var imapServerAddress: String
    1.15          var imapServerType: Server.ServerType = .imap
    1.16          var imapServerTransport: Server.Transport = .startTls
    1.17          var imapServerPort: UInt16 = 993
    1.18          var password: String?
    1.19  
    1.20 -        init(accountName: String?, address: String) {
    1.21 -            self.accountName = accountName
    1.22 -            self.idAddress = address
    1.23 -        }
    1.24 -
    1.25 -        init(address: String) {
    1.26 -            self.init(accountName: nil, address: address)
    1.27 -        }
    1.28 -
    1.29          init(accountName: String,
    1.30               idAddress: String,
    1.31               idUserName: String,