/[eiffelstudio]/branches/eth/eve/Src/library/abel/apps/test/abel_test/ps_manual_test_mysql.e
ViewVC logotype

Contents of /branches/eth/eve/Src/library/abel/apps/test/abel_test/ps_manual_test_mysql.e

Parent Directory Parent Directory | Revision Log Revision Log


Revision 88969 - (show annotations)
Fri Jun 22 11:53:00 2012 UTC (7 years, 3 months ago) by romanschmocker
File size: 1815 byte(s)
Changed structure in the ABEL library repository - e.g. pre-built backends are now collected in their own cluster
1 note
2 description: "Tests ABEL with a MySQL backend"
3 author: "Roman Schmocker"
4 date: "$Date$"
5 revision: "$Revision$"
6
7 class
8 PS_MANUAL_TEST_MYSQL
9
10 inherit
11 PS_REPOSITORY_TESTS
12
13
14 feature
15
16
17 test_criteria_mysql
18 do
19 criteria_tests.test_criteria_agents
20 criteria_tests.test_criteria_predefined
21 criteria_tests.test_criteria_agents_and_predefined
22 end
23
24
25 test_crud_flat_mysql
26 do
27 crud_tests.all_flat_object_tests
28 --crud_tests.test_flat_class_store
29 --crud_tests.test_flat_class_all_crud
30 end
31
32 test_references_mysql
33 do
34 crud_tests.all_references_tests
35 end
36
37
38 test_collections_mysql
39 do
40 crud_tests.all_collection_tests
41 end
42
43
44 test_transaction_lost
45 do
46 transaction_tests.test_no_lost_update
47 end
48
49 test_transaction_dirty
50 do
51 transaction_tests.test_no_dirty_reads
52 end
53
54 test_transaction_repeatable_read
55 do
56 transaction_tests.test_repeatable_read
57 end
58
59 test_transaction_cleanup
60 do
61 transaction_tests.test_correct_insert_rollback
62 transaction_tests.test_correct_update_rollback
63 transaction_tests.test_correct_delete_rollback
64 end
65
66
67 feature {NONE} -- Initialization
68
69 make_repository: PS_RELATIONAL_REPOSITORY
70 local
71 database: PS_MYSQL_DATABASE
72 backend: PS_GENERIC_LAYOUT_SQL_BACKEND
73 do
74 create database.make (username, password, db_name, db_host, db_port)
75 create backend.make (database, create {PS_MYSQL_STRINGS})
76
77 backend.wipe_out_all
78
79 create Result.make (backend)
80 end
81
82
83 -- username:STRING = "pfadief_eiffel"
84 -- password:STRING = "eiffelstore"
85
86 -- db_name:STRING = "pfadief_eiffelstoretest"
87 -- db_host:STRING = "pfadief.mysql.db.hostpoint.ch"
88 -- db_port:INTEGER = 3306
89
90 username:STRING = "eiffelstoretest"
91 password:STRING = "eiffelstoretest"
92
93 db_name:STRING = "eiffelstoretest"
94 db_host:STRING = "127.0.0.1"
95 db_port:INTEGER = 3306
96
97
98 end

Properties

Name Value
svn:eol-style native
svn:keywords Author Date ID Revision

  ViewVC Help
Powered by ViewVC 1.1.23