Polishing
This commit is contained in:
@@ -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 {
|
||||
}
|
||||
|
||||
/**
|
||||
* <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.
|
||||
|
||||
@@ -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 {
|
||||
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());
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user