From 794566abf59f0b719137a4dd4cd977ab0f3e97c5 Mon Sep 17 00:00:00 2001 From: Rossen Stoyanchev Date: Wed, 5 Nov 2014 21:17:32 -0500 Subject: [PATCH] Fix failing test --- .../test/web/client/MockClientHttpRequestFactoryTests.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/spring-test/src/test/java/org/springframework/test/web/client/MockClientHttpRequestFactoryTests.java b/spring-test/src/test/java/org/springframework/test/web/client/MockClientHttpRequestFactoryTests.java index 7831b906d5..230c7ce263 100644 --- a/spring-test/src/test/java/org/springframework/test/web/client/MockClientHttpRequestFactoryTests.java +++ b/spring-test/src/test/java/org/springframework/test/web/client/MockClientHttpRequestFactoryTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2012 the original author or authors. + * Copyright 2002-2014 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -29,7 +29,8 @@ import static org.junit.Assert.*; import static org.springframework.test.web.client.match.MockRestRequestMatchers.*; /** - * Tests for {@link MockClientHttpRequestFactory}. + * Tests for + * {@link org.springframework.test.web.client.MockMvcClientHttpRequestFactory}. * * @author Rossen Stoyanchev */ @@ -64,7 +65,7 @@ public class MockClientHttpRequestFactoryTests { this.factory.createRequest(new URI("/foo"), HttpMethod.GET); } catch (AssertionError error) { - assertEquals("No further requests expected", error.getMessage()); + assertEquals("No further requests expected: HTTP GET /foo", error.getMessage()); } }