This repository was archived by the owner on Dec 19, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 8 files changed +76
-8
lines changed
spring-auto-restdocs-core/src
main/java/capital/scalable/restdocs
test/java/capital/scalable/restdocs/constraints Expand file tree Collapse file tree 8 files changed +76
-8
lines changed Original file line number Diff line number Diff line change
1
+ /*-
2
+ * #%L
3
+ * Spring Auto REST Docs Core
4
+ * %%
5
+ * Copyright (C) 2015 - 2019 Scalable Capital GmbH
6
+ * %%
7
+ * Licensed under the Apache License, Version 2.0 (the "License");
8
+ * you may not use this file except in compliance with the License.
9
+ * You may obtain a copy of the License at
10
+ *
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+ *
13
+ * Unless required by applicable law or agreed to in writing, software
14
+ * distributed under the License is distributed on an "AS IS" BASIS,
15
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ * See the License for the specific language governing permissions and
17
+ * limitations under the License.
18
+ * #L%
19
+ */
1
20
package capital .scalable .restdocs .i18n ;
2
21
3
-
4
22
public class SnippetTranslationManager {
5
23
6
24
private static SnippetTranslationResolver snippetTranslationResolver ;
Original file line number Diff line number Diff line change
1
+ /*-
2
+ * #%L
3
+ * Spring Auto REST Docs Core
4
+ * %%
5
+ * Copyright (C) 2015 - 2019 Scalable Capital GmbH
6
+ * %%
7
+ * Licensed under the Apache License, Version 2.0 (the "License");
8
+ * you may not use this file except in compliance with the License.
9
+ * You may obtain a copy of the License at
10
+ *
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+ *
13
+ * Unless required by applicable law or agreed to in writing, software
14
+ * distributed under the License is distributed on an "AS IS" BASIS,
15
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ * See the License for the specific language governing permissions and
17
+ * limitations under the License.
18
+ * #L%
19
+ */
1
20
package capital .scalable .restdocs .i18n ;
2
21
3
22
public interface SnippetTranslationResolver {
Original file line number Diff line number Diff line change
1
+ /*-
2
+ * #%L
3
+ * Spring Auto REST Docs Core
4
+ * %%
5
+ * Copyright (C) 2015 - 2019 Scalable Capital GmbH
6
+ * %%
7
+ * Licensed under the Apache License, Version 2.0 (the "License");
8
+ * you may not use this file except in compliance with the License.
9
+ * You may obtain a copy of the License at
10
+ *
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+ *
13
+ * Unless required by applicable law or agreed to in writing, software
14
+ * distributed under the License is distributed on an "AS IS" BASIS,
15
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ * See the License for the specific language governing permissions and
17
+ * limitations under the License.
18
+ * #L%
19
+ */
1
20
package capital .scalable .restdocs .i18n ;
2
21
22
+ import static capital .scalable .restdocs .OperationAttributeHelper .setTranslationResolver ;
23
+
3
24
import org .springframework .test .web .servlet .MvcResult ;
4
25
import org .springframework .test .web .servlet .ResultHandler ;
5
26
6
- import static capital .scalable .restdocs .OperationAttributeHelper .setTranslationResolver ;
7
-
8
27
public abstract class TranslationHandlers {
9
28
10
29
public static ResultHandler defaultTranslation () {
Original file line number Diff line number Diff line change 19
19
*/
20
20
package capital .scalable .restdocs .misc ;
21
21
22
- import static capital .scalable .restdocs .OperationAttributeHelper .*;
22
+ import static capital .scalable .restdocs .OperationAttributeHelper .determineTemplateFormatting ;
23
+ import static capital .scalable .restdocs .OperationAttributeHelper .getHandlerMethod ;
24
+ import static capital .scalable .restdocs .OperationAttributeHelper .getJavadocReader ;
25
+ import static capital .scalable .restdocs .OperationAttributeHelper .getTranslationResolver ;
23
26
import static capital .scalable .restdocs .SnippetRegistry .AUTO_DESCRIPTION ;
24
27
import static capital .scalable .restdocs .javadoc .JavadocUtil .convertFromJavadoc ;
25
28
import static capital .scalable .restdocs .util .FormatUtil .addDot ;
Original file line number Diff line number Diff line change 19
19
*/
20
20
package capital .scalable .restdocs .request ;
21
21
22
- import static capital .scalable .restdocs .OperationAttributeHelper .*;
22
+ import static capital .scalable .restdocs .OperationAttributeHelper .getConstraintReader ;
23
+ import static capital .scalable .restdocs .OperationAttributeHelper .getHandlerMethod ;
24
+ import static capital .scalable .restdocs .OperationAttributeHelper .getJavadocReader ;
25
+ import static capital .scalable .restdocs .OperationAttributeHelper .getTranslationResolver ;
23
26
import static capital .scalable .restdocs .constraints .ConstraintReader .CONSTRAINTS_ATTRIBUTE ;
24
27
import static capital .scalable .restdocs .constraints .ConstraintReader .DEFAULT_VALUE_ATTRIBUTE ;
25
28
import static capital .scalable .restdocs .constraints .ConstraintReader .DEPRECATED_ATTRIBUTE ;
Original file line number Diff line number Diff line change 19
19
*/
20
20
package capital .scalable .restdocs .section ;
21
21
22
- import static capital .scalable .restdocs .OperationAttributeHelper .*;
22
+ import static capital .scalable .restdocs .OperationAttributeHelper .getDefaultSnippets ;
23
+ import static capital .scalable .restdocs .OperationAttributeHelper .getDocumentationContext ;
24
+ import static capital .scalable .restdocs .OperationAttributeHelper .getHandlerMethod ;
25
+ import static capital .scalable .restdocs .OperationAttributeHelper .getJavadocReader ;
26
+ import static capital .scalable .restdocs .OperationAttributeHelper .getTranslationResolver ;
23
27
import static java .util .Collections .emptyList ;
24
28
import static org .apache .commons .lang3 .StringUtils .isBlank ;
25
29
import static org .apache .commons .lang3 .StringUtils .isNotBlank ;
Original file line number Diff line number Diff line change 21
21
22
22
import capital .scalable .restdocs .constraints .ConstraintReader ;
23
23
import capital .scalable .restdocs .constraints .ConstraintReaderImpl ;
24
- import capital .scalable .restdocs .i18n .ResourceBundleSnippetTranslationResolver ;
25
24
import capital .scalable .restdocs .i18n .SnippetTranslationManager ;
26
25
import capital .scalable .restdocs .jackson .TypeMapping ;
27
26
import capital .scalable .restdocs .javadoc .JavadocReader ;
Original file line number Diff line number Diff line change 35
35
import javax .validation .constraints .Null ;
36
36
import java .lang .reflect .Method ;
37
37
import java .math .BigDecimal ;
38
- import java .util .*;
38
+ import java .util .Collection ;
39
+ import java .util .HashMap ;
40
+ import java .util .List ;
41
+ import java .util .Map ;
39
42
40
43
import capital .scalable .restdocs .i18n .SnippetTranslationManager ;
41
44
import com .fasterxml .jackson .annotation .JsonValue ;
You can’t perform that action at this time.
0 commit comments