Skip to content

ProtocolBuffersTest doesn't compile #514

Closed

Description

@elharo
Running com.google.api.client.protobuf.ProtocolBuffersTest
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.039 sec <<< FAILURE! - in com.google.api.client.protobuf.ProtocolBuffersTest
testParseAndClose(com.google.api.client.protobuf.ProtocolBuffersTest)  Time elapsed: 0.011 sec  <<< ERROR!
java.lang.Error: 
Unresolved compilation problems: 
	SimpleProto cannot be resolved to a type
	SimpleProto cannot be resolved
	SimpleProto cannot be resolved to a variable
	SimpleProto cannot be resolved to a type
	Bound mismatch: The generic method parseAndClose(InputStream, Class<T>) of type ProtocolBuffers is not applicable for the arguments (ByteArrayInputStream, Class<TestMessage>). The inferred type TestMessage is not a valid substitute for the bounded parameter <T extends MessageLite>
	SimpleProto cannot be resolved to a type

	at com.google.api.client.protobuf.ProtocolBuffersTest.testParseAndClose(ProtocolBuffersTest.java:28)

Activity

  1. chingor13 commented on Oct 31, 2018

    @chingor13
    Contributor

    How are you running the test? That class should be generated by the maven-protoc-plugin during test-compile. If I run mvn test from the google-http-client-protobuf folder it compiles and passes.

  2. added
    triage me
    🚨
    on Nov 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

🚨triage me

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions