Exemplo n.º 1
0
 @Test
 public void toString4() {
   Timestamp timestamp = Timestamp.of(1234, 100);
   assertThat(timestamp.toString(), equalTo("1234.000000100"));
 }
Exemplo n.º 2
0
 @Test
 public void toString2() {
   Timestamp timestamp = Timestamp.of(1, 234500000);
   assertThat(timestamp.toString(), equalTo("1.234500000"));
 }
Exemplo n.º 3
0
 @Test
 public void toString3() {
   Timestamp timestamp = Timestamp.of(1234, 567890000);
   assertThat(timestamp.toString(), equalTo("1234.567890000"));
 }
Exemplo n.º 4
0
 @Test
 public void toString1() {
   Timestamp timestamp = Timestamp.of(0, 10000000);
   assertThat(timestamp.toString(), equalTo("0.010000000"));
 }