String.indexOf() expressions can be replaced with a call to the String.contains() method available in Java 5 and newer.
This commit is contained in:
committed by
Juergen Hoeller
parent
81d77b9872
commit
93189a6733
@@ -463,8 +463,8 @@ public class HttpInvokerTests {
|
||||
ITestBean proxy = (ITestBean) pfb.getObject();
|
||||
|
||||
// shouldn't go through to remote service
|
||||
assertTrue(proxy.toString().indexOf("HTTP invoker") != -1);
|
||||
assertTrue(proxy.toString().indexOf(serviceUrl) != -1);
|
||||
assertTrue(proxy.toString().contains("HTTP invoker"));
|
||||
assertTrue(proxy.toString().contains(serviceUrl));
|
||||
assertEquals(proxy.hashCode(), proxy.hashCode());
|
||||
assertTrue(proxy.equals(proxy));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user