Skip to content
This repository has been archived by the owner on Nov 23, 2021. It is now read-only.

#156 support for multiple mailboxes #183

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

#156 support for multiple mailboxes #183

wants to merge 2 commits into from

Conversation

piotr-wilczynski
Copy link
Contributor

No description provided.

Added support for multiple mailboxes
*/
package com.cognifide.qa.bb.email;

public interface EmailClientFactory {
Copy link
Contributor

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 {
Copy link
Contributor

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 {
Copy link
Contributor

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);
Copy link
Contributor

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?

@wiiitek wiiitek changed the title 156 #136 (remove emails with specified subject) Apr 25, 2017
bb-email/pom.xml Outdated
@@ -60,6 +64,11 @@

<!-- tests -->
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<scope>test</scope>
Copy link

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;
Copy link

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
Copy link

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?

@wiiitek wiiitek changed the title #136 (remove emails with specified subject) #156 support for multiple mailboxes Apr 25, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants