Skip to content

Commit b1d0cb8

Browse files
committed
Polishing.
Add test. See: #2477 Original pull request: #2478
1 parent b0c05e7 commit b1d0cb8

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
/*
2+
* Copyright 2025 the original author or authors.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* https://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
package org.springframework.data.rest.core.support;
17+
18+
import static org.assertj.core.api.Assertions.*;
19+
20+
import org.junit.jupiter.api.Test;
21+
22+
import org.springframework.core.annotation.OrderUtils;
23+
24+
/**
25+
* Unit tests for {@link RepositoryRelProvider}.
26+
*
27+
* @author Mark Paluch
28+
*/
29+
class RepositoryRelProviderUnitTests {
30+
31+
@Test // GH-2477
32+
void shouldReportOrder() {
33+
34+
Integer order = OrderUtils.getOrder(RepositoryRelProvider.class);
35+
36+
assertThat(order).isEqualTo(Integer.MAX_VALUE - 10);
37+
}
38+
39+
}

0 commit comments

Comments
 (0)