@Test public void testAllTypesTypeMap() { CodeGeneratorRequest request = TestRequestLoader.getAllTypesRequest(); TypeRegistry map = RequestInfo.withTypeRegistry(request).getTypeRegistry(); assertEquals(10, map.typeMap.entrySet().size()); assertEquals("protos.test.quickbuf.external.ImportMessage", map.resolveMessageType(".quickbuf_unittest_import.ImportMessage").toString()); assertEquals("protos.test.quickbuf.external.ImportMessage.NestedImportMessage", map.resolveMessageType(".quickbuf_unittest_import.ImportMessage.NestedImportMessage").toString()); assertEquals("protos.test.quickbuf.ForeignEnum", map.resolveMessageType(".quickbuf_unittest.ForeignEnum").toString()); }
TypeName resolveMessageType(String typeId) { return checkNotNull(typeMap.get(typeId), "Unable to resolve type id: " + typeId); }
TypeRegistry { TypeName resolveMessageType(String typeId) { return checkNotNull(typeMap.get(typeId), "Unable to resolve type id: " + typeId); } }
TypeRegistry { TypeName resolveMessageType(String typeId) { return checkNotNull(typeMap.get(typeId), "Unable to resolve type id: " + typeId); } private  TypeRegistry(); }
TypeRegistry { TypeName resolveMessageType(String typeId) { return checkNotNull(typeMap.get(typeId), "Unable to resolve type id: " + typeId); } private  TypeRegistry();  }
TypeRegistry { TypeName resolveMessageType(String typeId) { return checkNotNull(typeMap.get(typeId), "Unable to resolve type id: " + typeId); } private  TypeRegistry();   }