Skip to content

Commit

Permalink
Merge pull request #24 from reportportal/EPMRPP-89384-model-upd
Browse files Browse the repository at this point in the history
EPMRPP-89384 || Replace model lib with commons-reporting
  • Loading branch information
pbortnik authored Feb 27, 2024
2 parents 42d4dd5 + c0d71f1 commit 1f6bfed
Show file tree
Hide file tree
Showing 11 changed files with 24 additions and 24 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ dependencyManagement {

dependencies {
if (releaseMode) {
compile 'com.epam.reportportal:commons-model'
compile 'com.epam.reportportal:commons-reporting'
} else {
compile 'com.github.reportportal:commons-model:83f012f'
implementation 'com.github.reportportal:commons-reporting:c324bab'
}

compile 'org.slf4j:slf4j-api'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import com.epam.ta.reportportal.commons.exception.message.ExceptionMessageBuilder;
import com.epam.ta.reportportal.commons.exception.rest.RestErrorDefinition;
import com.epam.ta.reportportal.exception.ReportPortalException;
import com.epam.ta.reportportal.ws.model.ErrorType;
import com.epam.ta.reportportal.ws.reporting.ErrorType;
import com.google.common.collect.ImmutableMap;
import org.springframework.context.support.ReloadableResourceBundleMessageSource;
import org.springframework.http.converter.HttpMessageNotReadableException;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,18 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
*/

package com.epam.ta.reportportal.commons.exception.rest;

import com.epam.ta.reportportal.ws.model.ErrorRS;
import com.epam.ta.reportportal.ws.model.ErrorType;
import com.epam.ta.reportportal.ws.reporting.ErrorRS;
import com.epam.ta.reportportal.ws.reporting.ErrorType;

/**
* Error response builder
*
*
* @author Andrei Varabyeu
*
*
*/
public class ErrorResponseBuilder {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,20 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
*/

package com.epam.ta.reportportal.commons.exception.rest;

import com.epam.ta.reportportal.ws.model.ErrorRS;
import com.epam.ta.reportportal.ws.model.ErrorType;
import com.epam.ta.reportportal.ws.reporting.ErrorRS;
import com.epam.ta.reportportal.ws.reporting.ErrorType;
import org.springframework.http.HttpStatus;

/**
* Rest Error representation. Contains rest error template and real exception
* data
*
*
* @author Andrei Varabyeu
*
*
*/
public class RestError {

Expand All @@ -49,9 +49,9 @@ public HttpStatus getHttpStatus() {

/**
* Builder for Rest Error
*
*
* @author Andrei Varabyeu
*
*
*/
public static class Builder {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
package com.epam.ta.reportportal.commons.exception.rest;

import com.epam.ta.reportportal.commons.exception.message.ExceptionMessageBuilder;
import com.epam.ta.reportportal.ws.model.ErrorType;
import com.epam.ta.reportportal.ws.reporting.ErrorType;
import org.springframework.http.HttpStatus;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.epam.ta.reportportal.commons.exception.rest;

import com.epam.ta.reportportal.ws.model.ErrorType;
import com.epam.ta.reportportal.ws.reporting.ErrorType;
import org.springframework.http.HttpStatus;

import java.util.HashMap;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
package com.epam.ta.reportportal.commons.validation;

import com.epam.ta.reportportal.exception.ReportPortalException;
import com.epam.ta.reportportal.ws.model.ErrorType;
import com.epam.ta.reportportal.ws.reporting.ErrorType;

/**
* Added for rules which is going to be always fail
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
package com.epam.ta.reportportal.commons.validation;

import com.epam.ta.reportportal.exception.ReportPortalException;
import com.epam.ta.reportportal.ws.model.ErrorType;

import com.epam.ta.reportportal.ws.reporting.ErrorType;
import java.util.function.Predicate;

public class ErrorTypeBasedRuleValidator<T> extends RuleValidator<T> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
package com.epam.ta.reportportal.exception;

import com.epam.ta.reportportal.commons.validation.Suppliers;
import com.epam.ta.reportportal.ws.model.ErrorType;
import com.epam.ta.reportportal.ws.reporting.ErrorType;

import static com.epam.ta.reportportal.commons.validation.Suppliers.trimMessage;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
import com.epam.ta.reportportal.commons.exception.rest.ErrorResolver;
import com.epam.ta.reportportal.commons.exception.rest.RestError;
import com.epam.ta.reportportal.exception.ReportPortalException;
import com.epam.ta.reportportal.ws.model.ErrorType;
import com.epam.ta.reportportal.ws.reporting.ErrorType;
import com.google.common.base.Strings;
import org.hamcrest.Matchers;
import org.junit.Assert;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
package com.epam.ta.reportportal.ws.exception.rest;

import com.epam.ta.reportportal.commons.exception.rest.StatusCodeMapping;
import com.epam.ta.reportportal.ws.model.ErrorType;
import com.epam.ta.reportportal.ws.reporting.ErrorType;
import org.junit.Assert;
import org.junit.Test;

Expand Down

0 comments on commit 1f6bfed

Please sign in to comment.