Advertisement
GreenAsJade

Test output

Jan 3rd, 2014
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.15 KB | None | 0 0
  1. [scenario-central] $ test-only models.ScenarioTest
  2. [info] Compiling 1 Java source to /Users/mgregory/Documents/scenario-central/target/scala-2.10/classes...
  3. [warn] c.j.b.BoneCPConfig - releaseHelperThreads has been deprecated -- it tends to slow down your application more.
  4. [debug] c.j.b.BoneCPDataSource - JDBC URL = jdbc:h2:mem:play-test--1247207956;, Username = null, partitions = 1, max (per partition) = 30, min (per partition) = 5, idle max age = 10 min, idle test period = 1 min, strategy = DEFAULT
  5. [warn] c.j.b.BoneCPConfig - JDBC username was not set in config!
  6. [warn] c.j.b.BoneCPConfig - JDBC password was not set in config!
  7. [debug] c.j.b.StatementHandle - select id, hash, apply_script, revert_script, state, last_problem from play_evolutions where state like 'applying_%'
  8. [debug] c.j.b.StatementHandle -
  9. create table play_evolutions (
  10. id int not null primary key, hash varchar(255) not null,
  11. applied_at timestamp not null,
  12. apply_script text,
  13. revert_script text,
  14. state varchar(255),
  15. last_problem text
  16. )
  17.  
  18. [debug] c.j.b.StatementHandle -
  19. select id, hash, apply_script, revert_script from play_evolutions order by id
  20.  
  21. [debug] c.j.b.StatementHandle - select id, hash, apply_script, revert_script, state, last_problem from play_evolutions where state like 'applying_%'
  22. [debug] c.j.b.PreparedStatementHandle - insert into play_evolutions values(1, '49b749a60399877e15a3ce1d3e2de2653bcdfb04', 2014-01-04, 'create table game (
  23. name varchar(255) not null,
  24. constraint pk_game primary key (name))
  25. ;
  26.  
  27. create table scenario (
  28. name varchar(255) not null,
  29. gameId varchar(255),
  30. author_username varchar(255),
  31. constraint pk_scenario primary key (name))
  32. ;
  33.  
  34. create table user (
  35. username varchar(255) not null,
  36. email varchar(255),
  37. name varchar(255),
  38. password varchar(255),
  39. constraint pk_user primary key (username))
  40. ;
  41.  
  42. create sequence game_seq;
  43.  
  44. create sequence scenario_seq;
  45.  
  46. create sequence user_seq;
  47.  
  48. alter table scenario add constraint fk_scenario_game_1 foreign key (gameId) references game (name) on delete restrict on update restrict;
  49. create index ix_scenario_game_1 on scenario (gameId);
  50. alter table scenario add constraint fk_scenario_author_2 foreign key (author_username) references user (username) on delete restrict on update restrict;
  51. create index ix_scenario_author_2 on scenario (author_username);', 'SET REFERENTIAL_INTEGRITY FALSE;
  52.  
  53. drop table if exists game;
  54.  
  55. drop table if exists scenario;
  56.  
  57. drop table if exists user;
  58.  
  59. SET REFERENTIAL_INTEGRITY TRUE;
  60.  
  61. drop sequence if exists game_seq;
  62.  
  63. drop sequence if exists scenario_seq;
  64.  
  65. drop sequence if exists user_seq;', 'applying_up', '')
  66. [debug] c.j.b.StatementHandle - create table game (
  67. name varchar(255) not null,
  68. constraint pk_game primary key (name))
  69. [debug] c.j.b.StatementHandle - create table scenario (
  70. name varchar(255) not null,
  71. gameId varchar(255),
  72. author_username varchar(255),
  73. constraint pk_scenario primary key (name))
  74. [debug] c.j.b.StatementHandle - create table user (
  75. username varchar(255) not null,
  76. email varchar(255),
  77. name varchar(255),
  78. password varchar(255),
  79. constraint pk_user primary key (username))
  80. [debug] c.j.b.StatementHandle - create sequence game_seq
  81. [debug] c.j.b.StatementHandle - create sequence scenario_seq
  82. [debug] c.j.b.StatementHandle - create sequence user_seq
  83. [debug] c.j.b.StatementHandle - alter table scenario add constraint fk_scenario_game_1 foreign key (gameId) references game (name) on delete restrict on update restrict
  84. [debug] c.j.b.StatementHandle - create index ix_scenario_game_1 on scenario (gameId)
  85. [debug] c.j.b.StatementHandle - alter table scenario add constraint fk_scenario_author_2 foreign key (author_username) references user (username) on delete restrict on update restrict
  86. [debug] c.j.b.StatementHandle - create index ix_scenario_author_2 on scenario (author_username)
  87. [debug] c.j.b.StatementHandle - update play_evolutions set state = 'applied' where id = 1
  88. [debug] c.j.b.StatementHandle - select id, hash, apply_script, revert_script, state, last_problem from play_evolutions where state like 'applying_%'
  89. [info] application - Starting a ScenarioTest...
  90. [info] application - testing createAndRetrieveScenario...
  91. [info] application - setting up...
  92. [info] application - Creating game called 'CM Test'
  93. [info] application - Constructing game with name only
  94. [debug] c.j.b.PreparedStatementHandle - insert into game (name) values ('CM Test')
  95. [info] application - creating scenario...
  96. [info] application - Creating scenario 'Test Scenario' of 'CM Test' by 'GreenAsJade'
  97. [info] application - Constructing scenario 'Test Scenario' of type 'CM Test'
  98. [debug] c.j.b.PreparedStatementHandle - select t0.name c0 from game t0 where t0.name = 'CM Test'
  99. [debug] c.j.b.PreparedStatementHandle - select t0.name c0, t1.name c1, t1.gameId c2, t1.author_username c3 from game t0 left outer join scenario t1 on t1.gameId = t0.name where t0.name = 'CM Test' order by t0.name
  100. [info] application - ...found it's game: 'CM Test', which has 0 scenarios
  101. [info] application - now ... it's game has 1 scenarios
  102. [debug] c.j.b.PreparedStatementHandle - select t0.username c0, t0.email c1, t0.name c2, t0.password c3 from user t0 where t0.username = 'GreenAsJade'
  103. [debug] c.j.b.PreparedStatementHandle - insert into scenario (name, gameId, author_username) values ('Test Scenario','CM Test','[SQL NULL of type 12]')
  104. [info] application - checking that the scenario was added properly to the game...
  105. [debug] c.j.b.PreparedStatementHandle - select t0.name c0 from game t0 where t0.name = 'CM Test'
  106. [debug] c.j.b.PreparedStatementHandle - select t0.name c0, t1.name c1, t1.gameId c2, t1.author_username c3 from game t0 left outer join scenario t1 on t1.gameId = t0.name where t0.name = 'CM Test' order by t0.name
  107. [info] application - retrieving...
  108. [debug] c.j.b.PreparedStatementHandle - select t0.name c0, t0.gameId c1, t0.author_username c2 from scenario t0 where t0.name = 'Test Scenario'
  109. [info] application - checking scenario's game's scenarios...
  110. [info] c.j.b.BoneCP - Shutting down connection pool...
  111. [debug] c.j.b.PoolWatchThread - Terminating pool watch thread
  112. [info] c.j.b.BoneCP - Connection pool has been shutdown.
  113. [debug] c.j.b.BoneCPDataSource - Connection pool has been shut down
  114. [error] Test models.ScenarioTest.createAndRetrieveScenario failed: retrived scenario's game's scenarios
  115. [info] models.ScenarioTest
  116. [info] x createAndRetrieveScenario
  117. [info]
  118. [info]
  119. [info] Total for test models.ScenarioTest
  120. [info] Finished in 0.0010 seconds
  121. [info] 1 tests, 1 failures, 0 errors
  122. [error] Failed: Total 1, Failed 1, Errors 0, Passed 0
  123. [error] Failed tests:
  124. [error] models.ScenarioTest
  125. [error] (test:testOnly) sbt.TestsFailedException: Tests unsuccessful
  126. [error] Total time: 3 s, completed Jan 4, 2014 10:30:20 AM
  127. [scenario-central] $
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement