Skip to content
Snippets Groups Projects

Ozg 7615 leitfaden link

Merged Felix Reichenbach requested to merge OZG-7615-Leitfaden-link into main
3 unresolved threads

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
2
3 import org.springframework.boot.context.properties.ConfigurationProperties;
4 import org.springframework.context.annotation.Configuration;
5
6 import lombok.Getter;
7 import lombok.Setter;
8
9 @Setter
10 @Getter
11 @Configuration
12 @ConfigurationProperties(prefix = DocumentationProperties.DOCUMENTATION_PROPERTIES_PREFIX)
13 public class DocumentationProperties {
14
15 static final String DOCUMENTATION_PROPERTIES_PREFIX = "ozgcloud.user-assistance.documentation";
16
17 private String url;
  • 83 @Test
    84 void shouldCallHasConfigurationPermission() {
    85 modelAssembler.toModel(root);
    92 86
    93 verify(currentUserService).hasConfigurationPermission();
    94 }
    87 verify(currentUserService).hasConfigurationPermission();
    88 }
    95 89
    96 @Nested
    97 class TestOnHasConfigurationPermission {
    90 @Nested
    91 class TestOnHasConfigurationPermission {
    92
    93 @BeforeEach
    94 void hasConfigurationPermission() {
  • 99 @BeforeEach
    100 void hasConfigurationPermission() {
    101 when(currentUserService.hasConfigurationPermission()).thenReturn(true);
    102 when(restProperties.getBasePath()).thenReturn(BASE_PATH);
    103 assertThat(model.getLink(REL_CONFIGURATION)).get().extracting(Link::getHref).isEqualTo(BASE_PATH);
    104 }
    103 105 }
    104 106
    105 @Test
    106 void shouldHaveHrefToConfiguration() {
    107 var links = modelAssembler.buildRootModelLinks();
    107 @Nested
    108 class TestOnHasNotConfigurationPermission {
    109
    110 @BeforeEach
    111 void hasNotConfigurationPermission() {
  • Martin Küster requested changes

    requested changes

  • added 1 commit

    • b2fb30f0 - OZG-7615 add doc string for property and rename before each test methods

    Compare with previous version

  • Martin Küster approved this merge request

    approved this merge request

  • mentioned in commit a2f59ed4

  • Please register or sign in to reply
    Loading