Skip to content

Commit

Permalink
EPMRPP-89384 || Move reporting model to the separate repo (#373)
Browse files Browse the repository at this point in the history
* EPMRPP-89384 || Move reporting classes to a separate directory

* EPMRPP-89384 || Add project settings resource for reporting lib

* EPMRPP-89384 || Move more model to reporting modul

* EPMRPP-89384 || Move more model classes to reporting module

* EPMRPP-89384 || Move model to the separate reporting lib

---------

Co-authored-by: Pavel Bortnik <[email protected]>
  • Loading branch information
pbortnik and Pavel Bortnik authored Feb 27, 2024
1 parent 6a5e54d commit 41e9fdb
Show file tree
Hide file tree
Showing 57 changed files with 179 additions and 3,341 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,12 @@

package com.epam.ta.reportportal.ws.annotations;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import javax.validation.Constraint;
import java.lang.annotation.*;

/**
* Can be used with strings.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@

package com.epam.ta.reportportal.ws.annotations;

import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.List;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;

/**
* @author <a href="mailto:[email protected]">Ihar Kahadouski</a>
Expand All @@ -40,7 +40,7 @@ public void initialize(In constraintAnnotation) {

@Override
public boolean isValid(Collection<String> value, ConstraintValidatorContext context) {
List<String> upperCaseList = new ArrayList<String>();
List<String> upperCaseList = new ArrayList<>();
for (String next : value) {
upperCaseList.add(next.toUpperCase());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,12 @@

package com.epam.ta.reportportal.ws.annotations;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import javax.validation.Constraint;
import java.lang.annotation.*;

/**
* Can be used with strings.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,12 @@

package com.epam.ta.reportportal.ws.annotations;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import javax.validation.Constraint;
import java.lang.annotation.*;

/**
* Can be used with collection of strings.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@

package com.epam.ta.reportportal.ws.annotations;

import java.util.Collection;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import java.util.Collection;

/**
* @author <a href="mailto:[email protected]">Ihar Kahadouski</a>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,18 @@

package com.epam.ta.reportportal.ws.annotations;

import com.epam.ta.reportportal.ws.model.validation.NotBlankWithSizeValidator;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;

import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
import static org.apache.commons.lang3.StringUtils.EMPTY;

import com.epam.ta.reportportal.ws.model.validation.NotBlankWithSizeValidator;
import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import javax.validation.Constraint;
import javax.validation.Payload;

/**
* @author <a href="mailto:[email protected]">Tatyana Gladysheva</a>
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@

package com.epam.ta.reportportal.ws.annotations;

import javax.validation.Constraint;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import javax.validation.Constraint;

@Constraint(validatedBy = { NotNullMapValueValidator.class })
@Target({ ElementType.FIELD })
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@

package com.epam.ta.reportportal.ws.annotations;

import java.util.Map;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import java.util.Map;

public class NotNullMapValueValidator implements ConstraintValidator<NotNullMapValue, Map<?, ?>> {

Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,10 @@
package com.epam.ta.reportportal.ws.model;

import com.epam.ta.reportportal.ws.model.attribute.UpdateItemAttributeRQ;

import java.util.List;
import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;

/**
* @author <a href="mailto:[email protected]">Ihar Kahadouski</a>
Expand Down
36 changes: 0 additions & 36 deletions src/main/java/com/epam/ta/reportportal/ws/model/Constants.java

This file was deleted.

This file was deleted.

Loading

0 comments on commit 41e9fdb

Please sign in to comment.