Author: rsearls
Date: 2014-03-26 12:35:00 -0400 (Wed, 26 Mar 2014)
New Revision: 18542
Modified:
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/wsdd/WSDiscoveryTestCase.java
Log:
[BZ-1012454] check that the number of matches is GT 0.
Modified:
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/wsdd/WSDiscoveryTestCase.java
===================================================================
---
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/wsdd/WSDiscoveryTestCase.java 2014-03-26
12:56:33 UTC (rev 18541)
+++
stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/wsdd/WSDiscoveryTestCase.java 2014-03-26
16:35:00 UTC (rev 18542)
@@ -151,7 +151,7 @@
private void checkResolveMatches(List<ResolveMatchType> rmts, String address,
QName type) {
List<ResolveMatchType> rmtList = getByAddress(rmts, address);
- assertEquals(1, rmtList.size());
+ assertTrue("Number of matches can not be 0.", (rmtList.size() > 0));
assertEquals(type, rmtList.get(0).getTypes().iterator().next());
}
Show replies by date