Skip to content

Commit

Permalink
move ErrorResponse to common project
Browse files Browse the repository at this point in the history
  • Loading branch information
Edvard Fonsell committed Jan 7, 2020
1 parent 98f90a7 commit c66f7e0
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import io.nflow.rest.v1.msg.ErrorResponse;

@Provider
public class CustomValidationExceptionMapper implements ExceptionMapper<ValidationException> {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import javax.ws.rs.ext.Provider;

import io.nflow.engine.workflow.executor.StateVariableValueTooLongException;
import io.nflow.rest.v1.msg.ErrorResponse;

@Provider
public class StateVariableValueTooLongExceptionMapper implements ExceptionMapper<StateVariableValueTooLongException> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
import javax.ws.rs.ext.ExceptionMapper;
import javax.ws.rs.ext.Provider;

import io.nflow.rest.v1.msg.ErrorResponse;

@Provider
public class WebApplicationExceptionMapper implements ExceptionMapper<WebApplicationException> {
@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
import org.junit.jupiter.api.extension.ExtendWith;
import org.mockito.junit.jupiter.MockitoExtension;

import io.nflow.rest.v1.msg.ErrorResponse;

@ExtendWith(MockitoExtension.class)
public class CustomValidationExceptionMapperTest {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import org.junit.jupiter.api.Test;

import io.nflow.engine.workflow.executor.StateVariableValueTooLongException;
import io.nflow.rest.v1.msg.ErrorResponse;

public class StateVariableValueTooLongExceptionMapperTest {
StateVariableValueTooLongExceptionMapper mapper = new StateVariableValueTooLongExceptionMapper();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@

import org.junit.jupiter.api.Test;

import io.nflow.rest.v1.msg.ErrorResponse;

public class WebApplicationExceptionMapperTest {
WebApplicationExceptionMapper mapper = new WebApplicationExceptionMapper();

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.nflow.jetty.mapper;
package io.nflow.rest.v1.msg;

import io.nflow.engine.model.ModelObject;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;

import io.nflow.jetty.mapper.ErrorResponse;
import io.nflow.rest.v1.msg.Action;
import io.nflow.rest.v1.msg.CreateWorkflowInstanceRequest;
import io.nflow.rest.v1.msg.CreateWorkflowInstanceResponse;
import io.nflow.rest.v1.msg.ErrorResponse;
import io.nflow.rest.v1.msg.ListWorkflowInstanceResponse;
import io.nflow.rest.v1.msg.UpdateWorkflowInstanceRequest;
import io.nflow.tests.demo.workflow.StateWorkflow;
Expand Down

0 comments on commit c66f7e0

Please sign in to comment.