Skip to content

Commit

Permalink
Adjusted test for version prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
kstyrc committed Apr 2, 2015
1 parent 3fe6820 commit c8cb554
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
12 changes: 6 additions & 6 deletions src/main/java/redis/embedded/RedisExecProvider.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@ private RedisExecProvider() {
}

private void initExecutables() {
executables.put(OsArchitecture.WINDOWS_x86, "redis-server.exe");
executables.put(OsArchitecture.WINDOWS_x86_64, "redis-server-64.exe");
executables.put(OsArchitecture.WINDOWS_x86, "redis-server-2.8.19.exe");
executables.put(OsArchitecture.WINDOWS_x86_64, "redis-server-2.8.19.exe");

executables.put(OsArchitecture.UNIX_x86, "redis-server");
executables.put(OsArchitecture.UNIX_x86_64, "redis-server");
executables.put(OsArchitecture.UNIX_x86, "redis-server-2.8.19");
executables.put(OsArchitecture.UNIX_x86_64, "redis-server-2.8.19");

executables.put(OsArchitecture.MAC_OS_X_x86, "redis-server.app");
executables.put(OsArchitecture.MAC_OS_X_x86_64, "redis-server.app");
executables.put(OsArchitecture.MAC_OS_X_x86, "redis-server-2.8.19.app");
executables.put(OsArchitecture.MAC_OS_X_x86_64, "redis-server-2.8.19.app");
}

public RedisExecProvider override(OS os, String executable) {
Expand Down
8 changes: 4 additions & 4 deletions src/test/java/redis/embedded/RedisServerTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,10 @@ public void shouldIndicateInactiveAfterStop() throws Exception {
@Test
public void shouldOverrideDefaultExecutable() throws Exception {
RedisExecProvider customProvider = RedisExecProvider.defaultProvider()
.override(OS.UNIX, Resources.getResource("redis-server").getFile())
.override(OS.WINDOWS, Architecture.x86, Resources.getResource("redis-server.exe").getFile())
.override(OS.WINDOWS, Architecture.x86_64, Resources.getResource("redis-server-64.exe").getFile())
.override(OS.MAC_OS_X, Resources.getResource("redis-server").getFile());
.override(OS.UNIX, Resources.getResource("redis-server-2.8.19").getFile())
.override(OS.WINDOWS, Architecture.x86, Resources.getResource("redis-server-2.8.19.exe").getFile())
.override(OS.WINDOWS, Architecture.x86_64, Resources.getResource("redis-server-2.8.19.exe").getFile())
.override(OS.MAC_OS_X, Resources.getResource("redis-server-2.8.19").getFile());

redisServer = new RedisServerBuilder()
.redisExecProvider(customProvider)
Expand Down

0 comments on commit c8cb554

Please sign in to comment.