Skip to content

Commit

Permalink
Polishing redis#898
Browse files Browse the repository at this point in the history
Fix visibility for API generator as JUnit 4 requires public types. *sigh*.
  • Loading branch information
mp911de committed Nov 19, 2018
1 parent 7f0c98a commit 5f27184
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 15 deletions.
6 changes: 3 additions & 3 deletions src/test/java/io/lettuce/apigenerator/CreateAsyncApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
* @author Mark Paluch
*/
@RunWith(Parameterized.class)
class CreateAsyncApi {
public class CreateAsyncApi {

private Set<String> KEEP_METHOD_RESULT_TYPE = LettuceSets.unmodifiableSet("shutdown", "debugOom", "debugSegfault",
"digest", "close", "isOpen", "BaseRedisCommands.reset", "getStatefulConnection", "setAutoFlushCommands",
Expand All @@ -47,7 +47,7 @@ class CreateAsyncApi {
private CompilationUnitFactory factory;

@Parameterized.Parameters(name = "Create {0}")
static List<Object[]> arguments() {
public static List<Object[]> arguments() {
List<Object[]> result = new ArrayList<>();

for (String templateName : Constants.TEMPLATE_NAMES) {
Expand Down Expand Up @@ -108,7 +108,7 @@ Supplier<List<String>> importSupplier() {
}

@Test
void createInterface() throws Exception {
public void createInterface() throws Exception {
factory.createInterface();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,15 @@
* @author Mark Paluch
*/
@RunWith(Parameterized.class)
class CreateAsyncNodeSelectionClusterApi {
public class CreateAsyncNodeSelectionClusterApi {

private Set<String> FILTER_METHODS = LettuceSets.unmodifiableSet("shutdown", "debugOom", "debugSegfault", "digest", "close",
"isOpen", "BaseRedisCommands.reset", "readOnly", "readWrite", "setAutoFlushCommands", "flushCommands");

private CompilationUnitFactory factory;

@Parameterized.Parameters(name = "Create {0}")
static List<Object[]> arguments() {
public static List<Object[]> arguments() {
List<Object[]> result = new ArrayList<>();

for (String templateName : Constants.TEMPLATE_NAMES) {
Expand Down Expand Up @@ -114,7 +114,7 @@ Supplier<List<String>> importSupplier() {
}

@Test
void createInterface() throws Exception {
public void createInterface() throws Exception {
factory.createInterface();
}
}
6 changes: 3 additions & 3 deletions src/test/java/io/lettuce/apigenerator/CreateReactiveApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
* @author Mark Paluch
*/
@RunWith(Parameterized.class)
class CreateReactiveApi {
public class CreateReactiveApi {

private static Set<String> KEEP_METHOD_RESULT_TYPE = LettuceSets.unmodifiableSet("digest", "close", "isOpen",
"BaseRedisCommands.reset", "getStatefulConnection", "setAutoFlushCommands", "flushCommands");
Expand All @@ -60,7 +60,7 @@ class CreateReactiveApi {
private CompilationUnitFactory factory;

@Parameterized.Parameters(name = "Create {0}")
static List<Object[]> arguments() {
public static List<Object[]> arguments() {
List<Object[]> result = new ArrayList<>();

for (String templateName : Constants.TEMPLATE_NAMES) {
Expand Down Expand Up @@ -175,7 +175,7 @@ Supplier<List<String>> importSupplier() {
}

@Test
void createInterface() throws Exception {
public void createInterface() throws Exception {
factory.createInterface();
}
}
6 changes: 3 additions & 3 deletions src/test/java/io/lettuce/apigenerator/CreateSyncApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,14 @@
* @author Mark Paluch
*/
@RunWith(Parameterized.class)
class CreateSyncApi {
public class CreateSyncApi {

private Set<String> FILTER_METHODS = LettuceSets.unmodifiableSet("setAutoFlushCommands", "flushCommands");

private CompilationUnitFactory factory;

@Parameterized.Parameters(name = "Create {0}")
static List<Object[]> arguments() {
public static List<Object[]> arguments() {
List<Object[]> result = new ArrayList<>();

for (String templateName : Constants.TEMPLATE_NAMES) {
Expand Down Expand Up @@ -114,7 +114,7 @@ Supplier<List<String>> importSupplier() {
}

@Test
void createInterface() throws Exception {
public void createInterface() throws Exception {
factory.createInterface();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,15 @@
* @author Mark Paluch
*/
@RunWith(Parameterized.class)
class CreateSyncNodeSelectionClusterApi {
public class CreateSyncNodeSelectionClusterApi {

private Set<String> FILTER_METHODS = LettuceSets.unmodifiableSet("shutdown", "debugOom", "debugSegfault", "digest",
"close", "isOpen", "BaseRedisCommands.reset", "readOnly", "readWrite", "dispatch", "setAutoFlushCommands", "flushCommands");

private CompilationUnitFactory factory;

@Parameterized.Parameters(name = "Create {0}")
static List<Object[]> arguments() {
public static List<Object[]> arguments() {
List<Object[]> result = new ArrayList<>();

for (String templateName : Constants.TEMPLATE_NAMES) {
Expand Down Expand Up @@ -127,7 +127,7 @@ Supplier<List<String>> importSupplier() {
}

@Test
void createInterface() throws Exception {
public void createInterface() throws Exception {
factory.createInterface();
}
}

0 comments on commit 5f27184

Please sign in to comment.