mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
Refactor - tidy of DefaultSqlRow - no logical change
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
package com.avaje.ebeaninternal.server.query;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
|
||||
public class DefaultSqlRowTest {
|
||||
|
||||
@Test
|
||||
public void test_keyConversion() {
|
||||
|
||||
DefaultSqlRow row = new DefaultSqlRow(16, 0.5f, "T");
|
||||
row.put("Foo", "hello");
|
||||
|
||||
assertThat(row.containsKey("foo")).isTrue();
|
||||
assertThat(row.getString("foo")).isEqualTo("hello");
|
||||
assertThat(row.get("foo")).isEqualTo("hello");
|
||||
|
||||
row.remove("foo");
|
||||
assertThat(row.isEmpty()).isTrue();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user