From 2b436dba4b7c12e8c97f040753d0d5044d580b8d Mon Sep 17 00:00:00 2001 From: Dominik Mizyn Date: Tue, 17 Dec 2019 12:37:32 +0100 Subject: Deprecated class and annotation change javax.validation.constraints.Email, javax.validation.constraints.NotBlank in ProfileDetail.java class changed to import org.hibernate.validator.constraints.Email, import org.hibernate.validator.constraints.NotBlank Minor change: @RunWith(MockitoJUnitRunner.class) -> @RunWith(SpringRunner.class) Issue-ID: PORTAL-710 Change-Id: I9e249ea293ec05b212d431e6fe877a98f3798ffc Signed-off-by: Dominik Mizyn --- .../org/onap/portal/domain/dto/transport/ProfileDetail.java | 5 ++--- .../test/java/org/onap/portal/framework/MockitoTestSuite.java | 11 ++++++----- 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'portal-BE/src') diff --git a/portal-BE/src/main/java/org/onap/portal/domain/dto/transport/ProfileDetail.java b/portal-BE/src/main/java/org/onap/portal/domain/dto/transport/ProfileDetail.java index 9024bddb..41e6a3ec 100644 --- a/portal-BE/src/main/java/org/onap/portal/domain/dto/transport/ProfileDetail.java +++ b/portal-BE/src/main/java/org/onap/portal/domain/dto/transport/ProfileDetail.java @@ -40,15 +40,14 @@ package org.onap.portal.domain.dto.transport; - -import javax.validation.constraints.Email; -import javax.validation.constraints.NotBlank; import lombok.AllArgsConstructor; import lombok.EqualsAndHashCode; import lombok.Getter; import lombok.NoArgsConstructor; import lombok.Setter; import lombok.ToString; +import org.hibernate.validator.constraints.Email; +import org.hibernate.validator.constraints.NotBlank; @Setter @Getter diff --git a/portal-BE/src/test/java/org/onap/portal/framework/MockitoTestSuite.java b/portal-BE/src/test/java/org/onap/portal/framework/MockitoTestSuite.java index 1825e401..49c4829b 100644 --- a/portal-BE/src/test/java/org/onap/portal/framework/MockitoTestSuite.java +++ b/portal-BE/src/test/java/org/onap/portal/framework/MockitoTestSuite.java @@ -37,16 +37,17 @@ */ package org.onap.portal.framework; +import org.junit.Test; +import org.junit.runner.RunWith; +import org.mockito.Mockito; +import org.springframework.test.context.junit4.SpringRunner; + import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletRequestWrapper; import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpSession; -import org.junit.Test; -import org.junit.runner.RunWith; -import org.mockito.Mockito; -import org.mockito.runners.MockitoJUnitRunner; -@RunWith(MockitoJUnitRunner.class) +@RunWith(SpringRunner.class) public class MockitoTestSuite { -- cgit 1.2.3-korg