Skip to content

Commit

Permalink
make ERRestTest to application to be able to run tests
Browse files Browse the repository at this point in the history
  • Loading branch information
darkv committed Aug 8, 2016
1 parent c0c29ff commit 8ab1d59
Show file tree
Hide file tree
Showing 7 changed files with 55 additions and 0 deletions.
Empty file.
Empty file.
4 changes: 4 additions & 0 deletions Tests/ERRestTest/Components/Main.wo/Main.woo
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"WebObjects Release" = "WebObjects 5.0";
encoding = "UTF-8";
}
13 changes: 13 additions & 0 deletions Tests/ERRestTest/Sources/er/rest/Application.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package er.rest;

import er.extensions.appserver.ERXApplication;

public class Application extends ERXApplication {
public static void main(String[] argv) {
ERXApplication.main(argv, Application.class);
}

public Application() {
ERXApplication.log.info("Welcome to " + name() + " !");
}
}
18 changes: 18 additions & 0 deletions Tests/ERRestTest/Sources/er/rest/DirectAction.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
package er.rest;

import com.webobjects.appserver.WOActionResults;
import com.webobjects.appserver.WORequest;

import er.extensions.appserver.ERXDirectAction;
import er.rest.components.Main;

public class DirectAction extends ERXDirectAction {
public DirectAction(WORequest request) {
super(request);
}

@Override
public WOActionResults defaultAction() {
return pageWithName(Main.class);
}
}
10 changes: 10 additions & 0 deletions Tests/ERRestTest/Sources/er/rest/Session.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package er.rest;

import er.extensions.appserver.ERXSession;

public class Session extends ERXSession {
private static final long serialVersionUID = 1L;

public Session() {
}
}
10 changes: 10 additions & 0 deletions Tests/ERRestTest/Sources/er/rest/components/Main.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package er.rest.components;

import com.webobjects.appserver.WOContext;
import com.webobjects.appserver.WOComponent;

public class Main extends WOComponent {
public Main(WOContext context) {
super(context);
}
}

0 comments on commit 8ab1d59

Please sign in to comment.