Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Oracle for test samples #8

Open
jeandersonbc opened this issue Mar 22, 2016 · 3 comments
Open

Oracle for test samples #8

jeandersonbc opened this issue Mar 22, 2016 · 3 comments
Assignees

Comments

@jeandersonbc
Copy link
Collaborator

Create oracles based on sample apps.

It would be good to have at least some document describing expected outputs based on sample apps.

@jeandersonbc jeandersonbc self-assigned this Mar 22, 2016
jeandersonbc added a commit that referenced this issue Mar 23, 2016
Issue #8 - Added expected test data for intent_test app
@jeandersonbc
Copy link
Collaborator Author

Expected output was described as JSON files for each compilation unit.
Next step is writing java objects representing these JSON objects so we can write tests to check correctness of our implementation.

jeandersonbc added a commit that referenced this issue Mar 23, 2016
- Added Gson dependency (library for manipulating Json)
- Moved json files to a dedicated directory
- Created main for simple test
- Added Java classes to represent Json data
@leopoldomt
Copy link
Collaborator

To comply with our current model for registering and reporting ICC link information, we should use the ICCLinkInfo class as the layout for the JSON file. Therefore, only minor issues are needed on the JSON file, instead of sourceName, declaredPkg, and a list of intents, we should only have a list of "ICCLinkInfo", which already comprehends scope information (package+className+method) and the intent triggered by a startActivity/startService and other calls alike (see IntentInfo class).

@leopoldomt
Copy link
Collaborator

See 7b14a6a for a quick method for comparing and diffing IntentInfo objects. @jeandersonbc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants