Skip to content

Commit a908265

Browse files
committed
Renamed 'pinger' to 'ping', it's a noun also. Pinger just looks weird and is uncommon.
1 parent 224ce58 commit a908265

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

src/main/java/org/nameapi/client/services/system/pinger/PingerCommand.java renamed to src/main/java/org/nameapi/client/services/system/ping/PingCommand.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package org.nameapi.client.services.system.pinger;
1+
package org.nameapi.client.services.system.ping;
22

33
import com.google.common.base.Optional;
44
import com.optimaize.command4j.ExecutionContext;
@@ -19,11 +19,11 @@
1919
*
2020
* @author eike, andrej
2121
*/
22-
public class PingerCommand extends NameApiBaseCommand<RestPort, Void, String> {
22+
public class PingCommand extends NameApiBaseCommand<RestPort, Void, String> {
2323

2424
private static final String SERVICE_PATH = "/system/ping";
2525

26-
public PingerCommand() {
26+
public PingCommand() {
2727
super(RestPort.class);
2828
}
2929

src/main/java/org/nameapi/client/services/system/pinger/RestPort.java renamed to src/main/java/org/nameapi/client/services/system/ping/RestPort.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package org.nameapi.client.services.system.pinger;
1+
package org.nameapi.client.services.system.ping;
22

33
import com.optimaize.anythingworks.client.rest.http.HeaderParams;
44
import com.optimaize.anythingworks.client.rest.http.QueryParams;

src/test/functional/java/org/nameapi/client/services/system/pinger/PingerCommandTest.java renamed to src/test/functional/java/org/nameapi/client/services/system/ping/PingCommandTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package org.nameapi.client.services.system.pinger;
1+
package org.nameapi.client.services.system.ping;
22

33
import com.optimaize.command4j.CommandExecutor;
44
import com.optimaize.command4j.Mode;
@@ -10,13 +10,13 @@
1010

1111
/**
1212
*/
13-
public class PingerCommandTest {
13+
public class PingCommandTest {
1414

1515
private final CommandExecutor executor = NameApiRemoteExecutors.get();
1616

1717
@Test
1818
public void testCall() throws Exception {
19-
PingerCommand command = new PingerCommand();
19+
PingCommand command = new PingCommand();
2020
Mode mode = FunctionalTestsNameApiModeFactory.functionalTest();
2121
for (int i=0; i<1; i++) {
2222
assertEquals(executor.execute(command, mode, null).get(), "pong");

0 commit comments

Comments
 (0)