changeset 5:64e58e66f793 draft

add initial-data.yml
author e085711
date Thu, 13 Sep 2012 01:55:33 +0900
parents 76e3d7881a20
children db553ad77045
files test-result/application.log test/data.yml tmp/bytecode/DEV/ApplicationTest tmp/bytecode/DEV/BasicTest tmp/bytecode/DEV/controllers.TestRunner
diffstat 5 files changed, 78 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/test-result/application.log	Thu Sep 13 01:55:14 2012 +0900
+++ b/test-result/application.log	Thu Sep 13 01:55:33 2012 +0900
@@ -1,13 +1,12 @@
-13 Sep 2012 00:19:16,548 INFO  ~ Starting /Users/aotokage/testProgram/play/tasks
-13 Sep 2012 00:19:16,552 WARN  ~ Declaring modules in application.conf is deprecated. Use dependencies.yml instead (module.crud)
-13 Sep 2012 00:19:16,552 INFO  ~ Module crud is available (/Users/aotokage/git/play/modules/crud)
-13 Sep 2012 00:19:17,165 WARN  ~ You're running Play! in DEV mode
-13 Sep 2012 00:19:17,252 INFO  ~ Listening for HTTP on port 9000 (Waiting a first request to start) ...
-13 Sep 2012 00:19:39,413 INFO  ~ Connected to jdbc:h2:mem:play;MODE=MYSQL;LOCK_MODE=0
-13 Sep 2012 00:19:40,155 ERROR ~ HHH000389: Unsuccessful: alter table Comment drop constraint FK9BDE863F388562DE
-13 Sep 2012 00:19:40,155 ERROR ~ Table "COMMENT" not found; SQL statement:
+13 Sep 2012 01:47:42,880 INFO  ~ Starting /Users/aotokage/Documents/workspace/Tasks/.
+13 Sep 2012 01:47:42,883 WARN  ~ Declaring modules in application.conf is deprecated. Use dependencies.yml instead (module.crud)
+13 Sep 2012 01:47:42,883 INFO  ~ Module crud is available (/Users/aotokage/git/play/modules/crud)
+13 Sep 2012 01:47:43,497 WARN  ~ You're running Play! in DEV mode
+13 Sep 2012 01:47:46,135 INFO  ~ Connected to jdbc:h2:mem:play;MODE=MYSQL;LOCK_MODE=0
+13 Sep 2012 01:47:46,900 ERROR ~ HHH000389: Unsuccessful: alter table Comment drop constraint FK9BDE863F388562DE
+13 Sep 2012 01:47:46,900 ERROR ~ Table "COMMENT" not found; SQL statement:
 alter table Comment drop constraint FK9BDE863F388562DE [42102-166]
-13 Sep 2012 00:19:40,156 ERROR ~ HHH000389: Unsuccessful: alter table Post drop constraint FK260CC0A7CD013E
-13 Sep 2012 00:19:40,156 ERROR ~ Table "POST" not found; SQL statement:
+13 Sep 2012 01:47:46,901 ERROR ~ HHH000389: Unsuccessful: alter table Post drop constraint FK260CC0A7CD013E
+13 Sep 2012 01:47:46,901 ERROR ~ Table "POST" not found; SQL statement:
 alter table Post drop constraint FK260CC0A7CD013E [42102-166]
-13 Sep 2012 00:19:40,222 INFO  ~ Application 'Tasks' is now started !
+13 Sep 2012 01:47:46,969 INFO  ~ Application 'Tasks' is now started !
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test/data.yml	Thu Sep 13 01:55:33 2012 +0900
@@ -0,0 +1,68 @@
+# Test data
+
+User(bob):
+    email:          bob@gmail.com
+    password:       secret
+    fullname:       Bob
+    isAdmin:        true
+    
+User(jeff):
+    email:          jeff@gmail.com
+    password:       secret
+    fullname:       Jeff    
+    
+Post(firstBobPost):
+    title:          About the model layer
+    postedAt:       2009-06-14
+    author:         bob
+    content:        >
+                    The model has a central position in a Play! application. It is the domain-specific 
+                    representation of the information on which the application operates.
+                    
+                    Martin fowler defines it as:
+                        
+                    Responsible for representing concepts of the business, information about the 
+                    business situation, and business rules. State that reflects the business situation 
+                    is controlled and used here, even though the technical details of storing it are 
+                    delegated to the infrastructure. This layer is the heart of business software.
+
+Post(secondBobPost):
+    title:          Just a test of YABE
+    postedAt:       2009-03-25
+    author:         bob
+    content:        >
+                    Well, it's just a test.
+                    
+Post(jeffPost):
+    title:          The MVC application
+    postedAt:       2009-06-06
+    author:         jeff
+    content:        >
+                    A Play! application follows the MVC architectural pattern as applied to the 
+                    architecture of the Web.
+                    
+                    This pattern splits the application into separate layers: the Presentation 
+                    layer and the Model layer. The Presentation layer is further split into a 
+                    View and a Controller layer.
+                    
+Comment(c1):
+    author:         Guest
+    content:        >
+                    You are right !
+    postedAt:       2009-06-14
+    post:           firstBobPost
+    
+Comment(c2):
+    author:         Mike
+    content:        >
+                    I knew that ...
+    postedAt:       2009-06-15
+    post:           firstBobPost    
+    
+Comment(c3):
+    author:         Tom
+    content:        >
+                    This post is useless ?
+    postedAt:       2009-04-05
+    post:           secondBobPost    
+                 
\ No newline at end of file
Binary file tmp/bytecode/DEV/ApplicationTest has changed
Binary file tmp/bytecode/DEV/BasicTest has changed
Binary file tmp/bytecode/DEV/controllers.TestRunner has changed