Ozg 7615 leitfaden link
3 unresolved threads
3 unresolved threads
Merge request reports
Activity
added 1 commit
- b034f9d4 - OZG-7615 extract method in RootModelAssembler
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() { changed this line in version 3 of the diff
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() { changed this line in version 3 of the diff
added 1 commit
- b2fb30f0 - OZG-7615 add doc string for property and rename before each test methods
mentioned in commit a2f59ed4
Please register or sign in to reply