-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #339 from higherkindness/issue337
Extend package choosing behavior to protobuf files with `Enum` types
- Loading branch information
Showing
8 changed files
with
206 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
src/test/resources/protobuf/packages/test_enum_java_package.proto
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
syntax = "proto3"; | ||
|
||
package example; | ||
|
||
option java_package="better_example"; | ||
|
||
message Example { | ||
ExampleEnum enum = 1; | ||
} | ||
|
||
enum ExampleEnum { | ||
Option1 = 0; | ||
Option2 = 1; | ||
} |
10 changes: 10 additions & 0 deletions
10
src/test/resources/protobuf/packages/test_enum_no_package.proto
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
syntax = "proto3"; | ||
|
||
message Example { | ||
ExampleEnum enum = 1; | ||
} | ||
|
||
enum ExampleEnum { | ||
Option1 = 0; | ||
Option2 = 1; | ||
} |
12 changes: 12 additions & 0 deletions
12
src/test/resources/protobuf/packages/test_enum_only_java_package.proto
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
syntax = "proto3"; | ||
|
||
option java_package="better_example"; | ||
|
||
message Example { | ||
ExampleEnum enum = 1; | ||
} | ||
|
||
enum ExampleEnum { | ||
Option1 = 0; | ||
Option2 = 1; | ||
} |
12 changes: 12 additions & 0 deletions
12
src/test/resources/protobuf/packages/test_enum_package.proto
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
syntax = "proto3"; | ||
|
||
package example; | ||
|
||
message Example { | ||
ExampleEnum enum = 1; | ||
} | ||
|
||
enum ExampleEnum { | ||
Option1 = 0; | ||
Option2 = 1; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.