Skip to content

Commit

Permalink
Small polishing things
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyk-91 committed Feb 15, 2017
1 parent cc68899 commit acbf0f0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public interface AtlasDbFactory {
default TimestampStoreInvalidator createTimestampStoreInvalidator(KeyValueService rawKvs) {
return () -> {
Logger log = LoggerFactory.getLogger(AtlasDbFactory.class);
log.warn("AtlasDB doesn't yet support automated migration for KVS type: " + getType() + ".");
log.warn("AtlasDB doesn't yet support automated migration for KVS type {}.", getType());
return NO_OP_FAST_FORWARD_TIMESTAMP;
};
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,10 @@ public class TimelockMigratorTest {
@Before
public void setUp() {
when(invalidator.backupAndInvalidate()).thenReturn(BACKUP_TIMESTAMP);
wireMockRule.stubFor(PING_MAPPING.willReturn(aResponse().withStatus(200).withBody("\"pong\"")));
wireMockRule.stubFor(PING_MAPPING.willReturn(aResponse()
.withStatus(200)
.withBody("pong")
.withHeader("Content-Type", "text/plain")));
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
*/
package com.palantir.timestamp;

import javax.annotation.CheckReturnValue;
import javax.annotation.meta.When;
import javax.ws.rs.DefaultValue;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
Expand Down Expand Up @@ -49,7 +51,8 @@ void fastForwardTimestamp(

@GET
@Path("ping")
@Produces(MediaType.APPLICATION_JSON)
@Produces(MediaType.TEXT_PLAIN)
@CheckReturnValue(when = When.NEVER)
default String ping() {
return "pong";
}
Expand Down

0 comments on commit acbf0f0

Please sign in to comment.