Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ public class App {
}
```

For a runnable starter project, including a servlet deployment example, see
[turismo-bootstrap](https://github.com/ghosthack/turismo-bootstrap).

## Routing

### Exact paths
Expand Down
13 changes: 0 additions & 13 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<jetty.version>12.1.13</jetty.version>
</properties>

<licenses>
Expand Down Expand Up @@ -110,18 +109,6 @@
<version>5.23.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.eclipse.jetty.ee10</groupId>
<artifactId>jetty-ee10-servlet</artifactId>
<version>${jetty.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.eclipse.jetty.ee10</groupId>
<artifactId>jetty-ee10-webapp</artifactId>
<version>${jetty.version}</version>
<scope>test</scope>
</dependency>
</dependencies>

<developers>
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

43 changes: 0 additions & 43 deletions src/test/java/io/github/ghosthack/turismo/example/JettyHelper.java

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public void testInitWithValidRoutesClass() throws ServletException {
ServletContext context = Mockito.mock(ServletContext.class);
when(config.getServletContext()).thenReturn(context);
when(config.getInitParameter("routes"))
.thenReturn("io.github.ghosthack.turismo.example.AppRoutes");
.thenReturn("io.github.ghosthack.turismo.servlet.TestRoutes");

servlet.init(config);
assertNotNull(servlet.routes);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package io.github.ghosthack.turismo.example;
package io.github.ghosthack.turismo.servlet;

import io.github.ghosthack.turismo.action.Action;
import io.github.ghosthack.turismo.routes.RoutesMap;

public class AppRoutes extends RoutesMap {
/** Routes class loaded by name in {@link ServletTest}. */
public class TestRoutes extends RoutesMap {

@Override
protected void map() {
Expand All @@ -15,8 +16,4 @@ public void run() {
});
}

public static void main(String[] args) throws Exception{
JettyHelper.server(8080, "/app/*", AppRoutes.class.getName());
}

}
}
20 changes: 0 additions & 20 deletions src/test/webapp/WEB-INF/web.xml

This file was deleted.

2 changes: 0 additions & 2 deletions src/test/webapp/jsp/render.jsp

This file was deleted.

Loading