-
Notifications
You must be signed in to change notification settings - Fork 486
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added config interceptor for in-memory server #1000
Added config interceptor for in-memory server #1000
Conversation
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.
Thanks, @etrandafir93! It's nice to have you contributing.
I've left some feedback inline. Also as a general note, will you please add JavaDoc to any new methods or classes that you create and in those JavaDoc ensure that you have the following:
@since 3.3
test-support/src/main/java/org/springframework/ldap/test/unboundid/EmbeddedLdapServer.java
Show resolved
Hide resolved
test-support/src/main/java/org/springframework/ldap/test/unboundid/LdapTestUtils.java
Outdated
Show resolved
Hide resolved
test-support/src/main/java/org/springframework/ldap/test/unboundid/EmbeddedLdapServer.java
Outdated
Show resolved
Hide resolved
...ort/src/main/java/org/springframework/ldap/test/unboundid/EmbeddedLdapServerFactoryBean.java
Outdated
Show resolved
Hide resolved
...port/src/main/java/org/springframework/ldap/test/unboundid/TestContextSourceFactoryBean.java
Outdated
Show resolved
Hide resolved
Sorry about the DCO failure. I'll ping @rwinch and see if it is something on our side. |
@etrandafir93, I wonder if it is because the identifiers don't agree. On your commit, it shows the email as:
But the Signed-Off-By is:
|
Here is the error message when clicking the
So I believe that may be the case. |
7798068
to
be9de0b
Compare
...rt/src/test/java/org/springframework/ldap/test/unboundid/EmbeddedLdapServerBuilderTests.java
Outdated
Show resolved
Hide resolved
538e0e0
to
3b610b0
Compare
hey @jzheaux - I have now rebased and accommodated your suggestions. |
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.
Thanks for the updates, @etrandafir93! I've left some feedback inline about the changes.
...support/src/main/java/org/springframework/ldap/test/unboundid/EmbeddedLdapServerBuilder.java
Outdated
Show resolved
Hide resolved
test-support/src/main/java/org/springframework/ldap/test/unboundid/EmbeddedLdapServer.java
Outdated
Show resolved
Hide resolved
test-support/src/main/java/org/springframework/ldap/test/unboundid/EmbeddedLdapServer.java
Show resolved
Hide resolved
...support/src/main/java/org/springframework/ldap/test/unboundid/EmbeddedLdapServerBuilder.java
Outdated
Show resolved
Hide resolved
...support/src/main/java/org/springframework/ldap/test/unboundid/EmbeddedLdapServerBuilder.java
Outdated
Show resolved
Hide resolved
...rt/src/test/java/org/springframework/ldap/test/unboundid/EmbeddedLdapServerBuilderTests.java
Outdated
Show resolved
Hide resolved
37d2385
to
bcd479c
Compare
thanks for the insightful feedback, @jzheaux! I have applied your suggestions, let me know what you think :) |
bcd479c
to
543e15a
Compare
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.
Great, @etrandafir93! This is shaping up nicely. I've left some feedback inline.
At this point, I'd also recommend squashing your commits. There should be two: one for the polish to CONTRIBUTING.adoc
and one for the feature.
...ort/src/main/java/org/springframework/ldap/test/unboundid/EmbeddedLdapServerFactoryBean.java
Outdated
Show resolved
Hide resolved
test-support/src/main/java/org/springframework/ldap/test/unboundid/EmbeddedLdapServer.java
Outdated
Show resolved
Hide resolved
test-support/src/test/java/org/springframework/ldap/test/unboundid/EmbeddedLdapServerTests.java
Show resolved
Hide resolved
test-support/src/main/java/org/springframework/ldap/test/unboundid/EmbeddedLdapServer.java
Show resolved
Hide resolved
97cc5b7
to
3d64543
Compare
I applied your latest suggestions and squashed the commits. |
also, how would you feel about migrating this module to junit5? |
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.
Nearly there, @etrandafir93! I've left a bit more feedback inline.
Also, it would help me if your commit messages used Closes gh-938
only for the feature commit. Since the contribution page commit doesn't "close" that ticket, please leave that line out of that final commit.
public static EmbeddedLdapServer newEmbeddedServer(String defaultPartitionName, String defaultPartitionSuffix, | ||
int port) throws Exception { |
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.
Sorry that I didn't catch this earlier. We can't remove checked exceptions from signatures as this can break some forms of compatibility. Please see https://wiki.eclipse.org/Evolving_Java-based_APIs_2 and look specifically for "Delete checked exceptions thrown".
test-support/src/test/java/org/springframework/ldap/test/unboundid/EmbeddedLdapServerTests.java
Show resolved
Hide resolved
Closes spring-projects#938 Signed-off-by: Emanuel Trandafir <emanueltrandafir1993@gmail.com> Signed-off-by: etrandafir93 <emanueltrandafir1993@gmail.com>
d1c520c
to
033f8de
Compare
Issue spring-projects#938 Signed-off-by: etrandafir93 <emanueltrandafir1993@gmail.com>
033f8de
to
c7ea7f6
Compare
Issue spring-projects#938 Signed-off-by: etrandafir93 <emanueltrandafir1993@gmail.com>
@jzheaux I think it should be ok now: Can you please take another look? |
In order to remain binary compatible, we cannot remove checked exceptions from signatures. And since this method is deprecated anyway, there is little to be gained from changing its signature. Issue spring-projectsgh-938
Thanks, @etrandafir93! This is now merged into Note that I restored the exception in the |
Closes #938