expected = "{in FooHandler.handleFoo(s: param)}";
actual = foo.foo("param");
Assert.assertTrue("Expected: '" + expected + "'\n actual: '" + actual + "'", expected.equals(actual));
Bar bar = null;
try
{
bar = cDoc;
byte[] ba = bar.bar("param for bar");
expected = "{in BarHandler.handleBar(s: param for bar)}";
actual = new String(bar.bar("param for bar"));
Assert.assertTrue("Expected: " + expected + "\n actual: " + actual, expected.equals(actual));
}
catch (Bar.MyException e)
{
Assert.assertTrue(false);
}
try
{
bar.bar(null);
Assert.assertTrue(false);
}
catch (Bar.MyException e)
{
Assert.assertTrue(true);