-
Notifications
You must be signed in to change notification settings - Fork 40
#156 support for multiple mailboxes #183
base: master
Are you sure you want to change the base?
Conversation
*/ | ||
package com.cognifide.qa.bb.email; | ||
|
||
public interface EmailClientFactory { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing Javadocs
import com.google.inject.assistedinject.AssistedInject; | ||
import com.google.inject.name.Names; | ||
|
||
public class EmailConfig { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing javadocs on all public methods and the class itself - and same applies to other classes in this PR.
*/ | ||
package com.cognifide.qa.bb.email.helpers; | ||
|
||
public interface EmailDataGeneratorFactory { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Javadocs again
new EmailModule(), | ||
new FactoryModuleBuilder().build(MailServerFactory.class), | ||
new FactoryModuleBuilder().build(EmailDataGeneratorFactory.class) | ||
); | ||
injector.injectMembers(this); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are we still injecting any members?
bb-email/pom.xml
Outdated
@@ -60,6 +64,11 @@ | |||
|
|||
<!-- tests --> | |||
<dependency> | |||
<groupId>org.mockito</groupId> | |||
<artifactId>mockito-core</artifactId> | |||
<scope>test</scope> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The scope for this dependency is inherited from parent pom. Please remove it from here.
(should have)
@@ -45,11 +44,11 @@ | |||
|
|||
private static final Logger LOGGER = LoggerFactory.getLogger(EmailDataFactory.class); | |||
|
|||
private final Pattern addressPattern; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is final
keyword removed here?
For me it looks like a hint for developer that this is not mutable (and needs to be set in constructor).
Could we have it restored to final
?
(should have).
@@ -1,12 +0,0 @@ | |||
email.username=qatest_user |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When managing multiple mailboxes it would be easier for me to have separate properties file for every mailbox.
Then if keys didn't contain ${id}
(id could be a filename without extension) then i could easily compare those files (when for example the difference should be only in username/password.
- less changes in this pull request
- configuration id easy to change (one change instead of change in every key)
- creating a new configuration easy (just copy a file)
What do you think?
No description provided.