File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
spring-test/src/main/java/org/springframework/mock/web
spring-web/src/test/java/org/springframework/mock/web/test Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2017 the original author or authors.
2
+ * Copyright 2002-2018 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -62,7 +62,7 @@ public MockPart(String name, @Nullable byte[] content) {
62
62
* @see #getHeaders()
63
63
*/
64
64
public MockPart (String name , @ Nullable String filename , @ Nullable byte [] content ) {
65
- Assert .hasLength (name , "Name must not be null " );
65
+ Assert .hasLength (name , "'name' must not be empty " );
66
66
this .name = name ;
67
67
this .filename = filename ;
68
68
this .content = (content != null ? content : new byte [0 ]);
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2017 the original author or authors.
2
+ * Copyright 2002-2018 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -60,7 +60,7 @@ public MockPart(String name, byte[] content) {
60
60
* @see #getHeaders()
61
61
*/
62
62
public MockPart (String name , String filename , byte [] content ) {
63
- Assert .hasLength (name , "Name must not be null " );
63
+ Assert .hasLength (name , "'name' must not be empty " );
64
64
this .name = name ;
65
65
this .filename = filename ;
66
66
this .content = (content != null ? content : new byte [0 ]);
You can’t perform that action at this time.
0 commit comments