Skip to content

Commit

Permalink
fix the tests that test dev server and swapping code in and out
Browse files Browse the repository at this point in the history
  • Loading branch information
deanhiller committed Mar 30, 2019
1 parent f0084fb commit 145f29c
Show file tree
Hide file tree
Showing 17 changed files with 54 additions and 52 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@

import javax.inject.Singleton;

import org.webpieces.router.api.actions.Action;
import org.webpieces.router.api.actions.Actions;
import javax.inject.Singleton;

import org.webpieces.router.api.controller.actions.Action;
import org.webpieces.router.api.controller.actions.Actions;

@Singleton
public class DevController {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

import javax.inject.Singleton;

import org.webpieces.router.api.actions.Action;
import org.webpieces.router.api.actions.Actions;
import org.webpieces.router.api.controller.actions.Action;
import org.webpieces.router.api.controller.actions.Actions;

@Singleton
public class DevController {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
import java.util.List;
import java.util.Map;

import org.webpieces.router.api.routing.Plugin;
import org.webpieces.router.api.routing.Routes;
import org.webpieces.router.api.routing.WebAppMeta;
import org.webpieces.router.api.plugins.Plugin;
import org.webpieces.router.api.routes.Routes;
import org.webpieces.router.api.routes.WebAppMeta;
import org.webpieces.webserver.EmptyModule;

import com.google.common.collect.Lists;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package org.webpieces.webserver.dev.app;

import org.webpieces.router.api.routing.RouteId;
import org.webpieces.router.api.routes.RouteId;

public enum DevRouteId implements RouteId {
HOME, CAUSE_ERROR, FILTER_ROUTE,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package org.webpieces.webserver.dev.app;

import static org.webpieces.ctx.api.HttpMethod.GET;
import static org.webpieces.router.api.routing.Port.BOTH;
import static org.webpieces.router.api.routes.Port.BOTH;

import org.webpieces.router.api.routing.PortType;
import org.webpieces.router.api.routing.Routes;
import org.webpieces.router.impl.model.bldr.DomainRouteBuilder;
import org.webpieces.router.impl.model.bldr.RouteBuilder;
import org.webpieces.router.api.routebldr.DomainRouteBuilder;
import org.webpieces.router.api.routebldr.RouteBuilder;
import org.webpieces.router.api.routes.FilterPortType;
import org.webpieces.router.api.routes.Routes;

public class DevRoutes implements Routes {

Expand All @@ -20,9 +20,9 @@ public void configure(DomainRouteBuilder domainBldr) {

router.addRoute(BOTH, GET , "/filter", "DevController.filter", DevRouteId.FILTER_ROUTE);

router.addFilter("/filter", MyFilter.class, null, PortType.ALL_FILTER);
router.addFilter("/filter", MyFilter.class, null, FilterPortType.ALL_FILTER);

router.addNotFoundFilter(NotFoundFilter.class, null, PortType.ALL_FILTER);
router.addNotFoundFilter(NotFoundFilter.class, null, FilterPortType.ALL_FILTER);

router.setPageNotFoundRoute("DevController.notFound");
router.setInternalErrorRoute("DevController.internalError");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@

import javax.inject.Singleton;

import org.webpieces.router.api.actions.Action;
import org.webpieces.router.api.actions.Actions;
import org.webpieces.router.api.dto.MethodMeta;
import org.webpieces.router.api.routing.RouteFilter;
import org.webpieces.router.api.controller.actions.Action;
import org.webpieces.router.api.controller.actions.Actions;
import org.webpieces.router.api.routes.RouteFilter;
import org.webpieces.router.impl.dto.MethodMeta;
import org.webpieces.util.filters.Service;

@Singleton
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@

import javax.inject.Singleton;

import org.webpieces.router.api.actions.Action;
import org.webpieces.router.api.actions.Actions;
import org.webpieces.router.api.dto.MethodMeta;
import org.webpieces.router.api.routing.RouteFilter;
import org.webpieces.router.api.controller.actions.Action;
import org.webpieces.router.api.controller.actions.Actions;
import org.webpieces.router.api.routes.RouteFilter;
import org.webpieces.router.impl.dto.MethodMeta;
import org.webpieces.util.filters.Service;

@Singleton
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@

import javax.inject.Singleton;

import org.webpieces.router.api.actions.Action;
import org.webpieces.router.api.actions.Actions;
import org.webpieces.router.api.dto.MethodMeta;
import org.webpieces.router.api.routing.RouteFilter;
import org.webpieces.router.api.controller.actions.Action;
import org.webpieces.router.api.controller.actions.Actions;
import org.webpieces.router.api.routes.RouteFilter;
import org.webpieces.router.impl.dto.MethodMeta;
import org.webpieces.util.filters.Service;

@Singleton
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
import javax.inject.Inject;
import javax.inject.Singleton;

import org.webpieces.router.api.actions.Action;
import org.webpieces.router.api.actions.Actions;
import org.webpieces.router.api.controller.actions.Action;
import org.webpieces.router.api.controller.actions.Actions;

@Singleton
public class DevController {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
import java.util.List;
import java.util.Map;

import org.webpieces.router.api.routing.Plugin;
import org.webpieces.router.api.routing.Routes;
import org.webpieces.router.api.routing.WebAppMeta;
import org.webpieces.router.api.plugins.Plugin;
import org.webpieces.router.api.routes.Routes;
import org.webpieces.router.api.routes.WebAppMeta;
import org.webpieces.webserver.EmptyModule;

import com.google.common.collect.Lists;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package org.webpieces.webserver.dev.app;

import org.webpieces.router.api.routing.RouteId;
import org.webpieces.router.api.routes.RouteId;

public enum DevRouteId implements RouteId {
HOME, CAUSE_ERROR,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package org.webpieces.webserver.dev.app;

import static org.webpieces.ctx.api.HttpMethod.GET;
import static org.webpieces.router.api.routes.Port.BOTH;

import org.webpieces.router.api.routing.Routes;
import org.webpieces.router.impl.model.bldr.DomainRouteBuilder;
import org.webpieces.router.impl.model.bldr.RouteBuilder;

import static org.webpieces.router.api.routing.Port.BOTH;
import org.webpieces.router.api.routebldr.DomainRouteBuilder;
import org.webpieces.router.api.routebldr.RouteBuilder;
import org.webpieces.router.api.routes.FilterPortType;
import org.webpieces.router.api.routes.Routes;

public class DevRoutes implements Routes {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

import javax.inject.Singleton;

import org.webpieces.router.api.actions.Action;
import org.webpieces.router.api.actions.Actions;
import org.webpieces.router.api.controller.actions.Action;
import org.webpieces.router.api.controller.actions.Actions;

@Singleton
public class DevController {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

import javax.inject.Singleton;

import org.webpieces.router.api.actions.Action;
import org.webpieces.router.api.actions.Actions;
import org.webpieces.router.api.controller.actions.Action;
import org.webpieces.router.api.controller.actions.Actions;

@Singleton
public class DevController {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@

import javax.inject.Singleton;

import org.webpieces.router.api.actions.Action;
import org.webpieces.router.api.actions.Actions;
import org.webpieces.router.api.dto.MethodMeta;
import org.webpieces.router.api.routing.RouteFilter;
import org.webpieces.router.api.controller.actions.Action;
import org.webpieces.router.api.controller.actions.Actions;
import org.webpieces.router.api.routes.RouteFilter;
import org.webpieces.router.impl.dto.MethodMeta;
import org.webpieces.util.filters.Service;

@Singleton
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package org.webpieces.webserver.dev.app;

import org.webpieces.router.api.routing.RouteId;
import org.webpieces.router.api.routes.RouteId;

public enum DevRouteId implements RouteId {
HOME, EXISTING,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package org.webpieces.webserver.dev.app;

import static org.webpieces.ctx.api.HttpMethod.GET;
import static org.webpieces.router.api.routes.Port.BOTH;

import org.webpieces.router.api.routing.Routes;
import org.webpieces.router.impl.model.bldr.DomainRouteBuilder;
import org.webpieces.router.impl.model.bldr.RouteBuilder;

import static org.webpieces.router.api.routing.Port.BOTH;
import org.webpieces.router.api.routebldr.DomainRouteBuilder;
import org.webpieces.router.api.routebldr.RouteBuilder;
import org.webpieces.router.api.routes.FilterPortType;
import org.webpieces.router.api.routes.Routes;

public class DevRoutes implements Routes {

Expand Down

0 comments on commit 145f29c

Please sign in to comment.