Skip to content

Commit

Permalink
Issue rgushel#5 - Re-enabled tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Dragan Jotanovic committed Apr 23, 2018
1 parent 14d2b44 commit faad157
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ private void createTestDomain() {
testDomain.setMultiMappingListValue(Collections.singletonList(listChild));
}

// @Test
@Test
public void testMultiMapping() {
Converter converter = Converter.create();
MultiMappingProto.MultiMappingTest protobufResult = converter
Expand Down
14 changes: 7 additions & 7 deletions src/test/java/net/badata/protobuf/converter/ResolverTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,13 @@ private void createTestProtobuf() {

@Test
public void testDomainToProtobuf() {
// ResolverProto.ResolverTest result = Converter.create().toProtobuf(ResolverProto.ResolverTest.class,
// testDomain);
//
// Assert.assertNotNull(result);
// Assert.assertEquals(testDomain.getCommaDelimitedStringValue(),
// String.join(",", result.getStringListValueList()));
// Assert.assertEquals(testDomain.getStringList(), Arrays.asList(result.getDelimitedStringValue().split(",")));
ResolverProto.ResolverTest result = Converter.create().toProtobuf(ResolverProto.ResolverTest.class,
testDomain);

Assert.assertNotNull(result);
Assert.assertEquals(testDomain.getCommaDelimitedStringValue(),
String.join(",", result.getStringListValueList()));
Assert.assertEquals(testDomain.getStringList(), Arrays.asList(result.getDelimitedStringValue().split(",")));
}


Expand Down

0 comments on commit faad157

Please sign in to comment.