Skip to content

Commit

Permalink
add GET command tests
Browse files Browse the repository at this point in the history
  • Loading branch information
reugn committed Jun 16, 2021
1 parent f1aed89 commit 9172201
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/test/kotlin/com/aerospike/skyhook/KeyCommandsTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,24 @@ class KeyCommandsTest() : SkyhookIntegrationTestBase() {
}
}

@Test
fun testGet() {
writeCommand("${RedisCommand.SET.name} key1 val1")
assertEquals(ok, readString())
writeCommand("${RedisCommand.GET.name} key1")
assertEquals("val1", readFullBulkString())

writeCommand("${RedisCommand.SET.name} key1 1")
assertEquals(ok, readString())
writeCommand("${RedisCommand.GET.name} key1")
assertEquals("1", readFullBulkString())

writeCommand("${RedisCommand.SET.name} key1 1.25")
assertEquals(ok, readString())
writeCommand("${RedisCommand.GET.name} key1")
assertEquals("1.25", readFullBulkString())
}

@Test
fun testMget() {
setup()
Expand Down

0 comments on commit 9172201

Please sign in to comment.