提交 11a19fd8 编写于 作者: T terrymanu

refactor BinaryProtocolValueTest

上级 76caea26
......@@ -24,6 +24,7 @@ import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.mockito.junit.MockitoJUnitRunner;
import java.math.BigDecimal;
import java.sql.Timestamp;
import static org.hamcrest.CoreMatchers.is;
......@@ -134,7 +135,8 @@ public final class BinaryProtocolValueTest {
@Test
public void assertWriteInt8() {
new BinaryProtocolValue(ColumnType.MYSQL_TYPE_LONGLONG, payload).write(1L);
verify(payload).writeInt8(1L);
new BinaryProtocolValue(ColumnType.MYSQL_TYPE_LONGLONG, payload).write(new BigDecimal(1L));
verify(payload, times(2)).writeInt8(1L);
}
@Test
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册