Skip to content

Commit

Permalink
updating skeuomorph to use new java_package (#88)
Browse files Browse the repository at this point in the history
* updating skeuomorph to use new java_package

* updating the test to fail

* I toDID it

Co-authored-by: Juan Pedro Moreno <[email protected]>
  • Loading branch information
Dylan Martin and juanpedromoreno authored Sep 1, 2020
1 parent 0d17c4a commit db1e6f7
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ project/plugins/project/
*.metals
.bloop/
.metals/
.vscode/
project/.bloop/
project/project/
project/metals.sbt

### Vim ###
Expand Down
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ lazy val core = project
libraryDependencies ++= Seq(
"io.higherkindness" %% "mu-rpc-service" % "0.22.3",
"com.github.julien-truffaut" %% "monocle-core" % "2.1.0",
"io.higherkindness" %% "skeuomorph" % "0.0.24",
"io.higherkindness" %% "skeuomorph" % "0.0.25",
"com.julianpeeters" %% "avrohugger-core" % "1.0.0-RC22",
"io.circe" %% "circe-generic" % "0.13.0",
"org.http4s" %% "http4s-blaze-client" % "0.21.7",
Expand Down
3 changes: 3 additions & 0 deletions core/src/test/resources/proto/broken.proto
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
syntax = "proto3";

// don't fix this!! It's supposed to fail to compile
pakage = test;

message Broken {
string name = 1;
string nick = 2;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import higherkindness.mu.rpc.srcgen.Model.{
UseIdiomaticEndpoints
}
import higherkindness.mu.rpc.srcgen.proto.ProtoSrcGenerator
import higherkindness.mu.rpc.srcgen.proto.ProtoSrcGenerator.ProtobufSrcGenException
import higherkindness.skeuomorph.ProtobufCompilationException
import org.scalatest._
import org.scalatest.matchers.should.Matchers
import org.scalatest.wordspec.AnyWordSpec
Expand Down Expand Up @@ -76,8 +76,8 @@ class ProtoSrcGenTests extends AnyWordSpec with Matchers with OneInstancePerTest
result shouldBe Some(("com/proto/book.scala", expectedFileContent))
}

"throw an exception on an incorrect Protobuf schema" in {
assertThrows[ProtobufSrcGenException] {
"throw an exception on an invalid Protobuf schema" in {
assertThrows[ProtobufCompilationException] {
ProtoSrcGenerator
.build(
NoCompressionGen,
Expand Down

0 comments on commit db1e6f7

Please sign in to comment.