Skip to content

Commit

Permalink
WIP #8 - Adjusted expected test data for Activity1
Browse files Browse the repository at this point in the history
  • Loading branch information
jeandersonbc committed Mar 23, 2016
1 parent 400ebaa commit f94ce67
Show file tree
Hide file tree
Showing 3 changed files with 187 additions and 158 deletions.
86 changes: 86 additions & 0 deletions test-data/intent_tests/Activity1-Intents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
{
"sourceName": "Activity1",
"declaredPkg": "br.ufpe.cin.androidintenttests",
"intents": [{
"declaredMethod": "func1",
"target" : "startActivity",
"identifier" : "toActivity2",
"properties": {
"action": "Intent.ACTION_VIEW",
"data": "Uri.parse(\"custom://base#specific\")"
}
},
{
"declaredMethod": "func1",
"target" : "startActivity",
"identifier" : "i",
"properties": {
"action": "Intent.ACTION_CALL",
"data": "Uri.parse(\"tel:123456789\")"
}
},
{
"declaredMethod": "func2",
"target" : "startActivity",
"identifier": "i",
"properties": {
"action": "Intent.ACTION_VIEW",
"data": "Uri.parse(\"https://www.google.com\")"
}
},
{
"declaredMethod": "func2",
"target" : "startActivity",
"identifier": "i2",
"properties": {
"component": {
"context": "br.ufpe.cin.androidintenttests",
"class": "Activity1"
},
"data": "Uri.parse(\"https://www.google.com\")"
}
},
{
"declaredMethod": "func2",
"target" : "startActivity",
"identifier": "i3",
"properties": {
"action": "Intent.ACTION_VIEW",
"data": "Uri.parse(\"https://www.google.com\")"
}
},
{
"target" : "startActivity",
"declaredMethod": "func2",
"identifier": "i4",
"properties": {
"action": "Intent.ACTION_VIEW",
"data": "Uri.parse(\"https://www.google.com\")",
"type": "text/plain"
}
},
{
"declaredMethod": "func2",
"target" : "startActivity",
"identifier": "i5",
"properties": {
"action": "Intent.ACTION_VIEW",
"data": "Uri.parse(\"https://www.google.com\")",
"type": "text/plain"
}
},
{
"declaredMethod": "func2",
"target" : "startActivity",
"identifier": "i6",
"properties": {
"component": {
"context": "br.ufpe.cin.androidintenttests",
"class": "Activity1"
},
"data": "Uri.parse(\"https://www.google.com\")",
"type": "text/plain"
}
}
]
}
58 changes: 0 additions & 58 deletions test-data/intent_tests/Activity1-Intents.txt

This file was deleted.

201 changes: 101 additions & 100 deletions test-data/intent_tests/Activity2-Intents.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,110 +2,111 @@
"sourceName": "Activity2",
"declaredPkg": "br.ufpe.cin.androidintenttests",
"intents": [{
"declaredMethod": "func1",
"target" : "startActivity",
"identifier" : "i",
"properties": {
"component": {
"context": "this",
"class": "Activity1.class"
},
"data": "Uri.parse(\"custom://base#specific\")"
}
},
{
"declaredMethod": "func1",
"target": "startActivity",
"identifier": "i2",
"properties": {
"component": {
"context": "this",
"class": "Activity1.class"
},
"data": "Uri.parse(\"custom://base#specific\")",
"extra": {
"key_bool": false,
"key_string": "somevalue",
"key_int": 10,
"key_double": 12.5
"declaredMethod": "func1",
"target" : "startActivity",
"identifier" : "i",
"properties": {
"component": {
"context": "this",
"class": "Activity1.class"
},
"data": "Uri.parse(\"custom://base#specific\")"
}
}
},
{
"declaredMethod": "func2",
"target": "startActivity",
"identifier": "i1",
"properties": {
"action": "Intent.ACTION_VIEW"
}
},
{
"declaredMethod": "func2",
"target": "startActivity",
"identifier": "i2",
"properties": {
"action": "Intent.ACTION_VIEW",
"data": "Uri.parse(\"http://www.google.com\")"
}
},
{
"declaredMethod": "func2",
"target": "startActivity",
"identifier": "i3",
"properties": {
"component": {
"context": "this",
"class": "Activity1.class"
},
{
"declaredMethod": "func1",
"target": "startActivity",
"identifier": "i2",
"properties": {
"component": {
"context": "this",
"class": "Activity1.class"
},
"data": "Uri.parse(\"custom://base#specific\")",
"extra": {
"key_bool": false,
"key_string": "somevalue",
"key_int": 10,
"key_double": 12.5
}
}
}
},
{
"declaredMethod": "func2",
"target": "startActivity",
"identifier": "i4",
"properties": {
"action": "Intent.ACTION_VIEW",
"data": "Uri.parse(\"http://www.google.com\")",
"component": {
"context": "this",
"class": "Activity1.class"
},
{
"declaredMethod": "func2",
"target": "startActivity",
"identifier": "i1",
"properties": {
"action": "Intent.ACTION_VIEW"
}
}
},
{
"declaredMethod": "func3",
"target": "startActivity",
"identifier": "i",
"properties": {
"package": "br.ufpe.cin.androidintenttests",
"component": {
"context": "this",
"class": "Activity"
},
{
"declaredMethod": "func2",
"target": "startActivity",
"identifier": "i2",
"properties": {
"action": "Intent.ACTION_VIEW",
"data": "Uri.parse(\"http://www.google.com\")"
}
}
},
{
"declaredMethod": "func3",
"target": "startActivity",
"identifier": "i2",
"properties": {
"data": "Uri.parse(\"https://www.google.com\")",
"component": {
"context": "br.ufpe.cin.androidintenttests",
"class": "Activity1"
},
{
"declaredMethod": "func2",
"target": "startActivity",
"identifier": "i3",
"properties": {
"component": {
"context": "this",
"class": "Activity1.class"
}
}
},
{
"declaredMethod": "func2",
"target": "startActivity",
"identifier": "i4",
"properties": {
"action": "Intent.ACTION_VIEW",
"data": "Uri.parse(\"http://www.google.com\")",
"component": {
"context": "this",
"class": "Activity1.class"
}
}
},
{
"declaredMethod": "func3",
"target": "startActivity",
"identifier": "i",
"properties": {
"package": "br.ufpe.cin.androidintenttests",
"component": {
"context": "this",
"class": "Activity"
}
}
},
{
"declaredMethod": "func3",
"target": "startActivity",
"identifier": "i2",
"properties": {
"data": "Uri.parse(\"https://www.google.com\")",
"component": {
"context": "br.ufpe.cin.androidintenttests",
"class": "Activity1"
}
}
},
{
"declaredMethod": "func3",
"target": "startActivity",
"identifier": "i3",
"properties": {
"component": {
"context": "this",
"class": "Activity1"
},
"data": "Uri.parse(\"https://www.google.com\")"
}
}
},
{
"declaredMethod": "func3",
"target": "startActivity",
"identifier": "i3",
"properties": {
"component": {
"context": "this",
"class": "Activity1"
},
"data": "Uri.parse(\"https://www.google.com\")"
}
}]
]
}

0 comments on commit f94ce67

Please sign in to comment.