-
Notifications
You must be signed in to change notification settings - Fork 166
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make ERRestTest to application to be able to run tests
- Loading branch information
Showing
7 changed files
with
55 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"WebObjects Release" = "WebObjects 5.0"; | ||
encoding = "UTF-8"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() + " !"); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() { | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} | ||
} |