Skip to content

Commit

Permalink
fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
msridhar committed Nov 11, 2024
1 parent 7951780 commit 20567e6
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ public void toyStatic() throws Exception {
"Test",
ImmutableMap.of(
"toys.Test:void test(java.lang.String, toys.Foo, toys.Bar)", Sets.newHashSet(0, 2),
"toys.Foo:boolean run(java.lang.String)", Sets.newHashSet(1)),
"toys.Foo:boolean run(java.lang.String)", Sets.newHashSet(0)),
"class Foo {",
" private String foo;",
" public Foo(String str) {",
Expand Down Expand Up @@ -267,7 +267,7 @@ public void toyNonStatic() throws Exception {
"toys",
"Foo",
ImmutableMap.of(
"toys.Foo:void test(java.lang.String, java.lang.String)", Sets.newHashSet(1)),
"toys.Foo:void test(java.lang.String, java.lang.String)", Sets.newHashSet(0)),
"class Foo {",
" private String foo;",
" public Foo(String str) {",
Expand Down Expand Up @@ -305,7 +305,7 @@ public void toyNullTestAPI() throws Exception {
"Foo",
ImmutableMap.of(
"toys.Foo:void test(java.lang.String, java.lang.String, java.lang.String)",
Sets.newHashSet(1, 3)),
Sets.newHashSet(0, 2)),
"import com.google.common.base.Preconditions;",
"import java.util.Objects;",
"import org.junit.Assert;",
Expand Down Expand Up @@ -336,7 +336,7 @@ public void toyConditionalFlow() throws Exception {
"Foo",
ImmutableMap.of(
"toys.Foo:void test(java.lang.String, java.lang.String, java.lang.String)",
Sets.newHashSet(1, 2)),
Sets.newHashSet(0, 1)),
"import com.google.common.base.Preconditions;",
"import java.util.Objects;",
"import org.junit.Assert;",
Expand Down Expand Up @@ -367,7 +367,7 @@ public void toyConditionalFlow2() throws Exception {
"Foo",
ImmutableMap.of(
"toys.Foo:void test(java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object)",
Sets.newHashSet(1, 4)),
Sets.newHashSet(0, 3)),
"import com.google.common.base.Preconditions;",
"import java.util.Objects;",
"import org.junit.Assert;",
Expand Down Expand Up @@ -407,7 +407,7 @@ public void toyReassigningTest() throws Exception {
"toys",
"Foo",
ImmutableMap.of(
"toys.Foo:void test(java.lang.String, java.lang.String)", Sets.newHashSet(1)),
"toys.Foo:void test(java.lang.String, java.lang.String)", Sets.newHashSet(0)),
"import com.google.common.base.Preconditions;",
"import java.util.Objects;",
"import org.junit.Assert;",
Expand Down Expand Up @@ -449,7 +449,7 @@ public void testGenericMethod() throws Exception {
"generic",
"TestGeneric",
ImmutableMap.of(
"generic.TestGeneric:java.lang.String foo(java.lang.Object)", Sets.newHashSet(1)),
"generic.TestGeneric:java.lang.String foo(java.lang.Object)", Sets.newHashSet(0)),
"public class TestGeneric<T> {",
" public String foo(T t) {",
" return t.toString();",
Expand Down

0 comments on commit 20567e6

Please sign in to comment.