Sha256: 417934b07d7ef03132df9b4bf749726dc4ac633ab7636018bd9be48197db0d0b
Contents?: true
Size: 625 Bytes
Versions: 2
Compression:
Stored size: 625 Bytes
Contents
require "spec_helper" require "tmpdir" describe "ProtocJavaCompiler" do # Compile the contents of the generator_tests proto dir, and then assert # everything is where it should be. it "computes fully-qualified class names correctly" do Dir.mktmpdir do |dir| with_descriptor("generator_test", plugin: "java", plugin_out: dir) do |descriptor| generated_classes = ghetto_parse_java_package(dir) children = descriptor.all_descendants children.each do |child| expect(child.fully_qualified_java_name).to eq(generated_classes[child.name]) end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
protobuf_descriptor-1.0.0 | spec/protoc_generator_spec.rb |
protobuf_descriptor-0.1.0 | spec/protoc_generator_spec.rb |