Skip to content

Commit

Permalink
clean(core): Remove MessageToThingConverterTest#testTimestamp()
Browse files Browse the repository at this point in the history
  • Loading branch information
vorburger committed Feb 26, 2024
1 parent 265061f commit 009d1bb
Showing 1 changed file with 0 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,6 @@ public void testSimple() throws ConversionException {
check(simple, simpleThingWithProto);
}

/* TODO Activate testTimestamp()
@Test
public void testTimestamp() throws ConversionException {
check(
Timestamp.newBuilder().setSeconds(123).setNanos(456),
"1970-01-01T00:02:03.000000456Z");
} */

@Test
public void testRepeated() throws ConversionException {
var repeated = TestRepeated.newBuilder().addLines("one").addLines("two");
Expand All @@ -79,15 +71,6 @@ public void testComplex() throws ConversionException {
check(complex, complexThingWithProto);
}

/*
private void check(Message.Builder thing, String expectedText) throws ConversionException {
var view = Things.from(thing.build()).build();
assertThat(view.hasStruct()).isFalse();
assertThat(view.hasText()).isTrue();
assertThat(view.getText().getString()).isEqualTo(expectedText);
}
*/

private void check(Message.Builder message, Thing.Builder expectedThing)
throws ConversionException {
var actualThing = c.convert(message.build());
Expand Down

0 comments on commit 009d1bb

Please sign in to comment.