Browse Source

Polishing

pull/1086/head
Juergen Hoeller 10 years ago
parent
commit
a27200e753
  1. 4
      spring-core/src/main/java/org/springframework/core/annotation/AnnotationUtils.java
  2. 6
      spring-test/src/main/java/org/springframework/test/web/client/match/MockRestRequestMatchers.java

4
spring-core/src/main/java/org/springframework/core/annotation/AnnotationUtils.java

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
/*
* Copyright 2002-2015 the original author or authors.
* Copyright 2002-2016 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.
@ -1721,7 +1721,7 @@ public abstract class AnnotationUtils { @@ -1721,7 +1721,7 @@ public abstract class AnnotationUtils {
}
/**
* <p>If the supplied throwable is an {@link AnnotationConfigurationException},
* If the supplied throwable is an {@link AnnotationConfigurationException},
* it will be cast to an {@code AnnotationConfigurationException} and thrown,
* allowing it to propagate to the caller.
* <p>Otherwise, this method does nothing.

6
spring-test/src/main/java/org/springframework/test/web/client/match/MockRestRequestMatchers.java

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
/*
* Copyright 2002-2015 the original author or authors.
* Copyright 2002-2016 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.
@ -155,8 +155,8 @@ public abstract class MockRestRequestMatchers { @@ -155,8 +155,8 @@ public abstract class MockRestRequestMatchers {
private static void assertHeaderValueCount(final String name, HttpHeaders headers, int expectedCount) {
List<String> actualValues = headers.get(name);
AssertionErrors.assertTrue("Expected header <" + name + ">", actualValues != null);
AssertionErrors.assertTrue("Expected header <" + name + "> to have at least <" + expectedCount
+ "> values but found " + actualValues, expectedCount <= actualValues.size());
AssertionErrors.assertTrue("Expected header <" + name + "> to have at least <" + expectedCount +
"> values but found " + actualValues, expectedCount <= actualValues.size());
}
/**

Loading…
Cancel
Save