Skip to content
Snippets Groups Projects
Commit 04f939b1 authored by NOUMANE's avatar NOUMANE Committed by pybelecalo
Browse files

[US TRTL-526] update footer with release version

parent 86be7497
No related branches found
No related tags found
No related merge requests found
......@@ -12,6 +12,7 @@ import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mockito;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.info.BuildProperties;
import org.springframework.boot.test.autoconfigure.web.servlet.WebMvcTest;
import org.springframework.boot.test.mock.mockito.MockBean;
import org.springframework.http.HttpHeaders;
......@@ -39,6 +40,10 @@ public class UserControllerTest extends UiIdentityRestControllerTest<UserDto> {
super.testCreateEntity();
}
@MockBean
private BuildProperties buildProperties;
@Test
public void testUpdateUser() {
super.testUpdateEntity();
......
......@@ -4,7 +4,9 @@ import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.autoconfigure.ImportAutoConfiguration;
import org.springframework.boot.info.BuildProperties;
import org.springframework.boot.test.autoconfigure.web.servlet.WebMvcTest;
import org.springframework.boot.test.mock.mockito.MockBean;
import org.springframework.context.annotation.Import;
import org.springframework.test.context.TestPropertySource;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
......@@ -34,6 +36,9 @@ public class SecurityControllerTest extends UIControllerTest<UserDto> {
private static final VitamUILogger LOGGER = VitamUILoggerFactory.getInstance(SecurityControllerTest.class);
@MockBean
private BuildProperties buildProperties;
@Test
public void testGetUserConnected() throws Exception {
super.testGetAllEntity();
......
......@@ -16,6 +16,7 @@ import org.junit.runner.RunWith;
import org.mockito.Mockito;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.autoconfigure.ImportAutoConfiguration;
import org.springframework.boot.info.BuildProperties;
import org.springframework.boot.test.autoconfigure.web.servlet.WebMvcTest;
import org.springframework.boot.test.mock.mockito.MockBean;
import org.springframework.context.annotation.Import;
......@@ -41,6 +42,10 @@ public class SubrogationControllerTest extends UIControllerTest<SubrogationDto>
private static final VitamUILogger LOGGER = VitamUILoggerFactory.getInstance(SubrogationControllerTest.class);
@MockBean
private BuildProperties buildProperties;
@Test
public void testGetSubrogationById() {
super.testGetEntityById();
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment