Skip to content

Commit

Permalink
Polishing
Browse files Browse the repository at this point in the history
Tweak Javadoc wording.
  • Loading branch information
mp911de committed Oct 26, 2020
1 parent deca4c7 commit 66bea16
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/test/java/io/lettuce/test/LettuceExtension.java
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,14 @@
* public CustomCommandTest(StatefulRedisConnection<String, String> connection) {
* this.redis = connection.sync();
* }
*
* }
* </pre>
*
* <h3>Resource lifecycle</h3>
*
* This extension allocates resources lazily and stores them in its {@link ExtensionContext}
* {@link org.junit.jupiter.api.extension.ExtensionContext.Store} for resuse across multiple tests. Client and
* {@link org.junit.jupiter.api.extension.ExtensionContext.Store} for reuse across multiple tests. Client and
* {@link ClientResources} are allocated through{@link DefaultRedisClient} respective {@link TestClientResources} so shutdown is
* managed by the actual suppliers. Singleton connection resources are closed after the test class (test container) is finished.
* Newable connection resources are closed after the actual test is finished.
Expand Down Expand Up @@ -113,7 +114,7 @@ public class LettuceExtension implements ParameterResolver, AfterAllCallback, Af
RedisClusterClientSupplier.INSTANCE, RedisClientSupplier.INSTANCE, StatefulRedisConnectionSupplier.INSTANCE,
StatefulRedisPubSubConnectionSupplier.INSTANCE, StatefulRedisClusterConnectionSupplier.INSTANCE);

private static final List<Function<?, ?>> RESOURCE_FUNCTIONS = Arrays.asList(RedisCommandsFunction.INSTANCE);
private static final List<Function<?, ?>> RESOURCE_FUNCTIONS = Collections.singletonList(RedisCommandsFunction.INSTANCE);

@Override
public boolean supportsParameter(ParameterContext parameterContext, ExtensionContext extensionContext)
Expand All @@ -138,9 +139,7 @@ public Object resolveParameter(ParameterContext parameterContext, ExtensionConte
throws ParameterResolutionException {

ExtensionContext.Store store = getStore(extensionContext);

Parameter parameter = parameterContext.getParameter();

Type parameterizedType = parameter.getParameterizedType();
if (parameterContext.isAnnotated(New.class)) {

Expand Down

0 comments on commit 66bea16

Please sign in to comment.