Skip to content

Commit

Permalink
Polishing
Browse files Browse the repository at this point in the history
Move test for NestedMultiOutput into own class.

Original pull request: #328.
  • Loading branch information
mp911de committed Aug 11, 2016
1 parent 94026bf commit 4810d76
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
package com.lambdaworks.redis.output;

import static com.lambdaworks.redis.protocol.LettuceCharsets.buffer;
import static org.assertj.core.api.Assertions.assertThat;

import org.junit.Test;

import com.lambdaworks.redis.codec.RedisCodec;
import com.lambdaworks.redis.codec.Utf8StringCodec;

/**
* @author Mark Paluch
*/
public class NestedMultiOutputTest {

private RedisCodec<String, String> codec = new Utf8StringCodec();

@Test
public void nestedMultiError() throws Exception {

NestedMultiOutput<String, String> output = new NestedMultiOutput<String, String>(codec);
output.setError(buffer("Oops!"));
assertThat(output.getError()).isNotNull();
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -111,13 +111,6 @@ public String get() throws RedisException {
output.set(0);
}

@Test
public void nestedMultiError() throws Exception {
NestedMultiOutput<String, String> output = new NestedMultiOutput<String, String>(codec);
output.setError(buffer("Oops!"));
assertThat(output.getError()).isNotNull();
}

@Test
public void sillyTestsForEmmaCoverage() throws Exception {
assertThat(CommandType.valueOf("APPEND")).isEqualTo(CommandType.APPEND);
Expand Down

0 comments on commit 4810d76

Please sign in to comment.