Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [scenario-central] $ test-only models.ScenarioTest
- [info] Compiling 1 Java source to /Users/mgregory/Documents/scenario-central/target/scala-2.10/classes...
- [warn] c.j.b.BoneCPConfig - releaseHelperThreads has been deprecated -- it tends to slow down your application more.
- [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
- [warn] c.j.b.BoneCPConfig - JDBC username was not set in config!
- [warn] c.j.b.BoneCPConfig - JDBC password was not set in config!
- [debug] c.j.b.StatementHandle - select id, hash, apply_script, revert_script, state, last_problem from play_evolutions where state like 'applying_%'
- [debug] c.j.b.StatementHandle -
- create table play_evolutions (
- id int not null primary key, hash varchar(255) not null,
- applied_at timestamp not null,
- apply_script text,
- revert_script text,
- state varchar(255),
- last_problem text
- )
- [debug] c.j.b.StatementHandle -
- select id, hash, apply_script, revert_script from play_evolutions order by id
- [debug] c.j.b.StatementHandle - select id, hash, apply_script, revert_script, state, last_problem from play_evolutions where state like 'applying_%'
- [debug] c.j.b.PreparedStatementHandle - insert into play_evolutions values(1, '49b749a60399877e15a3ce1d3e2de2653bcdfb04', 2014-01-04, 'create table game (
- name varchar(255) not null,
- constraint pk_game primary key (name))
- ;
- create table scenario (
- name varchar(255) not null,
- gameId varchar(255),
- author_username varchar(255),
- constraint pk_scenario primary key (name))
- ;
- create table user (
- username varchar(255) not null,
- email varchar(255),
- name varchar(255),
- password varchar(255),
- constraint pk_user primary key (username))
- ;
- create sequence game_seq;
- create sequence scenario_seq;
- create sequence user_seq;
- alter table scenario add constraint fk_scenario_game_1 foreign key (gameId) references game (name) on delete restrict on update restrict;
- create index ix_scenario_game_1 on scenario (gameId);
- alter table scenario add constraint fk_scenario_author_2 foreign key (author_username) references user (username) on delete restrict on update restrict;
- create index ix_scenario_author_2 on scenario (author_username);', 'SET REFERENTIAL_INTEGRITY FALSE;
- drop table if exists game;
- drop table if exists scenario;
- drop table if exists user;
- SET REFERENTIAL_INTEGRITY TRUE;
- drop sequence if exists game_seq;
- drop sequence if exists scenario_seq;
- drop sequence if exists user_seq;', 'applying_up', '')
- [debug] c.j.b.StatementHandle - create table game (
- name varchar(255) not null,
- constraint pk_game primary key (name))
- [debug] c.j.b.StatementHandle - create table scenario (
- name varchar(255) not null,
- gameId varchar(255),
- author_username varchar(255),
- constraint pk_scenario primary key (name))
- [debug] c.j.b.StatementHandle - create table user (
- username varchar(255) not null,
- email varchar(255),
- name varchar(255),
- password varchar(255),
- constraint pk_user primary key (username))
- [debug] c.j.b.StatementHandle - create sequence game_seq
- [debug] c.j.b.StatementHandle - create sequence scenario_seq
- [debug] c.j.b.StatementHandle - create sequence user_seq
- [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
- [debug] c.j.b.StatementHandle - create index ix_scenario_game_1 on scenario (gameId)
- [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
- [debug] c.j.b.StatementHandle - create index ix_scenario_author_2 on scenario (author_username)
- [debug] c.j.b.StatementHandle - update play_evolutions set state = 'applied' where id = 1
- [debug] c.j.b.StatementHandle - select id, hash, apply_script, revert_script, state, last_problem from play_evolutions where state like 'applying_%'
- [info] application - Starting a ScenarioTest...
- [info] application - testing createAndRetrieveScenario...
- [info] application - setting up...
- [info] application - Creating game called 'CM Test'
- [info] application - Constructing game with name only
- [debug] c.j.b.PreparedStatementHandle - insert into game (name) values ('CM Test')
- [info] application - creating scenario...
- [info] application - Creating scenario 'Test Scenario' of 'CM Test' by 'GreenAsJade'
- [info] application - Constructing scenario 'Test Scenario' of type 'CM Test'
- [debug] c.j.b.PreparedStatementHandle - select t0.name c0 from game t0 where t0.name = 'CM Test'
- [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
- [info] application - ...found it's game: 'CM Test', which has 0 scenarios
- [info] application - now ... it's game has 1 scenarios
- [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'
- [debug] c.j.b.PreparedStatementHandle - insert into scenario (name, gameId, author_username) values ('Test Scenario','CM Test','[SQL NULL of type 12]')
- [info] application - checking that the scenario was added properly to the game...
- [debug] c.j.b.PreparedStatementHandle - select t0.name c0 from game t0 where t0.name = 'CM Test'
- [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
- [info] application - retrieving...
- [debug] c.j.b.PreparedStatementHandle - select t0.name c0, t0.gameId c1, t0.author_username c2 from scenario t0 where t0.name = 'Test Scenario'
- [info] application - checking scenario's game's scenarios...
- [info] c.j.b.BoneCP - Shutting down connection pool...
- [debug] c.j.b.PoolWatchThread - Terminating pool watch thread
- [info] c.j.b.BoneCP - Connection pool has been shutdown.
- [debug] c.j.b.BoneCPDataSource - Connection pool has been shut down
- [error] Test models.ScenarioTest.createAndRetrieveScenario failed: retrived scenario's game's scenarios
- [info] models.ScenarioTest
- [info] x createAndRetrieveScenario
- [info]
- [info]
- [info] Total for test models.ScenarioTest
- [info] Finished in 0.0010 seconds
- [info] 1 tests, 1 failures, 0 errors
- [error] Failed: Total 1, Failed 1, Errors 0, Passed 0
- [error] Failed tests:
- [error] models.ScenarioTest
- [error] (test:testOnly) sbt.TestsFailedException: Tests unsuccessful
- [error] Total time: 3 s, completed Jan 4, 2014 10:30:20 AM
- [scenario-central] $
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement