From 34eb09d3db4c48cec8665ff11cd5cc9fe714c39d Mon Sep 17 00:00:00 2001 From: Aron Roberts Date: Mon, 22 Oct 2012 17:57:37 -0700 Subject: [PATCH] CSPACE-5271: Fixed logic error in URITemplateRegistry-related test; some asserts formerly were unreachable. --- .../services/common/test/UriTemplateRegistryTest.java | 4 ---- 1 file changed, 4 deletions(-) diff --git a/services/common/src/test/java/org/collectionspace/services/common/test/UriTemplateRegistryTest.java b/services/common/src/test/java/org/collectionspace/services/common/test/UriTemplateRegistryTest.java index 90c5a8c5c..ef3166317 100644 --- a/services/common/src/test/java/org/collectionspace/services/common/test/UriTemplateRegistryTest.java +++ b/services/common/src/test/java/org/collectionspace/services/common/test/UriTemplateRegistryTest.java @@ -90,14 +90,10 @@ public class UriTemplateRegistryTest { if (template != null && template.getUriTemplateType() != null && Tools.notBlank(template.toString())) { hasValidTemplate = true; } - if (hasValidKey && hasValidTemplate) { - break; - } Assert.assertTrue(hasValidKey && hasValidTemplate); StoredValuesUriTemplate retrievedTemplate = registry.get(key); Assert.assertNotNull(retrievedTemplate); Assert.assertEquals(template.toString(), retrievedTemplate.toString()); - } } } -- 2.47.3