summaryrefslogtreecommitdiff
path: root/java/java_test.go
diff options
context:
space:
mode:
authorPedro Loureiro <pedroql@google.com>2021-04-15 11:04:47 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2021-04-15 11:04:47 +0000
commit53d69eb028b165c09a7b0aea1a58991299eeb209 (patch)
tree928fe21778b8cf8e4d1a71729b74e0dc75e6803c /java/java_test.go
parent3d76d5d6b8aae617572d4a2d6b2d8366c035acd9 (diff)
parentf4a88b163358de203f9346be2d04567a0acf767d (diff)
Merge "Introduce NewApi lint checks"
Diffstat (limited to 'java/java_test.go')
-rw-r--r--java/java_test.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/java/java_test.go b/java/java_test.go
index fdf757902..052345871 100644
--- a/java/java_test.go
+++ b/java/java_test.go
@@ -1261,6 +1261,14 @@ func TestJavaLintUsesCorrectBpConfig(t *testing.T) {
if !strings.Contains(*sboxProto.Commands[0].Command, "--baseline mybaseline.xml") {
t.Error("did not use the correct file for baseline")
}
+
+ if !strings.Contains(*sboxProto.Commands[0].Command, "--error_check NewApi") {
+ t.Error("should check NewApi errors")
+ }
+
+ if !strings.Contains(*sboxProto.Commands[0].Command, "--error_check SomeCheck") {
+ t.Error("should combine NewApi errors with SomeCheck errors")
+ }
}
func TestGeneratedSources(t *testing.T) {