mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-05-12 19:19:41 +08:00
Reorganization and cleanups of Unit Tests
* Reorganized tests to accommodate split into Logic & Application. * Eliminated 'Spec' naming in favor of 'Test' as the suite is entirely based on SenTest. * Pulled majority of testing support classes up into the library and documented them. * Introduced RKApplicationTests app for running the RKTableController UI tests
This commit is contained in:
36
Tests/Fixtures/JSON/SameKeyDifferentTargetClasses.json
Normal file
36
Tests/Fixtures/JSON/SameKeyDifferentTargetClasses.json
Normal file
@@ -0,0 +1,36 @@
|
||||
// TODO: Map this to a different class for each translation key
|
||||
|
||||
{
|
||||
"products": [
|
||||
{ "prodId": 5,
|
||||
"translations": [
|
||||
{ "lang": "en", "name": "Product number 1" },
|
||||
{ "lang": "it", "name": "Prodotto numero 1"}
|
||||
]
|
||||
},
|
||||
{
|
||||
"prodId": 5,
|
||||
"translations": [
|
||||
{ "lang": "en", "name": "Product number 2" },
|
||||
{ "lang": "it", "name": "Prodotto numero 2" }
|
||||
]
|
||||
}
|
||||
],
|
||||
|
||||
"categories": [
|
||||
{
|
||||
"catId": 5,
|
||||
"translations": [
|
||||
{ "lang": "en", "name": "Category A" },
|
||||
{ "lang": "it", "name": "Categoria A" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"catId": 5,
|
||||
"translations": [
|
||||
{ "lang": "en", "name": "Category B" },
|
||||
{ "lang": "it", "name": "Categoria B" }
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user