(t *testing.T)
| 76 | var thread jdwp.ThreadID |
| 77 | |
| 78 | func TestInvokeStringFormat(t *testing.T) { |
| 79 | assert := assert.To(t) |
| 80 | err := jdbg.Do(conn, thread, func(j *jdbg.JDbg) error { |
| 81 | res := j.Class("java/lang/String").Call("format", "%s says '%s' %d times", |
| 82 | []interface{}{"bob", "hello world", 5}).Get() |
| 83 | assert.For("res").That(res).Equals("bob says 'hello world' 5 times") |
| 84 | return nil |
| 85 | }) |
| 86 | assert.For("err").That(err).Equals(nil) |
| 87 | } |
| 88 | |
| 89 | func TestInvokeStaticMethod(t *testing.T) { |
| 90 | assert := assert.To(t) |